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
,SqlExpressible
,SqlTypedMapping
,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.ModelPart
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 String
getAttributeName()
Object
getIdentifier(Object entity)
Object
getIdentifier(Object entity, SharedSessionContractImplementor session)
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()
void
setIdentifier(Object entity, Object id, SharedSessionContractImplementor session)
-
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, getFetchableName, getJavaType, getJdbcMapping, getLength, getMappedFetchOptions, getMappedJavaType, getMappedType, getNavigableRole, getPartMappingType, getPartName, getPrecision, getScale, getSelectionExpression, isFormula
-
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.BasicValuedMapping
getJdbcMapping, getJdbcMappings, getJdbcTypeCount
-
Methods inherited from interface org.hibernate.metamodel.mapping.BasicValuedModelPart
getPartMappingType
-
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, findContainingEntityMapping, forEachSelectable, forEachSelectable, getJavaType, getNavigableRole
-
Methods inherited from interface org.hibernate.metamodel.mapping.SelectableMapping
getContainingTableExpression, getCustomReadExpression, getCustomWriteExpression, getSelectionExpression, isFormula
-
Methods inherited from interface org.hibernate.metamodel.mapping.SqlTypedMapping
getColumnDefinition, getJdbcMapping, getLength, getPrecision, getScale
-
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
-
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
-
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
-
getPropertyAccess
public PropertyAccess getPropertyAccess()
Description copied from interface:SingleAttributeIdentifierMapping
Access to the identifier attribute's PropertyAccess- Specified by:
getPropertyAccess
in interfacePropertyBasedMapping
- Specified by:
getPropertyAccess
in interfaceSingleAttributeIdentifierMapping
-
getAttributeName
public String getAttributeName()
- Specified by:
getAttributeName
in interfaceSingleAttributeIdentifierMapping
-
-