Package org.hibernate.resource.jdbc.spi
Interface JdbcSessionContext
-
- All Known Implementing Classes:
JdbcSessionContextImpl
public interface JdbcSessionContextProvides 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 booleandoesConnectionProviderDisableAutoCommit()BatchBuildergetBatchBuilder()intgetFetchSize()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-safeIntegergetFetchSizeOrNull()JdbcServicesgetJdbcServices()JpaCompliancegetJpaCompliance()JdbcObservergetObserver()Deprecated, for removal: This API element is subject to removal in a future version.sinceJdbcObserveris deprecatedPhysicalConnectionHandlingModegetPhysicalConnectionHandlingMode()ServiceRegistrygetServiceRegistry()Deprecated.this is no longer called, and unnecessary, since the needed services are now available viagetJdbcServices()SessionFactoryImplementorgetSessionFactory()Deprecated.exposing this here seems to kinda defeat the purpose of this SPIStatementInspectorgetStatementInspector()StatisticsImplementorgetStatistics()booleanisActive()booleanisGetGeneratedKeysEnabled()booleanisJtaTrackByThread()booleanisPreferUserTransaction()booleanisScrollableResultSetsEnabled()
-
-
-
Method Detail
-
isScrollableResultSetsEnabled
boolean isScrollableResultSetsEnabled()
- See Also:
JdbcSettings.USE_SCROLLABLE_RESULTSET
-
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()
- See Also:
TransactionSettings.JTA_TRACK_BY_THREAD
-
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()
-
-