Package org.hibernate.query.derived
Class AnonymousTupleEmbeddedEntityIdentifierMapping
- java.lang.Object
-
- org.hibernate.query.derived.AnonymousTupleEmbeddableValuedModelPart
-
- org.hibernate.query.derived.AnonymousTupleEmbeddedEntityIdentifierMapping
-
- All Implemented Interfaces:
Bindable,CompositeIdentifierMapping,EmbeddableMappingType,EmbeddableValuedModelPart,EntityIdentifierMapping,SingleAttributeIdentifierMapping,JdbcMappingContainer,ManagedMappingType,MappingModelExpressible,MappingType,ModelPart,ModelPartContainer,PropertyBasedMapping,SelectableMappings,ValuedModelPart,ValueMapping,TableGroupJoinProducer,TableGroupProducer,Fetchable,FetchableContainer,JavaTypedExpressible
public class AnonymousTupleEmbeddedEntityIdentifierMapping extends AnonymousTupleEmbeddableValuedModelPart implements CompositeIdentifierMapping, SingleAttributeIdentifierMapping
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hibernate.metamodel.mapping.Bindable
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.IndexedJdbcValueConsumer, ModelPart.JdbcValueConsumer
-
-
Field Summary
-
Fields inherited from interface org.hibernate.metamodel.mapping.EntityIdentifierMapping
ROLE_LOCAL_NAME
-
-
Constructor Summary
Constructors Constructor Description AnonymousTupleEmbeddedEntityIdentifierMapping(Map<String,ModelPart> modelParts, DomainType<?> domainType, String componentName, CompositeIdentifierMapping delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAttributeName()The name of the attribute defining the id, if oneObjectgetIdentifier(Object entity)Extract the identifier from an instance of the entityEmbeddableMappingTypegetMappedIdEmbeddableTypeDescriptor()Returns the embeddable type descriptor of the id-class, if there is one, otherwise the one of the virtual embeddable mapping type.EmbeddableMappingTypegetMappedType()Descriptor for the type of this mappingEntityIdentifierMapping.NaturegetNature()EmbeddableMappingTypegetPartMappingType()The type for this part.PropertyAccessgetPropertyAccess()Access to the identifier attribute's PropertyAccessIdentifierValuegetUnsavedStrategy()The strategy for distinguishing between detached and transient state based on the identifier mappingbooleanhasContainingClass()Does the identifier have a corresponding EmbeddableId or IdClass?Objectinstantiate()Instantiate an instance of the identifier.voidsetIdentifier(Object entity, Object id, SharedSessionContractImplementor session)Inject an identifier value into an instance of the entity-
Methods inherited from class org.hibernate.query.derived.AnonymousTupleEmbeddableValuedModelPart
applySqlSelections, applySqlSelections, breakDownJdbcValues, createDomainResult, createInverseMappingType, createRootTableGroupJoin, createTableGroupJoin, disassemble, findContainingEntityMapping, findSubPart, forEachAttributeMapping, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, forEachSelectable, forEachSelectable, generateFetch, getAttributeMapping, getAttributeMappings, getContainingTableExpression, getDefaultSqlAstJoinType, getEmbeddableTypeDescriptor, getEmbeddedValueMapping, getFetchableKey, getFetchableName, getJavaType, getJdbcMappings, getJdbcTypeCount, getMappedFetchOptions, getMappedJavaType, getNavigableRole, getNumberOfAttributeMappings, getNumberOfFetchables, getPartName, getRepresentationStrategy, getSelectable, getSqlAliasStem, getValue, getValues, hasPartitionedSelectionMapping, isCreateEmptyCompositesEnabled, isSimpleJoinPredicate, setValue, setValues, toSqlExpression, visitSubParts
-
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.Bindable
forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue
-
Methods inherited from interface org.hibernate.metamodel.mapping.CompositeIdentifierMapping
getFetchableKey
-
Methods inherited from interface org.hibernate.metamodel.mapping.EmbeddableMappingType
anyRequiresAggregateColumnWriter, compare, forEachInsertable, forEachUpdatable, getAggregateMapping, getJdbcValueCount, getJdbcValueSelectable, getSelectableIndex, requiresAggregateColumnWriter, shouldBindAggregateMapping, shouldMutateAggregateMapping, shouldSelectAggregateMapping
-
Methods inherited from interface org.hibernate.metamodel.mapping.EmbeddableValuedModelPart
disassemble, findSubPart, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, forEachSelectable, forEachSubPart, getEmbeddableTypeDescriptor, getJdbcMappings, getJdbcTypeCount, getParentInjectionAttributePropertyAccess, getSelectable, toSqlExpression, visitSubParts
-
Methods inherited from interface org.hibernate.metamodel.mapping.EntityIdentifierMapping
getIdentifierIfNotUnsaved, getPartName
-
Methods inherited from interface org.hibernate.sql.results.graph.Fetchable
asAttributeMapping, generateFetch, getFetchableName, getMappedFetchOptions, incrementFetchDepth, resolveCircularFetch
-
Methods inherited from interface org.hibernate.sql.results.graph.FetchableContainer
getFetchable, getKeyFetchable, getNumberOfFetchableKeys, getNumberOfFetchables, getNumberOfKeyFetchables, visitFetchables, visitFetchables, visitFetchables, visitKeyFetchables, visitKeyFetchables, visitKeyFetchables
-
Methods inherited from interface org.hibernate.metamodel.mapping.ManagedMappingType
findAttributeMapping, forEachAttributeMapping
-
Methods inherited from interface org.hibernate.metamodel.mapping.ModelPart
areEqual, breakDownJdbcValues, decompose, findContainingEntityMapping, getNavigableRole, isVirtual
-
Methods inherited from interface org.hibernate.metamodel.mapping.ModelPartContainer
findByPath, forEachSubPart
-
Methods inherited from interface org.hibernate.sql.ast.tree.from.TableGroupJoinProducer
createRootTableGroupJoin, createRootTableGroupJoin, createTableGroupJoin, createTableGroupJoin, getDefaultSqlAstJoinType, isSimpleJoinPredicate
-
Methods inherited from interface org.hibernate.sql.ast.tree.from.TableGroupProducer
containsTableReference, getSqlAliasStem
-
Methods inherited from interface org.hibernate.metamodel.mapping.ValuedModelPart
forEachInsertable, forEachSelectable, forEachUpdatable, getContainingTableExpression
-
Methods inherited from interface org.hibernate.metamodel.mapping.ValueMapping
getExpressibleJavaType, treatAs
-
-
-
-
Constructor Detail
-
AnonymousTupleEmbeddedEntityIdentifierMapping
public AnonymousTupleEmbeddedEntityIdentifierMapping(Map<String,ModelPart> modelParts, DomainType<?> domainType, String componentName, CompositeIdentifierMapping delegate)
-
-
Method Detail
-
getNature
public EntityIdentifierMapping.Nature getNature()
- Specified by:
getNaturein interfaceEntityIdentifierMapping- See Also:
EntityIdentifierMapping.Nature
-
getUnsavedStrategy
public IdentifierValue getUnsavedStrategy()
Description copied from interface:EntityIdentifierMappingThe strategy for distinguishing between detached and transient state based on the identifier mapping- Specified by:
getUnsavedStrategyin interfaceCompositeIdentifierMapping- Specified by:
getUnsavedStrategyin interfaceEntityIdentifierMapping- See Also:
EntityVersionMapping.getUnsavedStrategy()
-
getIdentifier
public Object getIdentifier(Object entity)
Description copied from interface:EntityIdentifierMappingExtract the identifier from an instance of the entity- Specified by:
getIdentifierin interfaceEntityIdentifierMapping
-
setIdentifier
public void setIdentifier(Object entity, Object id, SharedSessionContractImplementor session)
Description copied from interface:EntityIdentifierMappingInject an identifier value into an instance of the entity- Specified by:
setIdentifierin interfaceEntityIdentifierMapping
-
instantiate
public Object instantiate()
Description copied from interface:EntityIdentifierMappingInstantiate an instance of the identifier.- Specified by:
instantiatein interfaceEntityIdentifierMapping
-
getPropertyAccess
public PropertyAccess getPropertyAccess()
Description copied from interface:SingleAttributeIdentifierMappingAccess to the identifier attribute's PropertyAccess- Specified by:
getPropertyAccessin interfacePropertyBasedMapping- Specified by:
getPropertyAccessin interfaceSingleAttributeIdentifierMapping
-
getAttributeName
public String getAttributeName()
Description copied from interface:EntityIdentifierMappingThe name of the attribute defining the id, if one- Specified by:
getAttributeNamein interfaceEntityIdentifierMapping- Specified by:
getAttributeNamein interfaceSingleAttributeIdentifierMapping
-
hasContainingClass
public boolean hasContainingClass()
Description copied from interface:CompositeIdentifierMappingDoes the identifier have a corresponding EmbeddableId or IdClass?- Specified by:
hasContainingClassin interfaceCompositeIdentifierMapping- Returns:
- false if there is not an IdCass or an EmbeddableId
-
getMappedIdEmbeddableTypeDescriptor
public EmbeddableMappingType getMappedIdEmbeddableTypeDescriptor()
Description copied from interface:CompositeIdentifierMappingReturns the embeddable type descriptor of the id-class, if there is one, otherwise the one of the virtual embeddable mapping type.- Specified by:
getMappedIdEmbeddableTypeDescriptorin interfaceCompositeIdentifierMapping
-
getMappedType
public EmbeddableMappingType getMappedType()
Description copied from interface:ValueMappingDescriptor for the type of this mapping- Specified by:
getMappedTypein interfaceEmbeddableValuedModelPart- Specified by:
getMappedTypein interfaceValueMapping
-
getPartMappingType
public EmbeddableMappingType getPartMappingType()
Description copied from interface:ModelPartThe type for this part.- Specified by:
getPartMappingTypein interfaceCompositeIdentifierMapping- Specified by:
getPartMappingTypein interfaceManagedMappingType- Specified by:
getPartMappingTypein interfaceModelPart- Overrides:
getPartMappingTypein classAnonymousTupleEmbeddableValuedModelPart
-
-