Class AnonymousTupleBasicEntityIdentifierMapping
java.lang.Object
org.hibernate.query.sqm.tuple.internal.AnonymousTupleBasicValuedModelPart
org.hibernate.query.sqm.tuple.internal.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.NatureNested 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
ConstructorsConstructorDescriptionAnonymousTupleBasicEntityIdentifierMapping(MappingType declaringType, String selectionExpression, SqmExpressible<?> expressible, JdbcMapping jdbcMapping, BasicEntityIdentifierMapping delegate) AnonymousTupleBasicEntityIdentifierMapping(MappingType declaringType, SelectableMapping selectableMapping, SqmExpressible<?> expressible, BasicEntityIdentifierMapping delegate) -
Method Summary
Modifier and TypeMethodDescriptionThe name of the attribute defining the id, if oneThe managed type that declares this attributegetIdentifier(Object entity) Extract the identifier from an instance of the entitygetIdentifier(Object entity, MergeContext mergeContext) Extract the identifier from an instance of the entityAccess to the identifier attribute's PropertyAccessThe strategy for distinguishing between detached and transient state based on the identifier mappingInstantiate an instance of the identifier.voidsetIdentifier(Object entity, Object id, SharedSessionContractImplementor session) Inject an identifier value into an instance of the entityMethods inherited from class org.hibernate.query.sqm.tuple.internal.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, getSelectableName, getSelectablePath, getSelectionExpression, getTemporalPrecision, getWriteExpression, hasPartitionedSelectionMapping, isFormula, isInsertable, isNullable, isPartitioned, isUpdateableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.metamodel.mapping.AttributeMapping
asAttributeMapping, asEmbeddedAttributeMapping, asPluralAttributeMapping, compare, findContainingEntityMapping, getExposedMutabilityPlan, getValue, isEmbeddedAttributeMapping, isPluralAttributeMapping, setValueMethods inherited from interface org.hibernate.metamodel.mapping.AttributeMetadata
getCascadeStyleMethods inherited from interface org.hibernate.metamodel.mapping.BasicEntityIdentifierMapping
getFetchableKey, isInsertable, isNullableMethods inherited from interface org.hibernate.metamodel.mapping.BasicValuedMapping
addToCacheKey, disassemble, getJdbcMappingMethods inherited from interface org.hibernate.metamodel.mapping.BasicValuedModelPart
asBasicValuedModelPart, forEachSelectable, forEachSelectable, getJdbcMapping, getJdbcTypeCount, getPartMappingType, getSelectable, getSingleJdbcMapping, hasPartitionedSelectionMappingMethods inherited from interface org.hibernate.metamodel.mapping.Bindable
forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue, forEachJdbcValueMethods inherited from interface org.hibernate.sql.results.graph.DatabaseSnapshotContributor
createSnapshotDomainResultMethods inherited from interface org.hibernate.metamodel.mapping.EntityIdentifierMapping
getIdentifierIfNotUnsaved, isEntityIdentifierMappingMethods inherited from interface org.hibernate.sql.results.graph.Fetchable
generateFetch, getFetchableName, getMappedFetchOptions, incrementFetchDepth, resolveCircularFetchMethods inherited from interface org.hibernate.type.descriptor.java.JavaTypedExpressible
addToCacheKeyMethods inherited from interface org.hibernate.metamodel.mapping.JdbcMappingContainer
forEachJdbcTypeMethods inherited from interface org.hibernate.metamodel.mapping.ModelPart
applySqlSelections, applySqlSelections, areEqual, asEntityMappingType, breakDownJdbcValues, breakDownJdbcValues, createDomainResult, decompose, decompose, getJavaType, getNavigableRole, isVirtualMethods inherited from interface org.hibernate.metamodel.mapping.SelectableMapping
getContainingTableExpression, getCustomReadExpression, getCustomWriteExpression, getSelectableName, getSelectablePath, getSelectionExpression, getWriteExpression, isFormula, isPartitioned, isUpdateableMethods inherited from interface org.hibernate.metamodel.mapping.internal.SingleAttributeIdentifierMapping
getAttributeMetadata, getGenerator, getMutabilityPlan, getPartName, getStateArrayPosition, isIncludedInDirtyChecking, isIncludedInOptimisticLocking, isSelectable, isUpdatableMethods inherited from interface org.hibernate.metamodel.mapping.SqlTypedMapping
getColumnDefinition, getJdbcMapping, getLength, getPrecision, getScale, getTemporalPrecision, isLob, toSizeMethods inherited from interface org.hibernate.metamodel.mapping.ValuedModelPart
forEachInsertable, forEachNonFormula, forEachUpdatable, getContainingTableExpression, getJdbcTypeCount, getSingleJdbcMappingMethods inherited from interface org.hibernate.metamodel.mapping.ValueMapping
getExpressibleJavaType, getMappedType, treatAs
-
Constructor Details
-
AnonymousTupleBasicEntityIdentifierMapping
public AnonymousTupleBasicEntityIdentifierMapping(MappingType declaringType, String selectionExpression, SqmExpressible<?> expressible, JdbcMapping jdbcMapping, BasicEntityIdentifierMapping delegate) -
AnonymousTupleBasicEntityIdentifierMapping
public AnonymousTupleBasicEntityIdentifierMapping(MappingType declaringType, SelectableMapping selectableMapping, SqmExpressible<?> expressible, BasicEntityIdentifierMapping delegate)
-
-
Method Details
-
getNature
- Specified by:
getNaturein interfaceEntityIdentifierMapping- See Also:
-
getUnsavedStrategy
Description copied from interface:EntityIdentifierMappingThe strategy for distinguishing between detached and transient state based on the identifier mapping- Specified by:
getUnsavedStrategyin interfaceEntityIdentifierMapping- See Also:
-
getIdentifier
Description copied from interface:EntityIdentifierMappingExtract the identifier from an instance of the entity- Specified by:
getIdentifierin interfaceEntityIdentifierMapping
-
getIdentifier
Description copied from interface:EntityIdentifierMappingExtract the identifier from an instance of the entity- Specified by:
getIdentifierin interfaceEntityIdentifierMapping
-
instantiate
Description copied from interface:EntityIdentifierMappingInstantiate an instance of the identifier.- Specified by:
instantiatein interfaceEntityIdentifierMapping
-
getPropertyAccess
Description copied from interface:SingleAttributeIdentifierMappingAccess to the identifier attribute's PropertyAccess- Specified by:
getPropertyAccessin interfaceAttributeMapping- Specified by:
getPropertyAccessin interfaceAttributeMetadata- Specified by:
getPropertyAccessin interfacePropertyBasedMapping- Specified by:
getPropertyAccessin interfaceSingleAttributeIdentifierMapping
-
getAttributeName
Description copied from interface:EntityIdentifierMappingThe name of the attribute defining the id, if one- Specified by:
getAttributeNamein interfaceAttributeMapping- Specified by:
getAttributeNamein interfaceEntityIdentifierMapping- Specified by:
getAttributeNamein interfaceSingleAttributeIdentifierMapping
-
getDeclaringType
Description copied from interface:AttributeMappingThe managed type that declares this attribute- Specified by:
getDeclaringTypein interfaceAttributeMapping- Specified by:
getDeclaringTypein interfaceOwnedValuedModelPart- Specified by:
getDeclaringTypein interfaceSingleAttributeIdentifierMapping- Overrides:
getDeclaringTypein classAnonymousTupleBasicValuedModelPart
-