public class CacheEntityLoaderHelper
extends org.hibernate.event.internal.AbstractLockUpgradeEventListener
| Modifier and Type | Class and Description |
|---|---|
static class |
CacheEntityLoaderHelper.EntityStatus |
static class |
CacheEntityLoaderHelper.PersistenceContextEntry |
| Modifier and Type | Field and Description |
|---|---|
static CacheEntityLoaderHelper |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
Object |
loadFromSecondLevelCache(LoadEvent event,
EntityPersister persister,
EntityKey entityKey)
Attempts to load the entity from the second-level cache.
|
CacheEntityLoaderHelper.PersistenceContextEntry |
loadFromSessionCache(LoadEvent event,
EntityKey keyToLoad,
LoadEventListener.LoadType options)
Attempts to locate the entity in the session-level cache.
|
upgradeLockpublic static final CacheEntityLoaderHelper INSTANCE
public CacheEntityLoaderHelper.PersistenceContextEntry loadFromSessionCache(LoadEvent event, EntityKey keyToLoad, LoadEventListener.LoadType options) throws HibernateException
event - The load eventkeyToLoad - The EntityKey representing the entity to be loaded.options - The load options.HibernateException - Generally indicates problems applying a lock-mode.public Object loadFromSecondLevelCache(LoadEvent event, EntityPersister persister, EntityKey entityKey)
event - The load eventpersister - The persister for the entity being requested for loadCopyright © 2001-2022 Red Hat, Inc. All Rights Reserved.