Package org.hibernate.query.derived
Class AnonymousTupleBasicEntityIdentifierMapping
- java.lang.Object
-
- org.hibernate.query.derived.AnonymousTupleBasicValuedModelPart
-
- org.hibernate.query.derived.AnonymousTupleBasicEntityIdentifierMapping
-
- All Implemented Interfaces:
BasicEntityIdentifierMapping,BasicValuedMapping,BasicValuedModelPart,Bindable,EntityIdentifierMapping,SingleAttributeIdentifierMapping,JdbcMappingContainer,MappingModelExpressible,MappingType,ModelPart,PropertyBasedMapping,SelectableMapping,SelectableMappings,SqlExpressible,SqlTypedMapping,ValuedModelPart,ValueMapping,Fetchable,JavaTypedExpressible
public class AnonymousTupleBasicEntityIdentifierMapping extends AnonymousTupleBasicValuedModelPart implements BasicEntityIdentifierMapping
-
-
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 AnonymousTupleBasicEntityIdentifierMapping(String selectionExpression, SqmExpressible<?> expressible, JdbcMapping jdbcMapping, BasicEntityIdentifierMapping 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 entityEntityIdentifierMapping.NaturegetNature()PropertyAccessgetPropertyAccess()Access to the identifier attribute's PropertyAccessIdentifierValuegetUnsavedStrategy()The strategy for distinguishing between detached and transient state based on the identifier mappingObjectinstantiate()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.AnonymousTupleBasicValuedModelPart
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, 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.BasicEntityIdentifierMapping
getFetchableKey
-
Methods inherited from interface org.hibernate.metamodel.mapping.BasicValuedMapping
getJdbcMapping
-
Methods inherited from interface org.hibernate.metamodel.mapping.BasicValuedModelPart
forEachSelectable, forEachSelectable, getJdbcMappings, getJdbcTypeCount, getPartMappingType, getSelectable, hasPartitionedSelectionMapping
-
Methods inherited from interface org.hibernate.metamodel.mapping.Bindable
disassemble, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, forEachJdbcValue
-
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.metamodel.mapping.JdbcMappingContainer
forEachJdbcType
-
Methods inherited from interface org.hibernate.metamodel.mapping.ModelPart
applySqlSelections, applySqlSelections, areEqual, breakDownJdbcValues, createDomainResult, decompose, findContainingEntityMapping, getJavaType, getNavigableRole, isVirtual
-
Methods inherited from interface org.hibernate.metamodel.mapping.SelectableMapping
getContainingTableExpression, getCustomReadExpression, getCustomWriteExpression, getSelectableName, getSelectablePath, getSelectionExpression, getWriteExpression, isFormula, isInsertable, isNullable, isPartitioned, isUpdateable
-
Methods inherited from interface org.hibernate.metamodel.mapping.SqlTypedMapping
getColumnDefinition, getJdbcMapping, getLength, getPrecision, getScale
-
Methods inherited from interface org.hibernate.metamodel.mapping.ValuedModelPart
forEachInsertable, forEachUpdatable, getContainingTableExpression, getJdbcMappings, getJdbcTypeCount
-
Methods inherited from interface org.hibernate.metamodel.mapping.ValueMapping
getExpressibleJavaType, getMappedType, treatAs
-
-
-
-
Constructor Detail
-
AnonymousTupleBasicEntityIdentifierMapping
public AnonymousTupleBasicEntityIdentifierMapping(String selectionExpression, SqmExpressible<?> expressible, JdbcMapping jdbcMapping, BasicEntityIdentifierMapping 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 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
-
-