Top Fields Constructors Methods
org.hibernate.query.derived

public Class AnonymousTupleNonAggregatedEntityIdentifierMapping

extends AnonymousTupleEmbeddableValuedModelPart
implements NonAggregatedIdentifierMapping
Class Inheritance
All Implemented Interfaces
org.hibernate.metamodel.mapping.NonAggregatedIdentifierMapping, org.hibernate.metamodel.mapping.VirtualModelPart, org.hibernate.metamodel.mapping.ModelPart, org.hibernate.metamodel.mapping.MappingModelExpressible, org.hibernate.metamodel.mapping.Bindable, org.hibernate.metamodel.mapping.JdbcMappingContainer, org.hibernate.sql.results.graph.FetchOptions, org.hibernate.sql.results.graph.FetchStyleAccess, org.hibernate.sql.results.graph.FetchTimingAccess, org.hibernate.sql.results.graph.embeddable.EmbeddableValuedFetchable, org.hibernate.sql.results.graph.Fetchable, org.hibernate.metamodel.mapping.EmbeddableValuedModelPart, org.hibernate.sql.ast.tree.from.TableGroupJoinProducer, org.hibernate.sql.ast.tree.from.TableGroupProducer, org.hibernate.metamodel.mapping.ModelPartContainer, org.hibernate.sql.results.graph.FetchableContainer, org.hibernate.metamodel.mapping.ValuedModelPart, org.hibernate.metamodel.mapping.SelectableMappings, org.hibernate.metamodel.mapping.ValueMapping, org.hibernate.type.descriptor.java.JavaTypedExpressible, org.hibernate.metamodel.mapping.CompositeIdentifierMapping, org.hibernate.metamodel.mapping.EntityIdentifierMapping
Annotations
@Incubating
Imports
java.util.List, .Set, org.hibernate.Incubating, org.hibernate.engine.FetchStyle, .FetchTiming, org.hibernate.engine.spi.IdentifierValue, .SharedSessionContractImplementor, org.hibernate.metamodel.mapping.EmbeddableMappingType, .NonAggregatedIdentifierMapping, org.hibernate.metamodel.mapping.internal.IdClassEmbeddable, .VirtualIdEmbeddable, org.hibernate.metamodel.model.domain.DomainType, org.hibernate.query.sqm.SqmExpressible, org.hibernate.sql.ast.spi.SqlSelection, jakarta.persistence.metamodel.Attribute

Author
Christian Beikov

Field Summary

Modifier and TypeField and Description
private final NonAggregatedIdentifierMapping

Constructor Summary

AccessConstructor and Description
public
AnonymousTupleNonAggregatedEntityIdentifierMapping(SqmExpressible<?> sqmExpressible, List<SqlSelection> sqlSelections, int selectionIndex, String selectionExpression, Set<String> compatibleTableExpressions, Set<Attribute<?, ?>> attributes, DomainType<?> domainType, String componentName, NonAggregatedIdentifierMapping delegate)

Method Summary

Modifier and TypeMethod and Description
public String
getAttributeName()

Implements org.hibernate.metamodel.mapping.EntityIdentifierMapping.getAttributeName.

The name of the attribute defining the id, if one
public IdClassEmbeddable
public Object
getIdentifier(Object entity)

Implements org.hibernate.metamodel.mapping.EntityIdentifierMapping.getIdentifier.

Extract the identifier from an instance of the entity
public NonAggregatedIdentifierMapping.IdentifierValueMapper
public EmbeddableMappingType
getMappedIdEmbeddableTypeDescriptor()

Implements org.hibernate.metamodel.mapping.CompositeIdentifierMapping.getMappedIdEmbeddableTypeDescriptor.

Returns the embeddable type descriptor of the id-class, if there is one, otherwise the one of the virtual embeddable mapping type.
public EmbeddableMappingType
public EntityIdentifierMapping.Nature
public EmbeddableMappingType
public FetchStyle
public FetchTiming
public IdentifierValue
getUnsavedStrategy()

Overrides default org.hibernate.metamodel.mapping.CompositeIdentifierMapping.getUnsavedStrategy.

The strategy for distinguishing between detached and transient state based on the identifier mapping
public VirtualIdEmbeddable
public boolean
hasContainingClass()

Implements org.hibernate.metamodel.mapping.CompositeIdentifierMapping.hasContainingClass.

Does the identifier have a corresponding EmbeddableId or IdClass?
public Object
instantiate()

Implements org.hibernate.metamodel.mapping.EntityIdentifierMapping.instantiate.

Instantiate an instance of the identifier.
public void
setIdentifier(Object entity, Object id, SharedSessionContractImplementor session)

Implements org.hibernate.metamodel.mapping.EntityIdentifierMapping.setIdentifier.

Inject an identifier value into an instance of the entity
Inherited from org.hibernate.query.derived.AnonymousTupleEmbeddableValuedModelPart:
addToCacheKeyapplySqlSelectionsapplySqlSelectionsbreakDownJdbcValuescreateDomainResultcreateInverseMappingTypecreateRootTableGroupJoincreateTableGroupJoindecomposedisassemblefindContainingEntityMappingfindSubPartforEachAttributeMappingforEachDisassembledJdbcValueforEachInsertableforEachJdbcTypeforEachJdbcValueforEachSelectableforEachSelectableforEachSubPartforEachUpdatablegenerateFetchgetAttributeMappinggetAttributeMappingsgetContainingTableExpressiongetDefaultSqlAstJoinTypegetEmbeddableTypeDescriptorgetEmbeddedValueMappinggetFetchablegetFetchableKeygetFetchableNamegetJavaTypegetJdbcMappinggetJdbcTypeCountgetMappedFetchOptionsgetMappedJavaTypegetNavigableRolegetNumberOfAttributeMappingsgetNumberOfFetchablesgetPartNamegetRepresentationStrategygetSelectablegetSelectableIndexgetSqlAliasStemgetValuegetValueshasPartitionedSelectionMappingisCreateEmptyCompositesEnabledisSimpleJoinPredicatesetValuesetValuestoSqlExpressionvisitSubParts

Field Detail

delegateback to summary
private final NonAggregatedIdentifierMapping delegate

Constructor Detail

AnonymousTupleNonAggregatedEntityIdentifierMappingback to summary
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

getAttributeNameback to summary
public String getAttributeName()

Implements org.hibernate.metamodel.mapping.EntityIdentifierMapping.getAttributeName.

Doc from org.hibernate.metamodel.mapping.EntityIdentifierMapping.getAttributeName.

The name of the attribute defining the id, if one

Annotations
@Override
getIdClassEmbeddableback to summary
public IdClassEmbeddable getIdClassEmbeddable()

Implements org.hibernate.metamodel.mapping.NonAggregatedIdentifierMapping.getIdClassEmbeddable.

Doc from org.hibernate.metamodel.mapping.NonAggregatedIdentifierMapping.getIdClassEmbeddable.

The id-class representation of this id mapping

Annotations
@Override
getIdentifierback to summary
public Object getIdentifier(Object entity)

Implements org.hibernate.metamodel.mapping.EntityIdentifierMapping.getIdentifier.

Doc from org.hibernate.metamodel.mapping.EntityIdentifierMapping.getIdentifier.

Extract the identifier from an instance of the entity

Annotations
@Override
getIdentifierValueMapperback to summary
public NonAggregatedIdentifierMapping.IdentifierValueMapper getIdentifierValueMapper()

Implements org.hibernate.metamodel.mapping.NonAggregatedIdentifierMapping.getIdentifierValueMapper.

Doc from org.hibernate.metamodel.mapping.NonAggregatedIdentifierMapping.getIdentifierValueMapper.

The id-class, if there is one, otherwise the virtual-id.

Annotations
@Override
getMappedIdEmbeddableTypeDescriptorback to summary
public EmbeddableMappingType getMappedIdEmbeddableTypeDescriptor()

Implements org.hibernate.metamodel.mapping.CompositeIdentifierMapping.getMappedIdEmbeddableTypeDescriptor.

Doc from org.hibernate.metamodel.mapping.CompositeIdentifierMapping.getMappedIdEmbeddableTypeDescriptor.

Returns the embeddable type descriptor of the id-class, if there is one, otherwise the one of the virtual embeddable mapping type.

Annotations
@Override
getMappedTypeback to summary
public EmbeddableMappingType getMappedType()

Overrides default org.hibernate.metamodel.mapping.EmbeddableValuedModelPart.getMappedType.

Implements org.hibernate.metamodel.mapping.ValueMapping.getMappedType.

Doc from org.hibernate.metamodel.mapping.ValueMapping.getMappedType.

Descriptor for the type of this mapping

Annotations
@Override
getNatureback to summary
public EntityIdentifierMapping.Nature getNature()

Implements org.hibernate.metamodel.mapping.EntityIdentifierMapping.getNature.

Annotations
@Override
getPartMappingTypeback to summary
public EmbeddableMappingType getPartMappingType()

Overrides default org.hibernate.metamodel.mapping.EmbeddableMappingType.getPartMappingType.

Implements org.hibernate.metamodel.mapping.CompositeIdentifierMapping.getPartMappingType, org.hibernate.metamodel.mapping.ModelPart.getPartMappingType.

Doc from org.hibernate.metamodel.mapping.ModelPart.getPartMappingType.

The type for this part.

Annotations
@Override
getStyleback to summary
public FetchStyle getStyle()

Implements org.hibernate.sql.results.graph.FetchStyleAccess.getStyle.

Annotations
@Override
getTimingback to summary
public FetchTiming getTiming()

Implements org.hibernate.sql.results.graph.FetchTimingAccess.getTiming.

Annotations
@Override
getUnsavedStrategyback to summary
public IdentifierValue getUnsavedStrategy()

Overrides default org.hibernate.metamodel.mapping.CompositeIdentifierMapping.getUnsavedStrategy.

Doc from org.hibernate.metamodel.mapping.EntityIdentifierMapping.getUnsavedStrategy.

The strategy for distinguishing between detached and transient state based on the identifier mapping

Annotations
@Override
getVirtualIdEmbeddableback to summary
public VirtualIdEmbeddable getVirtualIdEmbeddable()

Implements org.hibernate.metamodel.mapping.NonAggregatedIdentifierMapping.getVirtualIdEmbeddable.

Doc from org.hibernate.metamodel.mapping.NonAggregatedIdentifierMapping.getVirtualIdEmbeddable.

The virtual-id representation of this id mapping

Annotations
@Override
hasContainingClassback to summary
public boolean hasContainingClass()

Implements org.hibernate.metamodel.mapping.CompositeIdentifierMapping.hasContainingClass.

Doc from org.hibernate.metamodel.mapping.CompositeIdentifierMapping.hasContainingClass.

Does the identifier have a corresponding EmbeddableId or IdClass?

Returns:boolean

false if there is not an IdCass or an EmbeddableId

Annotations
@Override
instantiateback to summary
public Object instantiate()

Implements org.hibernate.metamodel.mapping.EntityIdentifierMapping.instantiate.

Doc from org.hibernate.metamodel.mapping.EntityIdentifierMapping.instantiate.

Instantiate an instance of the identifier.

Annotations
@Override
setIdentifierback to summary
public void setIdentifier(Object entity, Object id, SharedSessionContractImplementor session)

Implements org.hibernate.metamodel.mapping.EntityIdentifierMapping.setIdentifier.

Doc from org.hibernate.metamodel.mapping.EntityIdentifierMapping.setIdentifier.

Inject an identifier value into an instance of the entity

Annotations
@Override