Class EmbeddedIdentifierMappingImpl
java.lang.Object
org.hibernate.metamodel.internal.AbstractCompositeIdentifierMapping
org.hibernate.metamodel.mapping.internal.EmbeddedIdentifierMappingImpl
- All Implemented Interfaces:
AggregatedIdentifierMapping,AttributeMapping,AttributeMetadata,Bindable,CompositeIdentifierMapping,EmbeddableValuedModelPart,EntityIdentifierMapping,SingleAttributeIdentifierMapping,JdbcMappingContainer,MappingModelExpressible,ModelPart,ModelPartContainer,OwnedValuedModelPart,PropertyBasedMapping,SelectableMappings,ValuedModelPart,ValueMapping,TableGroupJoinProducer,TableGroupProducer,DatabaseSnapshotContributor,EmbeddableValuedFetchable,Fetchable,FetchableContainer,FetchOptions,FetchStyleAccess,FetchTimingAccess,JavaTypedExpressible,MutabilityPlanExposer
public class EmbeddedIdentifierMappingImpl
extends AbstractCompositeIdentifierMapping
implements AggregatedIdentifierMapping
Support for
EmbeddedId-
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.EntityIdentifierMapping
EntityIdentifierMapping.NatureNested classes/interfaces inherited from interface org.hibernate.metamodel.mapping.ModelPart
ModelPart.JdbcValueBiConsumer<X,Y>, ModelPart.JdbcValueConsumer -
Field Summary
Fields inherited from class org.hibernate.metamodel.internal.AbstractCompositeIdentifierMapping
sessionFactoryFields inherited from interface org.hibernate.metamodel.mapping.EntityIdentifierMapping
ID_ROLE_NAME, LEGACY_ID_NAME -
Constructor Summary
ConstructorsConstructorDescriptionEmbeddedIdentifierMappingImpl(EntityMappingType entityMapping, String name, EmbeddableMappingType embeddableDescriptor, PropertyAccess propertyAccess, String tableExpression, MappingModelCreationProcess creationProcess) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplySqlSelections(NavigablePath navigablePath, TableGroup tableGroup, DomainResultCreationState creationState) Apply SQL selections for a specific reference to this ModelPart outside the domain query's root select clause.voidapplySqlSelections(NavigablePath navigablePath, TableGroup tableGroup, DomainResultCreationState creationState, BiConsumer<SqlSelection, JdbcMapping> selectionConsumer) Apply SQL selections for a specific reference to this ModelPart outside the domain query's root select clause.intThe name of the attribute defining the id, if oneThe name of the fetchable.getIdentifier(Object entity) Extract the identifier from an instance of the entityReturns the embeddable type descriptor of the id-class, if there is one, otherwise the one of the virtual embeddable mapping type.The type for this part.The local part name, which is generally the unqualified role nameAccess to the identifier attribute's PropertyAccessGet the "stem" used as the base for generating SQL table aliases for table references that are part of the TableGroup being generatedvoidsetIdentifier(Object entity, Object id, SharedSessionContractImplementor session) Inject an identifier value into an instance of the entityMethods inherited from class org.hibernate.metamodel.internal.AbstractCompositeIdentifierMapping
containsTableReference, createDomainResult, createRootTableGroupJoin, createTableGroupJoin, findContainingEntityMapping, findSubPart, forEachJdbcValue, generateFetch, getContainingTableExpression, getEmbeddableTypeDescriptor, getEntityMapping, getMappedFetchOptions, getMappedType, getNavigableRole, getStyle, getTiming, hasContainingClass, hasPartitionedSelectionMapping, instantiate, toSqlExpression, visitSubPartsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.metamodel.mapping.AttributeMapping
asAttributeMapping, asEmbeddedAttributeMapping, asPluralAttributeMapping, findContainingEntityMapping, getExposedMutabilityPlan, getValue, isEmbeddedAttributeMapping, isPluralAttributeMapping, setValueMethods inherited from interface org.hibernate.metamodel.mapping.AttributeMetadata
getCascadeStyleMethods inherited from interface org.hibernate.metamodel.mapping.Bindable
forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, forEachJdbcValue, forEachJdbcValueMethods inherited from interface org.hibernate.metamodel.mapping.CompositeIdentifierMapping
getFetchableKey, getUnsavedStrategyMethods inherited from interface org.hibernate.sql.results.graph.DatabaseSnapshotContributor
createSnapshotDomainResultMethods inherited from interface org.hibernate.sql.results.graph.embeddable.EmbeddableValuedFetchable
getDefaultSqlAstJoinType, isSimpleJoinPredicateMethods inherited from interface org.hibernate.metamodel.mapping.EmbeddableValuedModelPart
addToCacheKey, breakDownJdbcValues, decompose, disassemble, forEachDisassembledJdbcValue, forEachInsertable, forEachJdbcType, forEachSelectable, forEachSubPart, forEachUpdatable, getFetchable, getJavaType, getJdbcMapping, getJdbcTypeCount, getNumberOfFetchables, getParentInjectionAttributePropertyAccess, getSelectable, getSelectableIndexMethods inherited from interface org.hibernate.metamodel.mapping.EntityIdentifierMapping
getIdentifier, getIdentifierIfNotUnsaved, instantiate, isEntityIdentifierMappingMethods inherited from interface org.hibernate.sql.results.graph.Fetchable
generateFetch, getMappedFetchOptions, incrementFetchDepth, resolveCircularFetchMethods inherited from interface org.hibernate.sql.results.graph.FetchableContainer
getKeyFetchable, getNumberOfFetchableKeys, getNumberOfKeyFetchables, visitFetchables, visitFetchables, visitFetchables, visitKeyFetchables, visitKeyFetchables, visitKeyFetchablesMethods inherited from interface org.hibernate.type.descriptor.java.JavaTypedExpressible
addToCacheKeyMethods inherited from interface org.hibernate.metamodel.mapping.ModelPart
areEqual, asBasicValuedModelPart, asEntityMappingType, breakDownJdbcValues, createDomainResult, decompose, getNavigableRole, isVirtualMethods inherited from interface org.hibernate.metamodel.mapping.ModelPartContainer
findByPath, findByPath, forEachSubPartMethods inherited from interface org.hibernate.metamodel.mapping.internal.SingleAttributeIdentifierMapping
getAttributeMetadata, getDeclaringType, getGenerator, getMutabilityPlan, getStateArrayPosition, isIncludedInDirtyChecking, isIncludedInOptimisticLocking, isInsertable, isNullable, isSelectable, isUpdatableMethods inherited from interface org.hibernate.sql.ast.tree.from.TableGroupJoinProducer
determineSqlJoinTypeMethods inherited from interface org.hibernate.metamodel.mapping.ValuedModelPart
forEachNonFormula, forEachSelectable, getContainingTableExpression, getSingleJdbcMappingMethods inherited from interface org.hibernate.metamodel.mapping.ValueMapping
getExpressibleJavaType, treatAs
-
Constructor Details
-
EmbeddedIdentifierMappingImpl
public EmbeddedIdentifierMappingImpl(EntityMappingType entityMapping, String name, EmbeddableMappingType embeddableDescriptor, PropertyAccess propertyAccess, String tableExpression, MappingModelCreationProcess creationProcess)
-
-
Method Details
-
getPartName
Description copied from interface:ModelPartThe local part name, which is generally the unqualified role name- Specified by:
getPartNamein interfaceAttributeMapping- Specified by:
getPartNamein interfaceEntityIdentifierMapping- Specified by:
getPartNamein interfaceModelPart- Specified by:
getPartNamein interfaceSingleAttributeIdentifierMapping
-
getNature
- Specified by:
getNaturein interfaceEntityIdentifierMapping- See Also:
-
getPartMappingType
Description copied from interface:ModelPartThe type for this part.- Specified by:
getPartMappingTypein interfaceCompositeIdentifierMapping- Specified by:
getPartMappingTypein interfaceModelPart
-
getMappedIdEmbeddableTypeDescriptor
Description copied from interface:CompositeIdentifierMappingReturns the embeddable type descriptor of the id-class, if there is one, otherwise the one of the virtual embeddable mapping type.- Specified by:
getMappedIdEmbeddableTypeDescriptorin interfaceCompositeIdentifierMapping
-
getIdentifier
Description copied from interface:EntityIdentifierMappingExtract the identifier from an instance of the entity- Specified by:
getIdentifierin interfaceEntityIdentifierMapping
-
getSqlAliasStem
Description copied from interface:TableGroupProducerGet the "stem" used as the base for generating SQL table aliases for table references that are part of the TableGroup being generatedNote that this is a metadata-ive value. It is only ever used internal to the producer producing its TableGroup.
- Specified by:
getSqlAliasStemin interfaceTableGroupProducer- See Also:
-
getFetchableName
Description copied from interface:FetchableThe name of the fetchable. This is the part's "local name".- Specified by:
getFetchableNamein interfaceFetchable- See Also:
-
getPropertyAccess
Description copied from interface:SingleAttributeIdentifierMappingAccess to the identifier attribute's PropertyAccess- Specified by:
getPropertyAccessin interfaceAttributeMapping- Specified by:
getPropertyAccessin interfaceAttributeMetadata- Specified by:
getPropertyAccessin interfacePropertyBasedMapping- Specified by:
getPropertyAccessin interfaceSingleAttributeIdentifierMapping
-
getAttributeName
Description copied from interface:EntityIdentifierMappingThe name of the attribute defining the id, if one- Specified by:
getAttributeNamein interfaceAttributeMapping- Specified by:
getAttributeNamein interfaceEntityIdentifierMapping- Specified by:
getAttributeNamein interfaceSingleAttributeIdentifierMapping
-
compare
- Specified by:
comparein interfaceAttributeMapping
-