org.hibernate.internal.SessionCreationOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of beangle-hibernate-core Show documentation
Show all versions of beangle-hibernate-core Show documentation
Hibernate Orm Core Shade,Support Scala Collection
/*
* 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.internal;
import java.sql.Connection;
import java.util.List;
import java.util.TimeZone;
import org.hibernate.FlushMode;
import org.hibernate.Interceptor;
import org.hibernate.SessionEventListener;
import org.hibernate.resource.jdbc.spi.PhysicalConnectionHandlingMode;
import org.hibernate.resource.jdbc.spi.StatementInspector;
import org.hibernate.resource.transaction.backend.jta.internal.synchronization.ExceptionMapper;
/**
* @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();
/**
* @return the full list of SessionEventListener if this was customized,
* or null if this Session is being created with the default list.
*/
List getCustomSessionEventListener();
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// deprecations
ExceptionMapper getExceptionMapper();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy