Package org.hibernate.internal
Class JdbcSessionContextImpl
- java.lang.Object
-
- org.hibernate.internal.JdbcSessionContextImpl
-
- All Implemented Interfaces:
JdbcSessionContext
public class JdbcSessionContextImpl extends Object implements JdbcSessionContext
-
-
Constructor Summary
Constructors Constructor Description JdbcSessionContextImpl(SessionFactoryImplementor sessionFactory, StatementInspector statementInspector, PhysicalConnectionHandlingMode connectionHandlingMode, JdbcServices jdbcServices, BatchBuilder batchBuilder, JdbcObserver jdbcObserver)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleandoesConnectionProviderDisableAutoCommit()BatchBuildergetBatchBuilder()intgetFetchSize()Deprecated.IntegergetFetchSizeOrNull()JdbcServicesgetJdbcServices()JpaCompliancegetJpaCompliance()JdbcObservergetObserver()Deprecated.PhysicalConnectionHandlingModegetPhysicalConnectionHandlingMode()ServiceRegistrygetServiceRegistry()Deprecated.SessionFactoryImplementorgetSessionFactory()Deprecated.StatementInspectorgetStatementInspector()StatisticsImplementorgetStatistics()booleanisActive()booleanisGetGeneratedKeysEnabled()booleanisJtaTrackByThread()booleanisPreferUserTransaction()booleanisScrollableResultSetsEnabled()
-
-
-
Constructor Detail
-
JdbcSessionContextImpl
public JdbcSessionContextImpl(SessionFactoryImplementor sessionFactory, StatementInspector statementInspector, PhysicalConnectionHandlingMode connectionHandlingMode, JdbcServices jdbcServices, BatchBuilder batchBuilder, JdbcObserver jdbcObserver)
-
-
Method Detail
-
isScrollableResultSetsEnabled
public boolean isScrollableResultSetsEnabled()
- Specified by:
isScrollableResultSetsEnabledin interfaceJdbcSessionContext- See Also:
JdbcSettings.USE_SCROLLABLE_RESULTSET
-
isGetGeneratedKeysEnabled
public boolean isGetGeneratedKeysEnabled()
- Specified by:
isGetGeneratedKeysEnabledin interfaceJdbcSessionContext- See Also:
JdbcSettings.USE_GET_GENERATED_KEYS
-
getFetchSize
@Deprecated public int getFetchSize()
Deprecated.- Specified by:
getFetchSizein interfaceJdbcSessionContext
-
getFetchSizeOrNull
public Integer getFetchSizeOrNull()
- Specified by:
getFetchSizeOrNullin interfaceJdbcSessionContext- See Also:
JdbcSettings.STATEMENT_FETCH_SIZE
-
getJpaCompliance
public JpaCompliance getJpaCompliance()
- Specified by:
getJpaCompliancein interfaceJdbcSessionContext
-
isPreferUserTransaction
public boolean isPreferUserTransaction()
- Specified by:
isPreferUserTransactionin interfaceJdbcSessionContext- See Also:
TransactionSettings.PREFER_USER_TRANSACTION
-
isJtaTrackByThread
public boolean isJtaTrackByThread()
- Specified by:
isJtaTrackByThreadin interfaceJdbcSessionContext- See Also:
TransactionSettings.JTA_TRACK_BY_THREAD
-
getPhysicalConnectionHandlingMode
public PhysicalConnectionHandlingMode getPhysicalConnectionHandlingMode()
- Specified by:
getPhysicalConnectionHandlingModein interfaceJdbcSessionContext
-
doesConnectionProviderDisableAutoCommit
public boolean doesConnectionProviderDisableAutoCommit()
- Specified by:
doesConnectionProviderDisableAutoCommitin interfaceJdbcSessionContext- See Also:
JdbcSettings.CONNECTION_PROVIDER_DISABLES_AUTOCOMMIT
-
getStatementInspector
public StatementInspector getStatementInspector()
- Specified by:
getStatementInspectorin interfaceJdbcSessionContext
-
getObserver
@Deprecated public JdbcObserver getObserver()
Deprecated.- Specified by:
getObserverin interfaceJdbcSessionContext
-
getSessionFactory
@Deprecated public SessionFactoryImplementor getSessionFactory()
Deprecated.Description copied from interface:JdbcSessionContextRetrieve the session factory for this environment.- Specified by:
getSessionFactoryin interfaceJdbcSessionContext
-
getServiceRegistry
@Deprecated public ServiceRegistry getServiceRegistry()
Deprecated.Description copied from interface:JdbcSessionContextRetrieve the service registry.- Specified by:
getServiceRegistryin interfaceJdbcSessionContext
-
getJdbcServices
public JdbcServices getJdbcServices()
- Specified by:
getJdbcServicesin interfaceJdbcSessionContext
-
getBatchBuilder
public BatchBuilder getBatchBuilder()
- Specified by:
getBatchBuilderin interfaceJdbcSessionContext
-
isActive
public boolean isActive()
- Specified by:
isActivein interfaceJdbcSessionContext- Returns:
falseif the session factory was already destroyed- See Also:
TransactionCoordinatorOwner.isActive()
-
getStatistics
public StatisticsImplementor getStatistics()
- Specified by:
getStatisticsin interfaceJdbcSessionContext
-
-