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 boolean
doesConnectionProviderDisableAutoCommit()
BatchBuilder
getBatchBuilder()
int
getFetchSize()
Deprecated.Integer
getFetchSizeOrNull()
JdbcServices
getJdbcServices()
JpaCompliance
getJpaCompliance()
JdbcObserver
getObserver()
Deprecated.PhysicalConnectionHandlingMode
getPhysicalConnectionHandlingMode()
ServiceRegistry
getServiceRegistry()
Deprecated.SessionFactoryImplementor
getSessionFactory()
Deprecated.StatementInspector
getStatementInspector()
boolean
isActive()
boolean
isGetGeneratedKeysEnabled()
boolean
isJtaTrackByThread()
boolean
isPreferUserTransaction()
boolean
isScrollableResultSetsEnabled()
-
-
-
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:
isScrollableResultSetsEnabled
in interfaceJdbcSessionContext
- See Also:
AvailableSettings.USE_SCROLLABLE_RESULTSET
-
isGetGeneratedKeysEnabled
public boolean isGetGeneratedKeysEnabled()
- Specified by:
isGetGeneratedKeysEnabled
in interfaceJdbcSessionContext
- See Also:
AvailableSettings.USE_GET_GENERATED_KEYS
-
getFetchSize
@Deprecated public int getFetchSize()
Deprecated.- Specified by:
getFetchSize
in interfaceJdbcSessionContext
-
getFetchSizeOrNull
public Integer getFetchSizeOrNull()
- Specified by:
getFetchSizeOrNull
in interfaceJdbcSessionContext
- See Also:
AvailableSettings.STATEMENT_FETCH_SIZE
-
getJpaCompliance
public JpaCompliance getJpaCompliance()
- Specified by:
getJpaCompliance
in interfaceJdbcSessionContext
-
isPreferUserTransaction
public boolean isPreferUserTransaction()
- Specified by:
isPreferUserTransaction
in interfaceJdbcSessionContext
- See Also:
AvailableSettings.PREFER_USER_TRANSACTION
-
isJtaTrackByThread
public boolean isJtaTrackByThread()
- Specified by:
isJtaTrackByThread
in interfaceJdbcSessionContext
- See Also:
AvailableSettings.JTA_TRACK_BY_THREAD
-
getPhysicalConnectionHandlingMode
public PhysicalConnectionHandlingMode getPhysicalConnectionHandlingMode()
- Specified by:
getPhysicalConnectionHandlingMode
in interfaceJdbcSessionContext
-
doesConnectionProviderDisableAutoCommit
public boolean doesConnectionProviderDisableAutoCommit()
- Specified by:
doesConnectionProviderDisableAutoCommit
in interfaceJdbcSessionContext
- See Also:
AvailableSettings.CONNECTION_PROVIDER_DISABLES_AUTOCOMMIT
-
getStatementInspector
public StatementInspector getStatementInspector()
- Specified by:
getStatementInspector
in interfaceJdbcSessionContext
-
getObserver
@Deprecated public JdbcObserver getObserver()
Deprecated.- Specified by:
getObserver
in interfaceJdbcSessionContext
-
getSessionFactory
@Deprecated public SessionFactoryImplementor getSessionFactory()
Deprecated.Description copied from interface:JdbcSessionContext
Retrieve the session factory for this environment.- Specified by:
getSessionFactory
in interfaceJdbcSessionContext
-
getServiceRegistry
@Deprecated public ServiceRegistry getServiceRegistry()
Deprecated.Description copied from interface:JdbcSessionContext
Retrieve the service registry.- Specified by:
getServiceRegistry
in interfaceJdbcSessionContext
-
getJdbcServices
public JdbcServices getJdbcServices()
- Specified by:
getJdbcServices
in interfaceJdbcSessionContext
-
getBatchBuilder
public BatchBuilder getBatchBuilder()
- Specified by:
getBatchBuilder
in interfaceJdbcSessionContext
-
isActive
public boolean isActive()
- Specified by:
isActive
in interfaceJdbcSessionContext
- Returns:
false
if the session factory was already destroyed- See Also:
TransactionCoordinatorOwner.isActive()
-
-