Class AnonymousTupleEmbeddedEntityIdentifierMapping
java.lang.Object
org.hibernate.query.sqm.tuple.internal.AnonymousTupleEmbeddableValuedModelPart
org.hibernate.query.sqm.tuple.internal.AnonymousTupleEmbeddedEntityIdentifierMapping
- All Implemented Interfaces:
AttributeMapping,AttributeMetadata,Bindable,CompositeIdentifierMapping,EmbeddableMappingType,EmbeddableValuedModelPart,EntityIdentifierMapping,SingleAttributeIdentifierMapping,JdbcMappingContainer,ManagedMappingType,MappingModelExpressible,MappingType,ModelPart,ModelPartContainer,OwnedValuedModelPart,PropertyBasedMapping,SelectableMappings,ValuedModelPart,ValueMapping,TableGroupJoinProducer,TableGroupProducer,DatabaseSnapshotContributor,Fetchable,FetchableContainer,JavaTypedExpressible,MutabilityPlanExposer
@Incubating
public class AnonymousTupleEmbeddedEntityIdentifierMapping
extends AnonymousTupleEmbeddableValuedModelPart
implements CompositeIdentifierMapping, SingleAttributeIdentifierMapping
-
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.EmbeddableMappingType
EmbeddableMappingType.ConcreteEmbeddableTypeNested 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 interface org.hibernate.metamodel.mapping.EntityIdentifierMapping
ID_ROLE_NAME, LEGACY_ID_NAME -
Constructor Summary
ConstructorsConstructorDescriptionAnonymousTupleEmbeddedEntityIdentifierMapping(SqmExpressible<?> sqmExpressible, SqlTypedMapping[] sqlTypedMappings, int selectionIndex, String selectionExpression, Set<String> compatibleTableExpressions, Set<? extends Attribute<?, ?>> attributes, DomainType<?> domainType, CompositeIdentifierMapping delegate) -
Method Summary
Modifier and TypeMethodDescriptionintThe name of the attribute defining the id, if onegetIdentifier(Object entity) Extract the identifier from an instance of the entitygetIdentifier(Object entity, MergeContext mergeContext) 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.Descriptor for the type of this mappingThe type for this part.Access to the identifier attribute's PropertyAccessThe strategy for distinguishing between detached and transient state based on the identifier mappingbooleanDoes the identifier have a corresponding EmbeddableId or IdClass?Instantiate an instance of the identifier.voidsetIdentifier(Object entity, Object id, SharedSessionContractImplementor session) Inject an identifier value into an instance of the entityMethods inherited from class org.hibernate.query.sqm.tuple.internal.AnonymousTupleEmbeddableValuedModelPart
addToCacheKey, applySqlSelections, applySqlSelections, breakDownJdbcValues, createDomainResult, createInverseMappingType, createRootTableGroupJoin, createTableGroupJoin, decompose, disassemble, findContainingEntityMapping, findSubPart, forEachAttributeMapping, forEachDisassembledJdbcValue, forEachInsertable, forEachJdbcType, forEachJdbcValue, forEachSelectable, forEachSelectable, forEachSubPart, forEachUpdatable, generateFetch, getAttributeMapping, getAttributeMappings, getContainingTableExpression, getDefaultSqlAstJoinType, getEmbeddableTypeDescriptor, getEmbeddedValueMapping, getFetchable, getFetchableKey, getFetchableName, getJavaType, getJdbcMapping, getJdbcTypeCount, getMappedFetchOptions, getMappedJavaType, getNavigableRole, getNumberOfAttributeMappings, getNumberOfFetchables, getPartName, getRepresentationStrategy, getSelectable, getSelectableIndex, getSqlAliasStem, getValue, getValues, hasPartitionedSelectionMapping, isSimpleJoinPredicate, setValue, setValues, 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
getFetchableKeyMethods inherited from interface org.hibernate.sql.results.graph.DatabaseSnapshotContributor
createSnapshotDomainResultMethods inherited from interface org.hibernate.metamodel.mapping.EmbeddableMappingType
anyRequiresAggregateColumnWriter, findSubtypeByDiscriminator, findSubtypeBySubclass, getAggregateMapping, getConcreteEmbeddableTypes, getDiscriminatorMapping, getJdbcValueCount, getJdbcValueSelectable, isPolymorphic, requiresAggregateColumnWriter, shouldBindAggregateMapping, shouldMutateAggregateMapping, shouldSelectAggregateMappingMethods inherited from interface org.hibernate.metamodel.mapping.EmbeddableValuedModelPart
addToCacheKey, breakDownJdbcValues, decompose, disassemble, findSubPart, forEachDisassembledJdbcValue, forEachInsertable, forEachJdbcType, forEachJdbcValue, forEachSelectable, forEachSubPart, forEachUpdatable, getEmbeddableTypeDescriptor, getFetchable, getJavaType, getJdbcMapping, getJdbcTypeCount, getNumberOfFetchables, getParentInjectionAttributePropertyAccess, getSelectable, getSelectableIndex, hasPartitionedSelectionMapping, toSqlExpression, visitSubPartsMethods inherited from interface org.hibernate.metamodel.mapping.EntityIdentifierMapping
getIdentifierIfNotUnsaved, isEntityIdentifierMappingMethods inherited from interface org.hibernate.sql.results.graph.Fetchable
generateFetch, getFetchableName, 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.ManagedMappingType
findAttributeMapping, forEachAttributeMapping, isAffectedByEnabledFiltersMethods inherited from interface org.hibernate.metamodel.mapping.ModelPart
areEqual, asBasicValuedModelPart, asEntityMappingType, breakDownJdbcValues, 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, getPartName, getStateArrayPosition, isIncludedInDirtyChecking, isIncludedInOptimisticLocking, isInsertable, isNullable, isSelectable, isUpdatableMethods inherited from interface org.hibernate.sql.ast.tree.from.TableGroupJoinProducer
createRootTableGroupJoin, createTableGroupJoin, determineSqlJoinType, getDefaultSqlAstJoinType, isSimpleJoinPredicateMethods inherited from interface org.hibernate.sql.ast.tree.from.TableGroupProducer
containsTableReference, getSqlAliasStemMethods inherited from interface org.hibernate.metamodel.mapping.ValuedModelPart
forEachNonFormula, forEachSelectable, getContainingTableExpression, getSingleJdbcMappingMethods inherited from interface org.hibernate.metamodel.mapping.ValueMapping
getExpressibleJavaType, treatAs
-
Constructor Details
-
AnonymousTupleEmbeddedEntityIdentifierMapping
public AnonymousTupleEmbeddedEntityIdentifierMapping(SqmExpressible<?> sqmExpressible, SqlTypedMapping[] sqlTypedMappings, int selectionIndex, String selectionExpression, Set<String> compatibleTableExpressions, Set<? extends Attribute<?, ?>> attributes, DomainType<?> domainType, CompositeIdentifierMapping delegate)
-
-
Method Details
-
getNature
- Specified by:
getNaturein interfaceEntityIdentifierMapping- See Also:
-
getUnsavedStrategy
Description copied from interface:EntityIdentifierMappingThe strategy for distinguishing between detached and transient state based on the identifier mapping- Specified by:
getUnsavedStrategyin interfaceCompositeIdentifierMapping- Specified by:
getUnsavedStrategyin interfaceEntityIdentifierMapping- See Also:
-
getIdentifier
Description copied from interface:EntityIdentifierMappingExtract the identifier from an instance of the entity- Specified by:
getIdentifierin interfaceEntityIdentifierMapping
-
getIdentifier
Description copied from interface:EntityIdentifierMappingExtract the identifier from an instance of the entity- Specified by:
getIdentifierin interfaceEntityIdentifierMapping
-
instantiate
Description copied from interface:EntityIdentifierMappingInstantiate an instance of the identifier.- Specified by:
instantiatein interfaceEntityIdentifierMapping
-
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
-
getPartMappingType
Description copied from interface:ModelPartThe type for this part.- Specified by:
getPartMappingTypein interfaceCompositeIdentifierMapping- Specified by:
getPartMappingTypein interfaceEmbeddableMappingType- Specified by:
getPartMappingTypein interfaceManagedMappingType- Specified by:
getPartMappingTypein interfaceModelPart
-
compare
- Specified by:
comparein interfaceAttributeMapping- Specified by:
comparein interfaceEmbeddableMappingType
-
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
-
hasContainingClass
public boolean hasContainingClass()Description copied from interface:CompositeIdentifierMappingDoes the identifier have a corresponding EmbeddableId or IdClass?- Specified by:
hasContainingClassin interfaceCompositeIdentifierMapping- Returns:
- false if there is not an IdCass or an EmbeddableId
-
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
-
getMappedType
Description copied from interface:ValueMappingDescriptor for the type of this mapping- Specified by:
getMappedTypein interfaceEmbeddableValuedModelPart- Specified by:
getMappedTypein interfaceValueMapping
-