Class EntityTableMapping.KeyMapping
java.lang.Object
org.hibernate.persister.entity.mutation.EntityTableMapping.KeyMapping
- All Implemented Interfaces:
SelectableMappings
,TableDetails.KeyDetails
- Enclosing class:
- EntityTableMapping
public static class EntityTableMapping.KeyMapping
extends Object
implements TableDetails.KeyDetails, SelectableMappings
-
Constructor Summary
ConstructorsConstructorDescriptionKeyMapping
(List<EntityTableMapping.KeyColumn> keyColumns, ModelPart identifierPart) -
Method Summary
Modifier and TypeMethodDescriptionvoid
breakDownKeyJdbcValues
(Object domainValue, EntityTableMapping.KeyValueConsumer valueConsumer, SharedSessionContractImplementor session) void
forEachKeyColumn
(Consumer<EntityTableMapping.KeyColumn> keyColumnConsumer) void
Visit each key columnint
forEachSelectable
(int offset, SelectableConsumer consumer) Visit each contained selectable mapping.int
Number of columnsint
The number of selectablesgetKeyColumn
(int position) Get a key column by relative positionGroup of columns defined on the primary keygetSelectable
(int columnIndex) Get the selectable at the given positionMethods 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.SelectableMappings
forEachSelectable
-
Constructor Details
-
KeyMapping
-
-
Method Details
-
getColumnCount
public int getColumnCount()Description copied from interface:TableDetails.KeyDetails
Number of columns- Specified by:
getColumnCount
in interfaceTableDetails.KeyDetails
-
getKeyColumns
Description copied from interface:TableDetails.KeyDetails
Group of columns defined on the primary key- Specified by:
getKeyColumns
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
-
forEachKeyColumn
-
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: