Top Description Methods
org.hibernate.resource.jdbc.spi

public Interface JdbcSessionContext

Known Direct Implementers
org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.TemporaryJdbcSessionOwner, org.hibernate.internal.JdbcSessionContextImpl
Imports
org.hibernate.engine.jdbc.batch.spi.BatchBuilder, org.hibernate.engine.jdbc.spi.JdbcServices, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.jpa.spi.JpaCompliance, org.hibernate.service.ServiceRegistry, org.hibernate.stat.spi.StatisticsImplementor

Provides the "JDBC session" with contextual information it needs during its lifecycle.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public boolean
public BatchBuilder
public int
getFetchSize()

Deprecated for removal since 6.2. this is never called, and luckily so, because it's not null-safe
public Integer
public JdbcServices
public JpaCompliance
public JdbcObserver
getObserver()

Deprecated for removal. since JdbcObserver is deprecated
public PhysicalConnectionHandlingMode
public ServiceRegistry
getServiceRegistry()

Deprecated since 6.2. this is no longer called, and unnecessary, since the needed services are now available via getJdbcServices()
Retrieve the service registry.
public SessionFactoryImplementor
getSessionFactory()

Deprecated since 6.2. exposing this here seems to kinda defeat the purpose of this SPI
Retrieve the session factory for this environment.
public StatementInspector
public StatisticsImplementor
public boolean

Returns:

false if the session factory was already destroyed
isActive
()

public boolean
public boolean
public boolean
public boolean

Method Detail

doesConnectionProviderDisableAutoCommitback to summary
public boolean doesConnectionProviderDisableAutoCommit()
See Also
org.hibernate.cfg.AvailableSettings#CONNECTION_PROVIDER_DISABLES_AUTOCOMMIT
getBatchBuilderback to summary
public BatchBuilder getBatchBuilder()
getFetchSizeback to summary
public int getFetchSize()

Deprecated

for removal since 6.2.

this is never called, and luckily so, because it's not null-safe

Annotations
@Deprecated
since:6.2
forRemoval:true
getFetchSizeOrNullback to summary
public Integer getFetchSizeOrNull()
See Also
org.hibernate.cfg.AvailableSettings#STATEMENT_FETCH_SIZE
getJdbcServicesback to summary
public JdbcServices getJdbcServices()
getJpaComplianceback to summary
public JpaCompliance getJpaCompliance()
getObserverback to summary
public JdbcObserver getObserver()

Deprecated

for removal.

since JdbcObserver is deprecated

Annotations
@Deprecated
forRemoval:true
getPhysicalConnectionHandlingModeback to summary
public PhysicalConnectionHandlingMode getPhysicalConnectionHandlingMode()
getServiceRegistryback to summary
public ServiceRegistry getServiceRegistry()

Deprecated

since 6.2.

this is no longer called, and unnecessary, since the needed services are now available via getJdbcServices()

Retrieve the service registry.

Annotations
@Deprecated
since:6.2
getSessionFactoryback to summary
public SessionFactoryImplementor getSessionFactory()

Deprecated

since 6.2.

exposing this here seems to kinda defeat the purpose of this SPI

Retrieve the session factory for this environment.

Annotations
@Deprecated
since:6.2
getStatementInspectorback to summary
public StatementInspector getStatementInspector()
getStatisticsback to summary
public StatisticsImplementor getStatistics()
isActiveback to summary
public boolean isActive()
Returns:boolean

false if the session factory was already destroyed

See Also
org.hibernate.resource.transaction.spi.TransactionCoordinatorOwner#isActive()
isGetGeneratedKeysEnabledback to summary
public boolean isGetGeneratedKeysEnabled()
See Also
org.hibernate.cfg.AvailableSettings#USE_GET_GENERATED_KEYS
isJtaTrackByThreadback to summary
public boolean isJtaTrackByThread()
See Also
org.hibernate.cfg.AvailableSettings#JTA_TRACK_BY_THREAD
isPreferUserTransactionback to summary
public boolean isPreferUserTransaction()
See Also
org.hibernate.cfg.AvailableSettings#PREFER_USER_TRANSACTION
isScrollableResultSetsEnabledback to summary
public boolean isScrollableResultSetsEnabled()
See Also
org.hibernate.cfg.AvailableSettings#USE_SCROLLABLE_RESULTSET