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
Constructors Constructor Description KeyMapping(List<EntityTableMapping.KeyColumn> keyColumns, ModelPart identifierPart)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
breakDownKeyJdbcValues(Object domainValue, EntityTableMapping.KeyValueConsumer valueConsumer, SharedSessionContractImplementor session)
void
forEachKeyColumn(Consumer<EntityTableMapping.KeyColumn> keyColumnConsumer)
void
forEachKeyColumn(TableDetails.KeyColumnConsumer consumer)
Visit each key columnint
forEachSelectable(int offset, SelectableConsumer consumer)
Visit each contained selectable mapping.int
getColumnCount()
Number of columnsint
getJdbcTypeCount()
The number of selectablesEntityTableMapping.KeyColumn
getKeyColumn(int position)
Get a key column by relative positionList<EntityTableMapping.KeyColumn>
getKeyColumns()
Group of columns defined on the primary keySelectableMapping
getSelectable(int columnIndex)
Get the selectable at the given position-
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.SelectableMappings
forEachSelectable, getJdbcMappings
-
-
-
-
Constructor Detail
-
KeyMapping
public KeyMapping(List<EntityTableMapping.KeyColumn> keyColumns, ModelPart identifierPart)
-
-
Method Detail
-
breakDownKeyJdbcValues
public void breakDownKeyJdbcValues(Object domainValue, EntityTableMapping.KeyValueConsumer valueConsumer, SharedSessionContractImplementor session)
-
getColumnCount
public int getColumnCount()
Description copied from interface:TableDetails.KeyDetails
Number of columns- Specified by:
getColumnCount
in interfaceTableDetails.KeyDetails
-
getKeyColumns
public List<EntityTableMapping.KeyColumn> getKeyColumns()
Description copied from interface:TableDetails.KeyDetails
Group of columns defined on the primary key- Specified by:
getKeyColumns
in interfaceTableDetails.KeyDetails
-
getKeyColumn
public EntityTableMapping.KeyColumn getKeyColumn(int position)
Description copied from interface:TableDetails.KeyDetails
Get a key column by relative position- Specified by:
getKeyColumn
in interfaceTableDetails.KeyDetails
-
forEachKeyColumn
public void forEachKeyColumn(TableDetails.KeyColumnConsumer consumer)
Description copied from interface:TableDetails.KeyDetails
Visit each key column- Specified by:
forEachKeyColumn
in interfaceTableDetails.KeyDetails
-
forEachKeyColumn
public void forEachKeyColumn(Consumer<EntityTableMapping.KeyColumn> keyColumnConsumer)
-
getJdbcTypeCount
public int getJdbcTypeCount()
Description copied from interface:SelectableMappings
The number of selectables- Specified by:
getJdbcTypeCount
in interfaceSelectableMappings
-
getSelectable
public SelectableMapping getSelectable(int columnIndex)
Description copied from interface:SelectableMappings
Get the selectable at the given position- Specified by:
getSelectable
in interfaceSelectableMappings
-
forEachSelectable
public int forEachSelectable(int offset, SelectableConsumer consumer)
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:
SelectableConsumer.accept(int, SelectableMapping)
-
-