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 protectedBaseNaturalIdLoadAccessImpl(LoadAccessContext context, EntityMappingType entityDescriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TdoGetReference(Object normalizedNaturalIdValue)protected TdoLoad(Object normalizedNaturalIdValue)protected EntityPersisterentityPersister()protected LoadAccessContextgetContext()EntityMappingTypegetEntityDescriptor()protected IdentifierLoadAccess<?>getIdentifierLoadAccess()LockOptionsgetLockOptions()The locking options for the loaded entitybooleanisSynchronizationEnabled()Whether Hibernate should perform "synchronization" prior to performing look-ups?protected voidperformAnyNeededCrossReferenceSynchronizations()protected ObjectresolveNaturalId(Map<String,Object> naturalIdParameters)protected voidsynchronizationEnabled(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:NaturalIdLoadOptionsThe locking options for the loaded entity- Specified by:
getLockOptionsin interfaceNaturalIdLoadOptions
-
isSynchronizationEnabled
public boolean isSynchronizationEnabled()
Description copied from interface:NaturalIdLoadOptionsWhether Hibernate should perform "synchronization" prior to performing look-ups?- Specified by:
isSynchronizationEnabledin 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()
-
-