Package org.hibernate.metamodel.mapping
Interface NonAggregatedIdentifierMapping.IdentifierValueMapper
-
- All Superinterfaces:
Bindable
,EmbeddableMappingType
,FetchableContainer
,JdbcMappingContainer
,ManagedMappingType
,MappingModelExpressible
,MappingType
,ModelPart
,ModelPartContainer
,SelectableMappings
- All Known Implementing Classes:
IdClassEmbeddable
,VirtualIdEmbeddable
- Enclosing interface:
- NonAggregatedIdentifierMapping
public static interface NonAggregatedIdentifierMapping.IdentifierValueMapper extends EmbeddableMappingType
Think of an AttributeConverter for id values to account for representation difference between virtual and id-class mappings
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hibernate.metamodel.mapping.Bindable
Bindable.JdbcValuesBiConsumer<X,Y>, Bindable.JdbcValuesConsumer
-
Nested classes/interfaces inherited from interface org.hibernate.metamodel.mapping.ModelPart
ModelPart.JdbcValueBiConsumer<X,Y>, ModelPart.JdbcValueConsumer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
forEachAttribute(IndexedConsumer<SingularAttributeMapping> consumer)
Convenience method to iterate the attributes for this mapper's representationEmbeddableValuedModelPart
getEmbeddedPart()
Object
getIdentifier(Object entity, SharedSessionContractImplementor session)
Extract the identifier out of the given entity, returning the mapper's representationvoid
setIdentifier(Object entity, Object id, SharedSessionContractImplementor session)
Extract the identifier out of the given entity, returning the mapper's representation-
Methods inherited from interface org.hibernate.metamodel.mapping.Bindable
addToCacheKey, disassemble, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue
-
Methods inherited from interface org.hibernate.metamodel.mapping.EmbeddableMappingType
anyRequiresAggregateColumnWriter, applySqlSelections, applySqlSelections, compare, createDomainResult, createInverseMappingType, forEachInsertable, forEachJdbcType, forEachSelectable, forEachSelectable, forEachUpdatable, getAggregateMapping, getEmbeddedValueMapping, getJdbcMappings, getJdbcTypeCount, getJdbcValueCount, getJdbcValueSelectable, getPartMappingType, getRepresentationStrategy, getSelectableIndex, isCreateEmptyCompositesEnabled, requiresAggregateColumnWriter, shouldBindAggregateMapping, shouldMutateAggregateMapping, shouldSelectAggregateMapping
-
Methods inherited from interface org.hibernate.sql.results.graph.FetchableContainer
getFetchable, getKeyFetchable, getNumberOfFetchableKeys, getNumberOfFetchables, getNumberOfKeyFetchables, visitFetchables, visitFetchables, visitFetchables, visitKeyFetchables, visitKeyFetchables, visitKeyFetchables
-
Methods inherited from interface org.hibernate.metamodel.mapping.JdbcMappingContainer
getJdbcMapping, getSingleJdbcMapping
-
Methods inherited from interface org.hibernate.metamodel.mapping.ManagedMappingType
findAttributeMapping, forEachAttributeMapping, forEachAttributeMapping, getAttributeMapping, getAttributeMappings, getJavaType, getNumberOfAttributeMappings, getValue, getValues, hasPartitionedSelectionMapping, setValue, setValues
-
Methods inherited from interface org.hibernate.metamodel.mapping.MappingType
getMappedJavaType
-
Methods inherited from interface org.hibernate.metamodel.mapping.ModelPart
areEqual, asAttributeMapping, asBasicValuedModelPart, asEntityMappingType, breakDownJdbcValues, breakDownJdbcValues, decompose, decompose, findContainingEntityMapping, getNavigableRole, getPartName, isEntityIdentifierMapping, isVirtual
-
Methods inherited from interface org.hibernate.metamodel.mapping.ModelPartContainer
findByPath, findByPath, findSubPart, forEachSubPart, forEachSubPart, visitSubParts
-
Methods inherited from interface org.hibernate.metamodel.mapping.SelectableMappings
getSelectable
-
-
-
-
Method Detail
-
getEmbeddedPart
EmbeddableValuedModelPart getEmbeddedPart()
-
getIdentifier
Object getIdentifier(Object entity, SharedSessionContractImplementor session)
Extract the identifier out of the given entity, returning the mapper's representation
-
setIdentifier
void setIdentifier(Object entity, Object id, SharedSessionContractImplementor session)
Extract the identifier out of the given entity, returning the mapper's representation
-
forEachAttribute
default void forEachAttribute(IndexedConsumer<SingularAttributeMapping> consumer)
Convenience method to iterate the attributes for this mapper's representation
-
-