Top Fields Constructors Methods
org.hibernate.query.derived

public Class AnonymousTupleEmbeddedEntityIdentifierMapping

extends AnonymousTupleEmbeddableValuedModelPart
implements CompositeIdentifierMapping, SingleAttributeIdentifierMapping
Class Inheritance
All Implemented Interfaces
org.hibernate.metamodel.mapping.internal.SingleAttributeIdentifierMapping, org.hibernate.metamodel.mapping.AttributeMetadata, org.hibernate.metamodel.mapping.AttributeMapping, org.hibernate.type.descriptor.java.MutabilityPlanExposer, org.hibernate.metamodel.mapping.PropertyBasedMapping, org.hibernate.sql.results.graph.DatabaseSnapshotContributor, org.hibernate.sql.results.graph.Fetchable, org.hibernate.metamodel.mapping.ModelPart, org.hibernate.metamodel.mapping.MappingModelExpressible, org.hibernate.metamodel.mapping.Bindable, org.hibernate.metamodel.mapping.JdbcMappingContainer, org.hibernate.metamodel.mapping.OwnedValuedModelPart, 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.EntityIdentifierMapping, org.hibernate.metamodel.mapping.CompositeIdentifierMapping, 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
Annotations
@Incubating
Imports
java.util.List, .Set, org.hibernate.Incubating, org.hibernate.engine.spi.IdentifierValue, .SharedSessionContractImplementor, org.hibernate.metamodel.mapping.CompositeIdentifierMapping, .EmbeddableMappingType, org.hibernate.metamodel.mapping.internal.SingleAttributeIdentifierMapping, org.hibernate.metamodel.model.domain.DomainType, org.hibernate.property.access.spi.PropertyAccess, 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 CompositeIdentifierMapping

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public int
public String
public Object
getIdentifier(Object entity)

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

Extract the identifier from an instance of the entity
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 PropertyAccess
public IdentifierValue
getUnsavedStrategy()

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

Implements org.hibernate.metamodel.mapping.EntityIdentifierMapping.getUnsavedStrategy.

The strategy for distinguishing between detached and transient state based on the identifier mapping
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 CompositeIdentifierMapping delegate

Constructor Detail

AnonymousTupleEmbeddedEntityIdentifierMappingback to summary
public AnonymousTupleEmbeddedEntityIdentifierMapping(SqmExpressible<?> sqmExpressible, List<SqlSelection> sqlSelections, int selectionIndex, String selectionExpression, Set<String> compatibleTableExpressions, Set<Attribute<?, ?>> attributes, DomainType<?> domainType, CompositeIdentifierMapping delegate)

Method Detail

compareback to summary
public int compare(Object value1, Object value2)

Overrides default org.hibernate.metamodel.mapping.AttributeMapping.compare, org.hibernate.metamodel.mapping.EmbeddableMappingType.compare.

Annotations
@Override
getAttributeNameback to summary
public String getAttributeName()

Implements org.hibernate.metamodel.mapping.EntityIdentifierMapping.getAttributeName, org.hibernate.metamodel.mapping.internal.SingleAttributeIdentifierMapping.getAttributeName.

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

The name of the attribute defining the id, if one

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
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
getPropertyAccessback to summary
public PropertyAccess getPropertyAccess()

Implements org.hibernate.metamodel.mapping.internal.SingleAttributeIdentifierMapping.getPropertyAccess.

Doc from org.hibernate.metamodel.mapping.internal.SingleAttributeIdentifierMapping.getPropertyAccess.

Access to the identifier attribute's PropertyAccess

Annotations
@Override
getUnsavedStrategyback to summary
public IdentifierValue getUnsavedStrategy()

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

Implements org.hibernate.metamodel.mapping.EntityIdentifierMapping.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
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