Top Description Fields Constructors Methods
org.hibernate.sql.results.spi

public Class LoadContexts

extends Object
Class Inheritance
Imports
org.hibernate.engine.spi.CollectionKey, .EntityKey, .EntityUniqueKey, .PersistenceContext, org.hibernate.internal.CoreLogging, .CoreMessageLogger, org.hibernate.internal.util.collections.StandardStack, org.hibernate.sql.results.graph.Initializer, org.hibernate.sql.results.graph.collection.LoadingCollectionEntry, org.hibernate.sql.results.jdbc.spi.JdbcValuesSourceProcessingState

Maintains a Stack of processing state related to performing load operations. The state is defined by JdbcValuesSourceProcessingState which encapsulates the data to be processed by the load whether the data comes from a ResultSet or second-level cache hit.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final StandardStack<JdbcValuesSourceProcessingState>
private static final CoreMessageLogger
private final PersistenceContext

Constructor Summary

AccessConstructor and Description
public
LoadContexts(PersistenceContext persistenceContext)

Method Summary

Modifier and TypeMethod and Description
public void
cleanup()

Release internal state associated with *all* result sets.

public void
public Initializer
public LoadingCollectionEntry
public PersistenceContext

Returns:

The persistence context to which this is bound.
getPersistenceContext
()

Retrieves the persistence context to which this is bound.

public boolean
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

jdbcValuesSourceProcessingStateStackback to summary
private final StandardStack<JdbcValuesSourceProcessingState> jdbcValuesSourceProcessingStateStack
logback to summary
private static final CoreMessageLogger log
persistenceContextback to summary
private final PersistenceContext persistenceContext

Constructor Detail

LoadContextsback to summary
public LoadContexts(PersistenceContext persistenceContext)

Method Detail

cleanupback to summary
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.

deregisterback to summary
public void deregister(JdbcValuesSourceProcessingState state)
findInitializerback to summary
public Initializer findInitializer(final EntityUniqueKey key)
findLoadingCollectionEntryback to summary
public LoadingCollectionEntry findLoadingCollectionEntry(final CollectionKey collectionKey)
getPersistenceContextback to summary
public PersistenceContext getPersistenceContext()

Retrieves the persistence context to which this is bound.

Returns:PersistenceContext

The persistence context to which this is bound.

isLoadingFinishedback to summary
public boolean isLoadingFinished()
registerback to summary
public void register(JdbcValuesSourceProcessingState state)