Package org.hibernate.query.derived
Class AnonymousTupleNonAggregatedEntityIdentifierMapping
- java.lang.Object
-
- org.hibernate.query.derived.AnonymousTupleEmbeddableValuedModelPart
-
- org.hibernate.query.derived.AnonymousTupleNonAggregatedEntityIdentifierMapping
-
- All Implemented Interfaces:
Bindable,CompositeIdentifierMapping,EmbeddableMappingType,EmbeddableValuedModelPart,EntityIdentifierMapping,JdbcMappingContainer,ManagedMappingType,MappingModelExpressible,MappingType,ModelPart,ModelPartContainer,NonAggregatedIdentifierMapping,SelectableMappings,ValuedModelPart,ValueMapping,VirtualModelPart,TableGroupJoinProducer,TableGroupProducer,EmbeddableValuedFetchable,Fetchable,FetchableContainer,FetchOptions,FetchStyleAccess,FetchTimingAccess,JavaTypedExpressible
@Incubating public class AnonymousTupleNonAggregatedEntityIdentifierMapping extends AnonymousTupleEmbeddableValuedModelPart implements NonAggregatedIdentifierMapping
-
-
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.ConcreteEmbeddableType
-
Nested classes/interfaces inherited from interface org.hibernate.metamodel.mapping.EntityIdentifierMapping
EntityIdentifierMapping.Nature
-
Nested classes/interfaces inherited from interface org.hibernate.metamodel.mapping.ModelPart
ModelPart.JdbcValueBiConsumer<X,Y>, ModelPart.JdbcValueConsumer
-
Nested classes/interfaces inherited from interface org.hibernate.metamodel.mapping.NonAggregatedIdentifierMapping
NonAggregatedIdentifierMapping.IdentifierValueMapper
-
-
Field Summary
-
Fields inherited from interface org.hibernate.metamodel.mapping.EntityIdentifierMapping
ID_ROLE_NAME, LEGACY_ID_NAME
-
-
Constructor Summary
Constructors Constructor Description AnonymousTupleNonAggregatedEntityIdentifierMapping(SqmExpressible<?> sqmExpressible, List<SqlSelection> sqlSelections, int selectionIndex, String selectionExpression, Set<String> compatibleTableExpressions, Set<Attribute<?,?>> attributes, DomainType<?> domainType, String componentName, NonAggregatedIdentifierMapping delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanareEqual(@Nullable Object one, @Nullable Object other, SharedSessionContractImplementor session)StringgetAttributeName()The name of the attribute defining the id, if oneIdClassEmbeddablegetIdClassEmbeddable()The id-class representation of this id mappingObjectgetIdentifier(Object entity)Extract the identifier from an instance of the entityObjectgetIdentifier(Object entity, MergeContext mergeContext)Extract the identifier from an instance of the entity It's supposed to be use during the merging processNonAggregatedIdentifierMapping.IdentifierValueMappergetIdentifierValueMapper()The id-class, if there is one, otherwise the virtual-id.EmbeddableMappingTypegetMappedIdEmbeddableTypeDescriptor()Returns the embeddable type descriptor of the id-class, if there is one, otherwise the one of the virtual embeddable mapping type.EmbeddableMappingTypegetMappedType()Descriptor for the type of this mappingEntityIdentifierMapping.NaturegetNature()EmbeddableMappingTypegetPartMappingType()The type for this part.FetchStylegetStyle()FetchTiminggetTiming()IdentifierValuegetUnsavedStrategy()The strategy for distinguishing between detached and transient state based on the identifier mappingVirtualIdEmbeddablegetVirtualIdEmbeddable()The virtual-id representation of this id mappingbooleanhasContainingClass()Does the identifier have a corresponding EmbeddableId or IdClass?Objectinstantiate()Instantiate an instance of the identifier.voidsetIdentifier(Object entity, Object id, SharedSessionContractImplementor session)Inject an identifier value into an instance of the entity-
Methods inherited from class org.hibernate.query.derived.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, isCreateEmptyCompositesEnabled, isSimpleJoinPredicate, setValue, setValues, toSqlExpression, visitSubParts
-
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.Bindable
forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue
-
Methods inherited from interface org.hibernate.metamodel.mapping.EmbeddableMappingType
anyRequiresAggregateColumnWriter, compare, findSubtypeByDiscriminator, findSubtypeBySubclass, getAggregateMapping, getConcreteEmbeddableTypes, getDiscriminatorMapping, getJdbcValueCount, getJdbcValueSelectable, isPolymorphic, requiresAggregateColumnWriter, shouldBindAggregateMapping, shouldMutateAggregateMapping, shouldSelectAggregateMapping
-
Methods inherited from interface org.hibernate.sql.results.graph.embeddable.EmbeddableValuedFetchable
getDefaultSqlAstJoinType, isSimpleJoinPredicate
-
Methods 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, visitSubParts
-
Methods inherited from interface org.hibernate.metamodel.mapping.EntityIdentifierMapping
getIdentifierIfNotUnsaved, getPartName, isEntityIdentifierMapping
-
Methods inherited from interface org.hibernate.sql.results.graph.Fetchable
asAttributeMapping, generateFetch, getFetchableName, getMappedFetchOptions, incrementFetchDepth, isSelectable, resolveCircularFetch
-
Methods inherited from interface org.hibernate.sql.results.graph.FetchableContainer
getKeyFetchable, getNumberOfFetchableKeys, getNumberOfKeyFetchables, visitFetchables, visitFetchables, visitFetchables, visitKeyFetchables, visitKeyFetchables, visitKeyFetchables
-
Methods inherited from interface org.hibernate.type.descriptor.java.JavaTypedExpressible
addToCacheKey
-
Methods inherited from interface org.hibernate.metamodel.mapping.ManagedMappingType
findAttributeMapping, forEachAttributeMapping, isAffectedByEnabledFilters
-
Methods inherited from interface org.hibernate.metamodel.mapping.ModelPart
asBasicValuedModelPart, asEntityMappingType, breakDownJdbcValues, decompose, findContainingEntityMapping, getNavigableRole
-
Methods inherited from interface org.hibernate.metamodel.mapping.ModelPartContainer
findByPath, findByPath, forEachSubPart
-
Methods inherited from interface org.hibernate.metamodel.mapping.NonAggregatedIdentifierMapping
getFetchableKey
-
Methods inherited from interface org.hibernate.sql.ast.tree.from.TableGroupJoinProducer
createRootTableGroupJoin, createTableGroupJoin, determineSqlJoinType
-
Methods inherited from interface org.hibernate.sql.ast.tree.from.TableGroupProducer
containsTableReference, getSqlAliasStem
-
Methods inherited from interface org.hibernate.metamodel.mapping.ValuedModelPart
forEachNonFormula, forEachSelectable, getContainingTableExpression, getSingleJdbcMapping
-
Methods inherited from interface org.hibernate.metamodel.mapping.ValueMapping
getExpressibleJavaType, treatAs
-
Methods inherited from interface org.hibernate.metamodel.mapping.VirtualModelPart
isVirtual
-
-
-
-
Constructor Detail
-
AnonymousTupleNonAggregatedEntityIdentifierMapping
public AnonymousTupleNonAggregatedEntityIdentifierMapping(SqmExpressible<?> sqmExpressible, List<SqlSelection> sqlSelections, int selectionIndex, String selectionExpression, Set<String> compatibleTableExpressions, Set<Attribute<?,?>> attributes, DomainType<?> domainType, String componentName, NonAggregatedIdentifierMapping delegate)
-
-
Method Detail
-
getNature
public EntityIdentifierMapping.Nature getNature()
- Specified by:
getNaturein interfaceEntityIdentifierMapping- See Also:
EntityIdentifierMapping.Nature
-
getAttributeName
public String getAttributeName()
Description copied from interface:EntityIdentifierMappingThe name of the attribute defining the id, if one- Specified by:
getAttributeNamein interfaceEntityIdentifierMapping
-
getUnsavedStrategy
public IdentifierValue 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:
EntityVersionMapping.getUnsavedStrategy()
-
getIdentifier
public Object getIdentifier(Object entity)
Description copied from interface:EntityIdentifierMappingExtract the identifier from an instance of the entity- Specified by:
getIdentifierin interfaceEntityIdentifierMapping
-
getIdentifier
public Object getIdentifier(Object entity, MergeContext mergeContext)
Description copied from interface:EntityIdentifierMappingExtract the identifier from an instance of the entity It's supposed to be use during the merging process- Specified by:
getIdentifierin interfaceEntityIdentifierMapping
-
setIdentifier
public void setIdentifier(Object entity, Object id, SharedSessionContractImplementor session)
Description copied from interface:EntityIdentifierMappingInject an identifier value into an instance of the entity- Specified by:
setIdentifierin interfaceEntityIdentifierMapping
-
instantiate
public Object instantiate()
Description copied from interface:EntityIdentifierMappingInstantiate an instance of the identifier.- Specified by:
instantiatein interfaceEntityIdentifierMapping
-
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
public EmbeddableMappingType 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
public EmbeddableMappingType getMappedType()
Description copied from interface:ValueMappingDescriptor for the type of this mapping- Specified by:
getMappedTypein interfaceEmbeddableValuedModelPart- Specified by:
getMappedTypein interfaceValueMapping
-
getPartMappingType
public EmbeddableMappingType 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
-
getVirtualIdEmbeddable
public VirtualIdEmbeddable getVirtualIdEmbeddable()
Description copied from interface:NonAggregatedIdentifierMappingThe virtual-id representation of this id mapping- Specified by:
getVirtualIdEmbeddablein interfaceNonAggregatedIdentifierMapping
-
getIdClassEmbeddable
public IdClassEmbeddable getIdClassEmbeddable()
Description copied from interface:NonAggregatedIdentifierMappingThe id-class representation of this id mapping- Specified by:
getIdClassEmbeddablein interfaceNonAggregatedIdentifierMapping
-
getIdentifierValueMapper
public NonAggregatedIdentifierMapping.IdentifierValueMapper getIdentifierValueMapper()
Description copied from interface:NonAggregatedIdentifierMappingThe id-class, if there is one, otherwise the virtual-id.- Specified by:
getIdentifierValueMapperin interfaceNonAggregatedIdentifierMapping
-
getStyle
public FetchStyle getStyle()
- Specified by:
getStylein interfaceFetchStyleAccess
-
getTiming
public FetchTiming getTiming()
- Specified by:
getTimingin interfaceFetchTimingAccess
-
areEqual
public boolean areEqual(@Nullable Object one, @Nullable Object other, SharedSessionContractImplementor session)
-
-