org.hibernate.resource.jdbc.spi.JdbcSessionContext Maven / Gradle / Ivy
/*
* 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();
}