Package org.hibernate.loader.internal
Class BaseNaturalIdLoadAccessImpl<T>
- java.lang.Object
-
- org.hibernate.loader.internal.BaseNaturalIdLoadAccessImpl<T>
-
- All Implemented Interfaces:
NaturalIdLoadOptions
- Direct Known Subclasses:
NaturalIdLoadAccessImpl
,SimpleNaturalIdLoadAccessImpl
public abstract class BaseNaturalIdLoadAccessImpl<T> extends Object implements NaturalIdLoadOptions
Base support for load-by-natural-id
-
-
Field Summary
-
Fields inherited from interface org.hibernate.loader.ast.spi.NaturalIdLoadOptions
NONE
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseNaturalIdLoadAccessImpl(LoadAccessContext context, EntityMappingType entityDescriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected T
doGetReference(Object normalizedNaturalIdValue)
protected T
doLoad(Object normalizedNaturalIdValue)
protected EntityPersister
entityPersister()
protected LoadAccessContext
getContext()
EntityMappingType
getEntityDescriptor()
protected IdentifierLoadAccess<?>
getIdentifierLoadAccess()
LockOptions
getLockOptions()
The locking options for the loaded entityboolean
isSynchronizationEnabled()
Whether Hibernate should perform "synchronization" prior to performing look-ups?protected void
performAnyNeededCrossReferenceSynchronizations()
protected Object
resolveNaturalId(Map<String,Object> naturalIdParameters)
protected void
synchronizationEnabled(boolean synchronizationEnabled)
BaseNaturalIdLoadAccessImpl<T>
with(LockOptions lockOptions)
-
-
-
Constructor Detail
-
BaseNaturalIdLoadAccessImpl
protected BaseNaturalIdLoadAccessImpl(LoadAccessContext context, EntityMappingType entityDescriptor)
-
-
Method Detail
-
getLockOptions
public LockOptions getLockOptions()
Description copied from interface:NaturalIdLoadOptions
The locking options for the loaded entity- Specified by:
getLockOptions
in interfaceNaturalIdLoadOptions
-
isSynchronizationEnabled
public boolean isSynchronizationEnabled()
Description copied from interface:NaturalIdLoadOptions
Whether Hibernate should perform "synchronization" prior to performing look-ups?- Specified by:
isSynchronizationEnabled
in interfaceNaturalIdLoadOptions
-
with
public BaseNaturalIdLoadAccessImpl<T> with(LockOptions lockOptions)
-
synchronizationEnabled
protected void synchronizationEnabled(boolean synchronizationEnabled)
-
performAnyNeededCrossReferenceSynchronizations
protected void performAnyNeededCrossReferenceSynchronizations()
-
getIdentifierLoadAccess
protected final IdentifierLoadAccess<?> getIdentifierLoadAccess()
-
getContext
protected LoadAccessContext getContext()
-
getEntityDescriptor
public EntityMappingType getEntityDescriptor()
-
entityPersister
protected EntityPersister entityPersister()
-
-