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.
- Author:
- Steve Ebersole
-
Method Summary
Modifier and TypeMethodDescriptionbooleanintDeprecated, 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-safeDeprecated, for removal: This API element is subject to removal in a future version.sinceJdbcObserveris deprecatedDeprecated.this is no longer called, and unnecessary, since the needed services are now available viagetJdbcServices()Deprecated.exposing this here seems to kinda defeat the purpose of this SPIbooleanisActive()booleanbooleanbooleanboolean
-
Method Details
-
isScrollableResultSetsEnabled
boolean isScrollableResultSetsEnabled()- See Also:
-
isGetGeneratedKeysEnabled
boolean isGetGeneratedKeysEnabled()- See Also:
-
getFetchSizeOrNull
Integer getFetchSizeOrNull()- See Also:
-
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:
-
getPhysicalConnectionHandlingMode
PhysicalConnectionHandlingMode getPhysicalConnectionHandlingMode() -
getStatementInspector
StatementInspector getStatementInspector() -
getJpaCompliance
JpaCompliance getJpaCompliance() -
getStatistics
StatisticsImplementor getStatistics() -
getObserver
Deprecated, for removal: This API element is subject to removal in a future version.sinceJdbcObserveris deprecated -
getSessionFactory
Deprecated.exposing this here seems to kinda defeat the purpose of this SPIRetrieve the session factory for this environment. -
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:
-