org.hibernate.sql.results.spi.JdbcValuesSourceProcessingState Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-core Show documentation
Show all versions of hibernate-core Show documentation
Hibernate's core ORM functionality
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or http://www.gnu.org/licenses/lgpl-2.1.html
*/
package org.hibernate.sql.results.spi;
import org.hibernate.engine.spi.CollectionKey;
import org.hibernate.engine.spi.EntityKey;
import org.hibernate.engine.spi.SharedSessionContractImplementor;
import org.hibernate.event.spi.PostLoadEvent;
import org.hibernate.event.spi.PreLoadEvent;
import org.hibernate.query.spi.QueryOptions;
import org.hibernate.sql.exec.spi.ExecutionContext;
/**
* Provides a context for processing the processing of the complete
* set of rows from a JdbcValuesSource. Holds in-flight state
* and provides access to environmental information needed to perform the
* processing.
*
* @author Steve Ebersole
*/
public interface JdbcValuesSourceProcessingState {
ExecutionContext getExecutionContext();
default SharedSessionContractImplementor getSession() {
return getExecutionContext().getSession();
}
default QueryOptions getQueryOptions() {
return getExecutionContext().getQueryOptions();
}
JdbcValuesSourceProcessingOptions getProcessingOptions();
PreLoadEvent getPreLoadEvent();
PostLoadEvent getPostLoadEvent();
/**
* Find a LoadingEntityEntry locally to this context.
*
* @see LoadContexts#findLoadingEntityEntry(EntityKey)
*/
LoadingEntityEntry findLoadingEntityLocally(EntityKey entityKey);
/**
* Registers a LoadingEntityEntry locally to this context
*/
void registerLoadingEntity(
EntityKey entityKey,
LoadingEntityEntry loadingEntry);
/**
* Find a LoadingCollectionEntry locally to this context.
*
* @see LoadContexts#findLoadingCollectionEntry(CollectionKey)
*/
LoadingCollectionEntry findLoadingCollectionLocally(CollectionKey key);
/**
* Registers a LoadingCollectionEntry locally to this context
*/
void registerLoadingCollection(
CollectionKey collectionKey,
LoadingCollectionEntry loadingCollectionEntry);
void finishUp();
}