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 org.hibernate.metamodel.mapping.TableDetails.KeyDetails
TableDetails.KeyDetails.KeyValueConsumer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ModelPart
protected final List
<EntityTableMapping.KeyColumn> -
Constructor Summary
ConstructorsConstructorDescriptionAbstractKeyMapping
(List<EntityTableMapping.KeyColumn> keyColumns, ModelPart identifierPart) -
Method Summary
Modifier and TypeMethodDescriptionvoid
breakDownKeyJdbcValues
(Object domainValue, TableDetails.KeyDetails.KeyValueConsumer valueConsumer, SharedSessionContractImplementor session) Break a key value down into its constituent parts, calling the consumer for each.void
Visit each key columnint
forEachSelectable
(int offset, SelectableConsumer consumer) Visit each contained selectable mapping.int
forEachSelectable
(SelectableConsumer consumer) Same asSelectableMappings.forEachSelectable(int, SelectableConsumer)
, with an implicit offset of `0`int
Number of columnsint
The 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 SqlSelection
resolveSqlSelection
(TableReference tableReference, EntityTableMapping.KeyColumn keyColumn, SqlAstCreationState creationState) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.metamodel.mapping.TableDetails.KeyDetails
createDomainResult
-
Field Details
-
keyColumns
-
identifierPart
-
-
Constructor Details
-
AbstractKeyMapping
-
-
Method Details
-
getKeyColumns
Description copied from interface:TableDetails.KeyDetails
Group of columns defined on the primary key- Specified by:
getKeyColumns
in interfaceTableDetails.KeyDetails
-
getColumnCount
public int getColumnCount()Description copied from interface:TableDetails.KeyDetails
Number of columns- Specified by:
getColumnCount
in interfaceTableDetails.KeyDetails
-
getKeyColumn
Description copied from interface:TableDetails.KeyDetails
Get a key column by relative position- Specified by:
getKeyColumn
in interfaceTableDetails.KeyDetails
-
forEachKeyColumn
Description copied from interface:TableDetails.KeyDetails
Visit each key column- Specified by:
forEachKeyColumn
in interfaceTableDetails.KeyDetails
-
getJdbcTypeCount
public int getJdbcTypeCount()Description copied from interface:SelectableMappings
The number of selectables- Specified by:
getJdbcTypeCount
in interfaceSelectableMappings
-
getSelectable
Description copied from interface:SelectableMappings
Get the selectable at the given position- Specified by:
getSelectable
in interfaceSelectableMappings
-
forEachSelectable
Description copied from interface:SelectableMappings
Visit 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:
forEachSelectable
in interfaceSelectableMappings
- See Also:
-
resolveSqlSelection
protected SqlSelection resolveSqlSelection(TableReference tableReference, EntityTableMapping.KeyColumn keyColumn, SqlAstCreationState creationState) -
forEachSelectable
Description copied from interface:SelectableMappings
Same asSelectableMappings.forEachSelectable(int, SelectableConsumer)
, with an implicit offset of `0`- Specified by:
forEachSelectable
in interfaceSelectableMappings
-