Top Fields Constructors Methods
org.hibernate.metamodel.mapping.internal

public abstract Class AbstractNaturalIdMapping

extends Object
implements NaturalIdMapping
Class Inheritance
All Implemented Interfaces
org.hibernate.metamodel.mapping.NaturalIdMapping, org.hibernate.metamodel.mapping.VirtualModelPart, org.hibernate.metamodel.mapping.ModelPart, org.hibernate.metamodel.mapping.MappingModelExpressible, org.hibernate.metamodel.mapping.Bindable, org.hibernate.metamodel.mapping.JdbcMappingContainer
Known Direct Subclasses
org.hibernate.metamodel.mapping.internal.CompoundNaturalIdMapping, org.hibernate.metamodel.mapping.internal.SimpleNaturalIdMapping
Imports
org.hibernate.cache.spi.access.NaturalIdDataAccess, org.hibernate.metamodel.mapping.EntityMappingType, .NaturalIdMapping, org.hibernate.metamodel.model.domain.NavigableRole

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final NaturalIdDataAccess
private final EntityMappingType
private final boolean
private final NavigableRole

Constructor Summary

AccessConstructor and Description
public
AbstractNaturalIdMapping(EntityMappingType declaringType, boolean mutable)

Method Summary

Modifier and TypeMethod and Description
public EntityMappingType
public NaturalIdDataAccess
getCacheAccess()

Implements org.hibernate.metamodel.mapping.NaturalIdMapping.getCacheAccess.

Access to the natural-id's L2 cache access.
public EntityMappingType
public NavigableRole
public boolean
isMutable()

Implements org.hibernate.metamodel.mapping.NaturalIdMapping.isMutable.

Whether the natural-id is immutable.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cachesAccessback to summary
private final NaturalIdDataAccess cachesAccess
declaringTypeback to summary
private final EntityMappingType declaringType
mutableback to summary
private final boolean mutable
roleback to summary
private final NavigableRole role

Constructor Detail

AbstractNaturalIdMappingback to summary
public AbstractNaturalIdMapping(EntityMappingType declaringType, boolean mutable)

Method Detail

findContainingEntityMappingback to summary
public EntityMappingType findContainingEntityMapping()

Implements org.hibernate.metamodel.mapping.ModelPart.findContainingEntityMapping.

Annotations
@Override
getCacheAccessback to summary
public NaturalIdDataAccess getCacheAccess()

Implements org.hibernate.metamodel.mapping.NaturalIdMapping.getCacheAccess.

Doc from org.hibernate.metamodel.mapping.NaturalIdMapping.getCacheAccess.

Access to the natural-id's L2 cache access. Returns null if the natural-id is not configured for caching

Annotations
@Override
getDeclaringTypeback to summary
public EntityMappingType getDeclaringType()
getNavigableRoleback to summary
public NavigableRole getNavigableRole()

Implements org.hibernate.metamodel.mapping.ModelPart.getNavigableRole.

Annotations
@Override
isMutableback to summary
public boolean isMutable()

Implements org.hibernate.metamodel.mapping.NaturalIdMapping.isMutable.

Doc from org.hibernate.metamodel.mapping.NaturalIdMapping.isMutable.

Whether the natural-id is immutable. This is the same as saying that none of the attributes are mutable

Annotations
@Override