Package org.hibernate.resource.jdbc.spi
Interface JdbcSessionContext
-
- All Known Implementing Classes:
JdbcSessionContextImpl
public interface JdbcSessionContext
Provides the "JDBC session" with contextual information it needs during its lifecycle.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
doesConnectionProviderDisableAutoCommit()
BatchBuilder
getBatchBuilder()
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-safeInteger
getFetchSizeOrNull()
JdbcServices
getJdbcServices()
JpaCompliance
getJpaCompliance()
JdbcObserver
getObserver()
Deprecated, for removal: This API element is subject to removal in a future version.sinceJdbcObserver
is deprecatedPhysicalConnectionHandlingMode
getPhysicalConnectionHandlingMode()
ServiceRegistry
getServiceRegistry()
Deprecated.this is no longer called, and unnecessary, since the needed services are now available viagetJdbcServices()
SessionFactoryImplementor
getSessionFactory()
Deprecated.exposing this here seems to kinda defeat the purpose of this SPIStatementInspector
getStatementInspector()
boolean
isActive()
boolean
isGetGeneratedKeysEnabled()
boolean
isJtaTrackByThread()
boolean
isPreferUserTransaction()
boolean
isScrollableResultSetsEnabled()
-
-
-
Method Detail
-
isScrollableResultSetsEnabled
boolean isScrollableResultSetsEnabled()
-
isGetGeneratedKeysEnabled
boolean isGetGeneratedKeysEnabled()
- See Also:
AvailableSettings.USE_GET_GENERATED_KEYS
-
getFetchSizeOrNull
Integer getFetchSizeOrNull()
- See Also:
AvailableSettings.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()
- See Also:
AvailableSettings.JTA_TRACK_BY_THREAD
-
getPhysicalConnectionHandlingMode
PhysicalConnectionHandlingMode getPhysicalConnectionHandlingMode()
-
getStatementInspector
StatementInspector getStatementInspector()
-
getJpaCompliance
JpaCompliance getJpaCompliance()
-
getObserver
@Deprecated(forRemoval=true) JdbcObserver getObserver()
Deprecated, for removal: This API element is subject to removal in a future version.sinceJdbcObserver
is 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:
false
if the session factory was already destroyed- See Also:
TransactionCoordinatorOwner.isActive()
-
-