Package org.hibernate.sql.results.spi
Class LoadContexts
- java.lang.Object
-
- org.hibernate.sql.results.spi.LoadContexts
-
public class LoadContexts extends Object
Maintains a Stack of processing state related to performing load operations. The state is defined byJdbcValuesSourceProcessingState
which encapsulates the data to be processed by the load whether the data comes from a ResultSet or second-level cache hit.
-
-
Constructor Summary
Constructors Constructor Description LoadContexts(PersistenceContext persistenceContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanup()
Release internal state associated with *all* result sets.void
deregister(JdbcValuesSourceProcessingState state)
Initializer
findInitializer(EntityKey key)
Initializer
findInitializer(EntityUniqueKey key)
LoadingCollectionEntry
findLoadingCollectionEntry(CollectionKey collectionKey)
LoadingEntityEntry
findLoadingEntityEntry(EntityKey entityKey)
PersistenceContext
getPersistenceContext()
Retrieves the persistence context to which this is bound.boolean
isLoadingFinished()
void
register(JdbcValuesSourceProcessingState state)
-
-
-
Constructor Detail
-
LoadContexts
public LoadContexts(PersistenceContext persistenceContext)
-
-
Method Detail
-
register
public void register(JdbcValuesSourceProcessingState state)
-
deregister
public void deregister(JdbcValuesSourceProcessingState state)
-
isLoadingFinished
public boolean isLoadingFinished()
-
findLoadingEntityEntry
public LoadingEntityEntry findLoadingEntityEntry(EntityKey entityKey)
-
findLoadingCollectionEntry
public LoadingCollectionEntry findLoadingCollectionEntry(CollectionKey collectionKey)
-
findInitializer
public Initializer findInitializer(EntityKey key)
-
findInitializer
public Initializer findInitializer(EntityUniqueKey key)
-
getPersistenceContext
public PersistenceContext getPersistenceContext()
Retrieves the persistence context to which this is bound.- Returns:
- The persistence context to which this is bound.
-
cleanup
public void cleanup()
Release internal state associated with *all* result sets. This is intended as a "failsafe" process to make sure we get everything cleaned up and released.
-
-