Class EntityTableMapping.AbstractKeyMapping
java.lang.Object
org.hibernate.persister.entity.mutation.EntityTableMapping.AbstractKeyMapping
- All Implemented Interfaces:
SelectableMappings, TableDetails.KeyDetails, EntityTableMapping.KeyMapping
- Direct Known Subclasses:
EntityTableMapping.CompositeKeyMapping, EntityTableMapping.SimpleKeyMapping
- Enclosing class:
EntityTableMapping
public abstract static class EntityTableMapping.AbstractKeyMapping
extends Object
implements EntityTableMapping.KeyMapping
-
Nested Class Summary
Nested classes/interfaces inherited from interface TableDetails.KeyDetails
TableDetails.KeyDetails.KeyValueConsumer -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ModelPartprotected final List<EntityTableMapping.KeyColumn> -
Constructor Summary
ConstructorsConstructorDescriptionAbstractKeyMapping(List<EntityTableMapping.KeyColumn> keyColumns, ModelPart identifierPart) -
Method Summary
Modifier and TypeMethodDescriptionvoidbreakDownKeyJdbcValues(Object domainValue, TableDetails.KeyDetails.KeyValueConsumer valueConsumer, SharedSessionContractImplementor session) Break a key value down into its constituent parts, calling the consumer for each.voidVisit each key columnintforEachSelectable(int offset, SelectableConsumer consumer) Visit each contained selectable mapping.intforEachSelectable(SelectableConsumer consumer) Same asSelectableMappings.forEachSelectable(int, SelectableConsumer), with an implicit offset of `0`intNumber of columnsintThe number of selectablesgetKeyColumn(int position) Get a key column by relative positionList<? extends EntityTableMapping.KeyColumn> Group of columns defined on the primary keygetSelectable(int columnIndex) Get the selectable at the given positionprotected SqlSelectionresolveSqlSelection(TableReference tableReference, EntityTableMapping.KeyColumn keyColumn, SqlAstCreationState creationState) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TableDetails.KeyDetails
createDomainResult
-
Field Details
-
keyColumns
-
identifierPart
-
-
Constructor Details
-
AbstractKeyMapping
-
-
Method Details
-
getKeyColumns
Description copied from interface:TableDetails.KeyDetailsGroup of columns defined on the primary key- Specified by:
getKeyColumnsin interfaceTableDetails.KeyDetails
-
getColumnCount
public int getColumnCount()Description copied from interface:TableDetails.KeyDetailsNumber of columns- Specified by:
getColumnCountin interfaceTableDetails.KeyDetails
-
getKeyColumn
Description copied from interface:TableDetails.KeyDetailsGet a key column by relative position- Specified by:
getKeyColumnin interfaceTableDetails.KeyDetails
-
forEachKeyColumn
Description copied from interface:TableDetails.KeyDetailsVisit each key column- Specified by:
forEachKeyColumnin interfaceTableDetails.KeyDetails
-
getJdbcTypeCount
public int getJdbcTypeCount()Description copied from interface:SelectableMappingsThe number of selectables- Specified by:
getJdbcTypeCountin interfaceSelectableMappings
-
getSelectable
Description copied from interface:SelectableMappingsGet the selectable at the given position- Specified by:
getSelectablein interfaceSelectableMappings
-
forEachSelectable
Description copied from interface:SelectableMappingsVisit each contained selectable mapping. As the selectables are iterated, we call `SelectionConsumer` passing along `offset` + our current iteration index. The return is the number of selectables we directly contain- Specified by:
forEachSelectablein interfaceSelectableMappings- See Also:
-
resolveSqlSelection
protected SqlSelection resolveSqlSelection(TableReference tableReference, EntityTableMapping.KeyColumn keyColumn, SqlAstCreationState creationState) -
forEachSelectable
Description copied from interface:SelectableMappingsSame asSelectableMappings.forEachSelectable(int, SelectableConsumer), with an implicit offset of `0`- Specified by:
forEachSelectablein interfaceSelectableMappings
-