Class AbstractNaturalIdMapping
- java.lang.Object
-
- org.hibernate.metamodel.mapping.internal.AbstractNaturalIdMapping
-
- All Implemented Interfaces:
Bindable,JdbcMappingContainer,MappingModelExpressible,ModelPart,NaturalIdMapping,VirtualModelPart
- Direct Known Subclasses:
CompoundNaturalIdMapping,SimpleNaturalIdMapping
public abstract class AbstractNaturalIdMapping extends Object implements NaturalIdMapping
-
-
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.ModelPart
ModelPart.JdbcValueBiConsumer<X,Y>, ModelPart.JdbcValueConsumer
-
-
Field Summary
-
Fields inherited from interface org.hibernate.metamodel.mapping.NaturalIdMapping
PART_NAME
-
-
Constructor Summary
Constructors Constructor Description AbstractNaturalIdMapping(EntityMappingType declaringType, boolean mutable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityMappingTypefindContainingEntityMapping()NaturalIdDataAccessgetCacheAccess()Access to the natural-id's L2 cache access.EntityMappingTypegetDeclaringType()NavigableRolegetNavigableRole()booleanisMutable()Whether the natural-id is mutable.-
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
addToCacheKey, disassemble, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue, getJdbcTypeCount
-
Methods inherited from interface org.hibernate.metamodel.mapping.JdbcMappingContainer
forEachJdbcType, getJdbcMapping, getSingleJdbcMapping
-
Methods inherited from interface org.hibernate.metamodel.mapping.ModelPart
applySqlSelections, applySqlSelections, areEqual, asAttributeMapping, asBasicValuedModelPart, asEntityMappingType, breakDownJdbcValues, breakDownJdbcValues, createDomainResult, decompose, decompose, forEachSelectable, forEachSelectable, getJavaType, getPartMappingType, hasPartitionedSelectionMapping, isEntityIdentifierMapping
-
Methods inherited from interface org.hibernate.metamodel.mapping.NaturalIdMapping
calculateHashCode, extractNaturalIdFromEntity, extractNaturalIdFromEntityState, getNaturalIdAttributes, getPartName, makeLoader, makeMultiLoader, normalizeInput, validateInternalForm, verifyFlushState
-
Methods inherited from interface org.hibernate.metamodel.mapping.VirtualModelPart
isVirtual
-
-
-
-
Constructor Detail
-
AbstractNaturalIdMapping
public AbstractNaturalIdMapping(EntityMappingType declaringType, boolean mutable)
-
-
Method Detail
-
getDeclaringType
public EntityMappingType getDeclaringType()
-
getNavigableRole
public NavigableRole getNavigableRole()
- Specified by:
getNavigableRolein interfaceModelPart- See Also:
ModelPart.getPartName()
-
isMutable
public boolean isMutable()
Description copied from interface:NaturalIdMappingWhether the natural-id is mutable.- Specified by:
isMutablein interfaceNaturalIdMapping
-
getCacheAccess
public NaturalIdDataAccess getCacheAccess()
Description copied from interface:NaturalIdMappingAccess to the natural-id's L2 cache access. Returns null if the natural-id is not configured for caching- Specified by:
getCacheAccessin interfaceNaturalIdMapping
-
findContainingEntityMapping
public EntityMappingType findContainingEntityMapping()
- Specified by:
findContainingEntityMappingin interfaceModelPart
-
-