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 TypeMethodDescriptionvoidbreakDownKeyJdbcValues(Object domainValue, EntityTableMapping.KeyValueConsumer valueConsumer, SharedSessionContractImplementor session) voidforEachKeyColumn(Consumer<EntityTableMapping.KeyColumn> keyColumnConsumer) voidVisit each key columnintforEachSelectable(int offset, SelectableConsumer consumer) Visit each contained selectable mapping.intNumber of columnsintThe 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, waitMethods inherited from interface org.hibernate.metamodel.mapping.SelectableMappings
forEachSelectable
-
Constructor Details
-
KeyMapping
-
-
Method Details
-
getColumnCount
public int getColumnCount()Description copied from interface:TableDetails.KeyDetailsNumber of columns- Specified by:
getColumnCountin interfaceTableDetails.KeyDetails
-
getKeyColumns
Description copied from interface:TableDetails.KeyDetailsGroup of columns defined on the primary key- Specified by:
getKeyColumnsin 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
-
forEachKeyColumn
-
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: