Package org.hibernate.query.derived
Class AnonymousTupleNonAggregatedEntityIdentifierMapping
- java.lang.Object
-
- org.hibernate.query.derived.AnonymousTupleEmbeddableValuedModelPart
-
- org.hibernate.query.derived.AnonymousTupleNonAggregatedEntityIdentifierMapping
-
- All Implemented Interfaces:
Bindable
,CompositeIdentifierMapping
,EmbeddableMappingType
,EmbeddableValuedModelPart
,EntityIdentifierMapping
,JdbcMappingContainer
,ManagedMappingType
,MappingModelExpressible
,MappingType
,ModelPart
,ModelPartContainer
,NonAggregatedIdentifierMapping
,Queryable
,SelectableMappings
,ValueMapping
,VirtualModelPart
,TableGroupJoinProducer
,TableGroupProducer
,EmbeddableValuedFetchable
,Fetchable
,FetchableContainer
,FetchOptions
,FetchStyleAccess
,FetchTimingAccess
,JavaTypedExpressible
public class AnonymousTupleNonAggregatedEntityIdentifierMapping extends AnonymousTupleEmbeddableValuedModelPart implements NonAggregatedIdentifierMapping
-
-
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.ModelPart
ModelPart.JdbcValueConsumer
-
Nested classes/interfaces inherited from interface org.hibernate.metamodel.mapping.NonAggregatedIdentifierMapping
NonAggregatedIdentifierMapping.IdentifierValueMapper
-
-
Field Summary
-
Fields inherited from interface org.hibernate.metamodel.mapping.EntityIdentifierMapping
ROLE_LOCAL_NAME
-
-
Constructor Summary
Constructors Constructor Description AnonymousTupleNonAggregatedEntityIdentifierMapping(Map<String,ModelPart> modelParts, DomainType<?> domainType, String componentName, NonAggregatedIdentifierMapping delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IdClassEmbeddable
getIdClassEmbeddable()
The id-class representation of this id mappingObject
getIdentifier(Object entity)
Object
getIdentifier(Object entity, SharedSessionContractImplementor session)
NonAggregatedIdentifierMapping.IdentifierValueMapper
getIdentifierValueMapper()
The id-class, if there is one, otherwise the virtual-id.EmbeddableMappingType
getMappedIdEmbeddableTypeDescriptor()
Returns the embeddable type descriptor of the id-class, if there is one, otherwise the one of the virtual embeddable mapping type.MappingType
getMappedType()
Descriptor for the type of this mappingEmbeddableMappingType
getPartMappingType()
FetchStyle
getStyle()
FetchTiming
getTiming()
IdentifierValue
getUnsavedStrategy()
The strategy for distinguishing between detached and transient state based on the identifier mappingVirtualIdEmbeddable
getVirtualIdEmbeddable()
The virtual-id representation of this id mappingboolean
hasContainingClass()
Does the identifier have a corresponding EmbeddableId or IdClass?Object
instantiate()
void
setIdentifier(Object entity, Object id, SharedSessionContractImplementor session)
-
Methods inherited from class org.hibernate.query.derived.AnonymousTupleEmbeddableValuedModelPart
applySqlSelections, applySqlSelections, breakDownJdbcValues, createDomainResult, createInverseMappingType, createRootTableGroupJoin, createTableGroupJoin, disassemble, findContainingEntityMapping, findSubPart, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, forEachSelectable, forEachSelectable, generateFetch, getAttributeMapping, getAttributeMappings, getContainingTableExpression, getDefaultSqlAstJoinType, getEmbeddableTypeDescriptor, getEmbeddedValueMapping, getFetchableName, getJavaType, getJdbcMappings, getJdbcTypeCount, getMappedFetchOptions, getMappedJavaType, getNavigableRole, getNumberOfAttributeMappings, getNumberOfFetchables, getPartName, getRepresentationStrategy, getSelectable, getSqlAliasStem, getValue, getValues, isCreateEmptyCompositesEnabled, isSimpleJoinPredicate, setValue, setValues, toSqlExpression, visitAttributeMappings, 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.sql.results.graph.embeddable.EmbeddableValuedFetchable
getDefaultSqlAstJoinType, isSimpleJoinPredicate
-
Methods inherited from interface org.hibernate.metamodel.mapping.EmbeddableValuedModelPart
disassemble, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, forEachSelectable, getContainingTableExpression, getEmbeddableTypeDescriptor, getJdbcMappings, getJdbcTypeCount, getParentInjectionAttributePropertyAccess, toSqlExpression
-
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, 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, findContainingEntityMapping, getNavigableRole
-
Methods inherited from interface org.hibernate.metamodel.mapping.Queryable
findByPath, findSubPart, findSubTypesSubPart, resolveSubPart, visitSubParts
-
Methods inherited from interface org.hibernate.sql.ast.tree.from.TableGroupJoinProducer
createRootTableGroupJoin, createRootTableGroupJoin, createTableGroupJoin, createTableGroupJoin
-
Methods inherited from interface org.hibernate.sql.ast.tree.from.TableGroupProducer
containsTableReference, getSqlAliasStem
-
Methods inherited from interface org.hibernate.metamodel.mapping.ValueMapping
getExpressibleJavaType, treatAs
-
-
-
-
Constructor Detail
-
AnonymousTupleNonAggregatedEntityIdentifierMapping
public AnonymousTupleNonAggregatedEntityIdentifierMapping(Map<String,ModelPart> modelParts, DomainType<?> domainType, String componentName, NonAggregatedIdentifierMapping delegate)
-
-
Method Detail
-
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 interfaceCompositeIdentifierMapping
- Specified by:
getUnsavedStrategy
in interfaceEntityIdentifierMapping
-
getIdentifier
public Object getIdentifier(Object entity, SharedSessionContractImplementor session)
- Specified by:
getIdentifier
in interfaceEntityIdentifierMapping
- Returns:
- the entity identifier value
-
getIdentifier
public Object getIdentifier(Object entity)
- Specified by:
getIdentifier
in interfaceEntityIdentifierMapping
-
setIdentifier
public void setIdentifier(Object entity, Object id, SharedSessionContractImplementor session)
- Specified by:
setIdentifier
in interfaceEntityIdentifierMapping
-
instantiate
public Object instantiate()
- Specified by:
instantiate
in interfaceEntityIdentifierMapping
-
hasContainingClass
public boolean hasContainingClass()
Description copied from interface:CompositeIdentifierMapping
Does the identifier have a corresponding EmbeddableId or IdClass?- Specified by:
hasContainingClass
in interfaceCompositeIdentifierMapping
- Returns:
- false if there is not an IdCass or an EmbeddableId
-
getMappedIdEmbeddableTypeDescriptor
public EmbeddableMappingType getMappedIdEmbeddableTypeDescriptor()
Description copied from interface:CompositeIdentifierMapping
Returns the embeddable type descriptor of the id-class, if there is one, otherwise the one of the virtual embeddable mapping type.- Specified by:
getMappedIdEmbeddableTypeDescriptor
in interfaceCompositeIdentifierMapping
-
getMappedType
public MappingType getMappedType()
Description copied from interface:ValueMapping
Descriptor for the type of this mapping- Specified by:
getMappedType
in interfaceValueMapping
-
getPartMappingType
public EmbeddableMappingType getPartMappingType()
- Specified by:
getPartMappingType
in interfaceCompositeIdentifierMapping
- Specified by:
getPartMappingType
in interfaceManagedMappingType
- Specified by:
getPartMappingType
in interfaceModelPart
- Overrides:
getPartMappingType
in classAnonymousTupleEmbeddableValuedModelPart
-
getVirtualIdEmbeddable
public VirtualIdEmbeddable getVirtualIdEmbeddable()
Description copied from interface:NonAggregatedIdentifierMapping
The virtual-id representation of this id mapping- Specified by:
getVirtualIdEmbeddable
in interfaceNonAggregatedIdentifierMapping
-
getIdClassEmbeddable
public IdClassEmbeddable getIdClassEmbeddable()
Description copied from interface:NonAggregatedIdentifierMapping
The id-class representation of this id mapping- Specified by:
getIdClassEmbeddable
in interfaceNonAggregatedIdentifierMapping
-
getIdentifierValueMapper
public NonAggregatedIdentifierMapping.IdentifierValueMapper getIdentifierValueMapper()
Description copied from interface:NonAggregatedIdentifierMapping
The id-class, if there is one, otherwise the virtual-id.- Specified by:
getIdentifierValueMapper
in interfaceNonAggregatedIdentifierMapping
-
getStyle
public FetchStyle getStyle()
- Specified by:
getStyle
in interfaceFetchStyleAccess
-
getTiming
public FetchTiming getTiming()
- Specified by:
getTiming
in interfaceFetchTimingAccess
-
-