Package org.hibernate.loader.internal
Class CacheLoadHelper
java.lang.Object
org.hibernate.loader.internal.CacheLoadHelper
Some logic which originally resided in
DefaultLoadEventListener
and in
DefaultInitializeCollectionEventListener
but was moved here to make it reusable.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionentityStatus
(EntityKey keyToLoad, LoadEventListener.LoadType options, SharedSessionContractImplementor session, EntityEntry oldEntry, Object old) static boolean
initializeCollectionFromCache
(Object key, CollectionPersister persister, PersistentCollection<?> collection, SharedSessionContractImplementor source) Try to initialize a collection from the cachestatic Object
loadFromSecondLevelCache
(SharedSessionContractImplementor source, Object entity, LockMode lockMode, EntityPersister persister, EntityKey entityKey) Attempts to load the entity from the second-level cache.loadFromSessionCache
(EntityKey keyToLoad, LockOptions lockOptions, LoadEventListener.LoadType options, SharedSessionContractImplementor session) Attempts to locate the entity in the session-level cache.
-
Method Details