/*
* 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.internal;
import java.sql.Connection;
import java.util.TimeZone;
import org.hibernate.FlushMode;
import org.hibernate.Interceptor;
import org.hibernate.engine.spi.SessionOwner;
import org.hibernate.resource.jdbc.spi.PhysicalConnectionHandlingMode;
import org.hibernate.resource.jdbc.spi.StatementInspector;
import org.hibernate.resource.transaction.backend.jta.internal.synchronization.AfterCompletionAction;
import org.hibernate.resource.transaction.backend.jta.internal.synchronization.ExceptionMapper;
import org.hibernate.resource.transaction.backend.jta.internal.synchronization.ManagedFlushChecker;
Author: Steve Ebersole
/**
* @author Steve Ebersole
*/
public interface SessionCreationOptions {
// todo : (5.2) review this. intended as a consolidation of the options needed to create a Session
// comes from building a Session and a EntityManager
boolean shouldAutoJoinTransactions();
FlushMode getInitialSessionFlushMode();
boolean shouldAutoClose();
boolean shouldAutoClear();
Connection getConnection();
Interceptor getInterceptor();
StatementInspector getStatementInspector();
PhysicalConnectionHandlingMode getPhysicalConnectionHandlingMode();
String getTenantIdentifier();
TimeZone getJdbcTimeZone();
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// deprecations
Access to the SessionOwner, which defines the contract for things that can wrap a Session
Returns: The SessionOwner Deprecated: (since 5,2) SessionOwner is no longer pertinent due to the
hibernate-entitymanager -> hibernate-core consolidation
/**
* Access to the SessionOwner, which defines the contract for things that can wrap a Session
*
* @return The SessionOwner
*
* @deprecated (since 5,2) SessionOwner is no longer pertinent due to the
* hibernate-entitymanager -> hibernate-core consolidation
*/
@Deprecated
SessionOwner getSessionOwner();
ExceptionMapper getExceptionMapper();
AfterCompletionAction getAfterCompletionAction();
ManagedFlushChecker getManagedFlushChecker();
boolean isQueryParametersValidationEnabled();
}