Package org.hibernate.query.derived
Class AnonymousTupleBasicEntityIdentifierMapping
- java.lang.Object
-
- org.hibernate.query.derived.AnonymousTupleBasicValuedModelPart
-
- org.hibernate.query.derived.AnonymousTupleBasicEntityIdentifierMapping
-
- All Implemented Interfaces:
AttributeMapping
,AttributeMetadata
,BasicEntityIdentifierMapping
,BasicValuedMapping
,BasicValuedModelPart
,Bindable
,EntityIdentifierMapping
,SingleAttributeIdentifierMapping
,JdbcMappingContainer
,MappingModelExpressible
,MappingType
,ModelPart
,OwnedValuedModelPart
,PropertyBasedMapping
,SelectableMapping
,SelectableMappings
,SqlExpressible
,SqlTypedMapping
,ValuedModelPart
,ValueMapping
,DatabaseSnapshotContributor
,Fetchable
,JavaTypedExpressible
,MutabilityPlanExposer
@Incubating public class AnonymousTupleBasicEntityIdentifierMapping extends AnonymousTupleBasicValuedModelPart implements BasicEntityIdentifierMapping
-
-
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.EntityIdentifierMapping
EntityIdentifierMapping.Nature
-
Nested 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
Constructors Constructor Description AnonymousTupleBasicEntityIdentifierMapping(MappingType declaringType, String selectionExpression, SqmExpressible<?> expressible, JdbcMapping jdbcMapping, BasicEntityIdentifierMapping delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAttributeName()
The name of the attribute defining the id, if oneManagedMappingType
getDeclaringType()
The managed type that declares this attributeObject
getIdentifier(Object entity)
Extract the identifier from an instance of the entityObject
getIdentifier(Object entity, MergeContext mergeContext)
Extract the identifier from an instance of the entity It's supposed to be use during the merging processEntityIdentifierMapping.Nature
getNature()
PropertyAccess
getPropertyAccess()
Access to the identifier attribute's PropertyAccessIdentifierValue
getUnsavedStrategy()
The strategy for distinguishing between detached and transient state based on the identifier mappingObject
instantiate()
Instantiate an instance of the identifier.void
setIdentifier(Object entity, Object id, SharedSessionContractImplementor session)
Inject an identifier value into an instance of the entity-
Methods inherited from class org.hibernate.query.derived.AnonymousTupleBasicValuedModelPart
addToCacheKey, applySqlSelections, applySqlSelections, breakDownJdbcValues, createDomainResult, disassemble, findContainingEntityMapping, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcType, forEachJdbcValue, forEachSelectable, generateFetch, getColumnDefinition, getContainingTableExpression, getCustomReadExpression, getCustomWriteExpression, getFetchableKey, getFetchableName, getJavaType, getJdbcMapping, getLength, getMappedFetchOptions, getMappedJavaType, getMappedType, getNavigableRole, getPartMappingType, getPartName, getPrecision, getScale, getSelectionExpression, getTemporalPrecision, hasPartitionedSelectionMapping, isFormula, isInsertable, isNullable, isPartitioned, isUpdateable
-
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.AttributeMapping
asAttributeMapping, asEmbeddedAttributeMapping, asPluralAttributeMapping, compare, findContainingEntityMapping, getExposedMutabilityPlan, getValue, isEmbeddedAttributeMapping, isPluralAttributeMapping, setValue
-
Methods inherited from interface org.hibernate.metamodel.mapping.AttributeMetadata
getCascadeStyle
-
Methods inherited from interface org.hibernate.metamodel.mapping.BasicEntityIdentifierMapping
getFetchableKey, isInsertable, isNullable
-
Methods inherited from interface org.hibernate.metamodel.mapping.BasicValuedMapping
addToCacheKey, disassemble, getJdbcMapping
-
Methods inherited from interface org.hibernate.metamodel.mapping.BasicValuedModelPart
asBasicValuedModelPart, forEachSelectable, forEachSelectable, getJdbcMapping, getJdbcTypeCount, getPartMappingType, getSelectable, getSingleJdbcMapping, hasPartitionedSelectionMapping
-
Methods inherited from interface org.hibernate.metamodel.mapping.Bindable
forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue
-
Methods inherited from interface org.hibernate.sql.results.graph.DatabaseSnapshotContributor
createSnapshotDomainResult
-
Methods inherited from interface org.hibernate.metamodel.mapping.EntityIdentifierMapping
getIdentifierIfNotUnsaved, isEntityIdentifierMapping
-
Methods inherited from interface org.hibernate.sql.results.graph.Fetchable
generateFetch, getFetchableName, getMappedFetchOptions, incrementFetchDepth, resolveCircularFetch
-
Methods inherited from interface org.hibernate.type.descriptor.java.JavaTypedExpressible
addToCacheKey
-
Methods inherited from interface org.hibernate.metamodel.mapping.JdbcMappingContainer
forEachJdbcType
-
Methods inherited from interface org.hibernate.metamodel.mapping.ModelPart
applySqlSelections, applySqlSelections, areEqual, asEntityMappingType, breakDownJdbcValues, breakDownJdbcValues, createDomainResult, decompose, decompose, getJavaType, getNavigableRole, isVirtual
-
Methods inherited from interface org.hibernate.metamodel.mapping.SelectableMapping
getContainingTableExpression, getCustomReadExpression, getCustomWriteExpression, getSelectableName, getSelectablePath, getSelectionExpression, getWriteExpression, isFormula, isPartitioned, isUpdateable
-
Methods inherited from interface org.hibernate.metamodel.mapping.internal.SingleAttributeIdentifierMapping
getAttributeMetadata, getGenerator, getMutabilityPlan, getPartName, getStateArrayPosition, isIncludedInDirtyChecking, isIncludedInOptimisticLocking, isSelectable, isUpdatable
-
Methods inherited from interface org.hibernate.metamodel.mapping.SqlTypedMapping
getColumnDefinition, getJdbcMapping, getLength, getPrecision, getScale, getTemporalPrecision, isLob, toSize
-
Methods inherited from interface org.hibernate.metamodel.mapping.ValuedModelPart
forEachInsertable, forEachNonFormula, forEachUpdatable, getContainingTableExpression, getJdbcTypeCount, getSingleJdbcMapping
-
Methods inherited from interface org.hibernate.metamodel.mapping.ValueMapping
getExpressibleJavaType, getMappedType, treatAs
-
-
-
-
Constructor Detail
-
AnonymousTupleBasicEntityIdentifierMapping
public AnonymousTupleBasicEntityIdentifierMapping(MappingType declaringType, String selectionExpression, SqmExpressible<?> expressible, JdbcMapping jdbcMapping, BasicEntityIdentifierMapping delegate)
-
-
Method Detail
-
getNature
public EntityIdentifierMapping.Nature getNature()
- Specified by:
getNature
in interfaceEntityIdentifierMapping
- See Also:
EntityIdentifierMapping.Nature
-
getUnsavedStrategy
public IdentifierValue getUnsavedStrategy()
Description copied from interface:EntityIdentifierMapping
The strategy for distinguishing between detached and transient state based on the identifier mapping- Specified by:
getUnsavedStrategy
in interfaceEntityIdentifierMapping
- See Also:
EntityVersionMapping.getUnsavedStrategy()
-
getIdentifier
public Object getIdentifier(Object entity)
Description copied from interface:EntityIdentifierMapping
Extract the identifier from an instance of the entity- Specified by:
getIdentifier
in interfaceEntityIdentifierMapping
-
getIdentifier
public Object getIdentifier(Object entity, MergeContext mergeContext)
Description copied from interface:EntityIdentifierMapping
Extract the identifier from an instance of the entity It's supposed to be use during the merging process- Specified by:
getIdentifier
in interfaceEntityIdentifierMapping
-
setIdentifier
public void setIdentifier(Object entity, Object id, SharedSessionContractImplementor session)
Description copied from interface:EntityIdentifierMapping
Inject an identifier value into an instance of the entity- Specified by:
setIdentifier
in interfaceEntityIdentifierMapping
-
instantiate
public Object instantiate()
Description copied from interface:EntityIdentifierMapping
Instantiate an instance of the identifier.- Specified by:
instantiate
in interfaceEntityIdentifierMapping
-
getPropertyAccess
public PropertyAccess getPropertyAccess()
Description copied from interface:SingleAttributeIdentifierMapping
Access to the identifier attribute's PropertyAccess- Specified by:
getPropertyAccess
in interfaceAttributeMapping
- Specified by:
getPropertyAccess
in interfaceAttributeMetadata
- Specified by:
getPropertyAccess
in interfacePropertyBasedMapping
- Specified by:
getPropertyAccess
in interfaceSingleAttributeIdentifierMapping
-
getAttributeName
public String getAttributeName()
Description copied from interface:EntityIdentifierMapping
The name of the attribute defining the id, if one- Specified by:
getAttributeName
in interfaceAttributeMapping
- Specified by:
getAttributeName
in interfaceEntityIdentifierMapping
- Specified by:
getAttributeName
in interfaceSingleAttributeIdentifierMapping
-
getDeclaringType
public ManagedMappingType getDeclaringType()
Description copied from interface:AttributeMapping
The managed type that declares this attribute- Specified by:
getDeclaringType
in interfaceAttributeMapping
- Specified by:
getDeclaringType
in interfaceOwnedValuedModelPart
- Specified by:
getDeclaringType
in interfaceSingleAttributeIdentifierMapping
- Overrides:
getDeclaringType
in classAnonymousTupleBasicValuedModelPart
-
-