Package org.hibernate.resource.jdbc.spi
Interface JdbcSessionContext
- All Known Implementing Classes:
JdbcSessionContextImpl
public interfaceJdbcSessionContextProvides the "JDBC session" with contextual information it needs during its lifecycle.
Method Summary
Method Detail
isScrollableResultSetsEnabled
boolean isScrollableResultSetsEnabled()
isGetGeneratedKeysEnabled
boolean isGetGeneratedKeysEnabled()
- See Also:
JdbcSettings.USE_GET_GENERATED_KEYS
getFetchSizeOrNull
Integer getFetchSizeOrNull()
- See Also:
JdbcSettings.STATEMENT_FETCH_SIZE
getFetchSize
@Deprecated(since="6.2",forRemoval=true)int getFetchSize()
Deprecated, for removal: This API element is subject to removal in a future version.this is never called, and luckily so, because it's not null-safe
doesConnectionProviderDisableAutoCommit
boolean doesConnectionProviderDisableAutoCommit()
isPreferUserTransaction
boolean isPreferUserTransaction()
isJtaTrackByThread
boolean isJtaTrackByThread()
getPhysicalConnectionHandlingMode
PhysicalConnectionHandlingMode getPhysicalConnectionHandlingMode()
getStatementInspector
StatementInspector getStatementInspector()
getJpaCompliance
JpaCompliance getJpaCompliance()
getStatistics
StatisticsImplementor getStatistics()
getObserver
@Deprecated(forRemoval=true)JdbcObserver getObserver()
Deprecated, for removal: This API element is subject to removal in a future version.sinceJdbcObserveris deprecated
getSessionFactory
@Deprecated(since="6.2")SessionFactoryImplementor getSessionFactory()
Deprecated.exposing this here seems to kinda defeat the purpose of this SPIRetrieve the session factory for this environment.
getServiceRegistry
@Deprecated(since="6.2")ServiceRegistry getServiceRegistry()
Deprecated.this is no longer called, and unnecessary, since the needed services are now available viagetJdbcServices()Retrieve the service registry.
getJdbcServices
JdbcServices getJdbcServices()
getBatchBuilder
BatchBuilder getBatchBuilder()
isActive
boolean isActive()
- Returns:
falseif the session factory was already destroyed- See Also:
TransactionCoordinatorOwner.isActive()