Top Fields Constructors Methods
org.hibernate.query.derived

public Class AnonymousTupleBasicEntityIdentifierMapping

extends AnonymousTupleBasicValuedModelPart
implements BasicEntityIdentifierMapping
Class Inheritance
All Implemented Interfaces
org.hibernate.metamodel.mapping.BasicEntityIdentifierMapping, org.hibernate.metamodel.mapping.BasicValuedModelPart, org.hibernate.metamodel.mapping.SelectableMapping, org.hibernate.metamodel.mapping.SqlTypedMapping, 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.ValuedModelPart, org.hibernate.metamodel.mapping.SelectableMappings, org.hibernate.metamodel.mapping.ValueMapping, org.hibernate.type.descriptor.java.JavaTypedExpressible, org.hibernate.metamodel.mapping.BasicValuedMapping, org.hibernate.metamodel.mapping.SqlExpressible, 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.metamodel.mapping.OwnedValuedModelPart, org.hibernate.metamodel.mapping.EntityIdentifierMapping
Annotations
@Incubating
Imports
org.hibernate.Incubating, org.hibernate.engine.spi.IdentifierValue, .SharedSessionContractImplementor, org.hibernate.metamodel.mapping.BasicEntityIdentifierMapping, .JdbcMapping, .ManagedMappingType, .MappingType, org.hibernate.property.access.spi.PropertyAccess, org.hibernate.query.sqm.SqmExpressible

Author
Christian Beikov

Field Summary

Modifier and TypeField and Description
private final BasicEntityIdentifierMapping

Constructor Summary

AccessConstructor and Description
public
AnonymousTupleBasicEntityIdentifierMapping(MappingType declaringType, String selectionExpression, SqmExpressible<?> expressible, JdbcMapping jdbcMapping, BasicEntityIdentifierMapping delegate)

Method Summary

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

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

Extract the identifier from an instance of the entity
public EntityIdentifierMapping.Nature
public PropertyAccess
public IdentifierValue
getUnsavedStrategy()

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

The strategy for distinguishing between detached and transient state based on the identifier mapping
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.AnonymousTupleBasicValuedModelPart:
addToCacheKeyapplySqlSelectionsapplySqlSelectionsbreakDownJdbcValuescreateDomainResultdisassemblefindContainingEntityMappingforEachDisassembledJdbcValueforEachJdbcTypeforEachJdbcTypeforEachJdbcValueforEachSelectablegenerateFetchgetColumnDefinitiongetContainingTableExpressiongetCustomReadExpressiongetCustomWriteExpressiongetFetchableKeygetFetchableNamegetJavaTypegetJdbcMappinggetLengthgetMappedFetchOptionsgetMappedJavaTypegetMappedTypegetNavigableRolegetPartMappingTypegetPartNamegetPrecisiongetScalegetSelectionExpressionhasPartitionedSelectionMappingisFormulaisInsertableisNullableisPartitionedisUpdateable

Field Detail

delegateback to summary
private final BasicEntityIdentifierMapping delegate

Constructor Detail

AnonymousTupleBasicEntityIdentifierMappingback to summary
public AnonymousTupleBasicEntityIdentifierMapping(MappingType declaringType, String selectionExpression, SqmExpressible<?> expressible, JdbcMapping jdbcMapping, BasicEntityIdentifierMapping delegate)

Method Detail

getAttributeNameback to summary
public String getAttributeName()

Implements 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
getDeclaringTypeback to summary
public ManagedMappingType getDeclaringType()

Overrides org.hibernate.query.derived.AnonymousTupleBasicValuedModelPart.getDeclaringType.

Overrides default org.hibernate.metamodel.mapping.internal.SingleAttributeIdentifierMapping.getDeclaringType.

Implements org.hibernate.metamodel.mapping.OwnedValuedModelPart.getDeclaringType.

Doc from org.hibernate.metamodel.mapping.AttributeMapping.getDeclaringType.

The managed type that declares this attribute

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
getNatureback to summary
public EntityIdentifierMapping.Nature getNature()

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

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()

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
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