All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.resource.jdbc.spi.JdbcSessionContext Maven / Gradle / Ivy

There is a newer version: 7.0.0.Alpha1
Show newest version
/*
 * 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 .
 */
package org.hibernate.resource.jdbc.spi;

import org.hibernate.ConnectionAcquisitionMode;
import org.hibernate.ConnectionReleaseMode;
import org.hibernate.engine.spi.SessionFactoryImplementor;
import org.hibernate.service.ServiceRegistry;

/**
 * Provides the JdbcSession implementation with contextual information it needs during its lifecycle.
 *
 * @author Steve Ebersole
 */
public interface JdbcSessionContext {
	public boolean isScrollableResultSetsEnabled();
	public boolean isGetGeneratedKeysEnabled();
	public int getFetchSize();

	public ConnectionReleaseMode getConnectionReleaseMode();
	public ConnectionAcquisitionMode getConnectionAcquisitionMode();

	public StatementInspector getStatementInspector();

	public JdbcObserver getObserver();

	/**
	* Retrieve the session factory for this environment.
	*
	* @return The session factory
	*/
	public SessionFactoryImplementor getSessionFactory();

	public ServiceRegistry getServiceRegistry();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy