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

public Interface JdbcSessionOwner

Known Direct Subinterfaces
org.hibernate.engine.spi.SharedSessionContractImplementor
Known Direct Implementers
org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.TemporaryJdbcSessionOwner, org.hibernate.internal.SessionImpl
Imports
org.hibernate.engine.jdbc.connections.spi.JdbcConnectionAccess, org.hibernate.event.spi.EventManager, org.hibernate.resource.transaction.spi.TransactionCoordinator

Contract for something that controls a JdbcSessionContext.

The term "JDBC session" is taken from the SQL specification which calls a connection and its associated transaction context a "session".

API Note

The name comes from the design idea of a JdbcSession which encapsulates this information, which we will hopefully get back to later.

Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public void
afterTransactionBegin()

A after-begin callback from the coordinator to its owner.

public void
afterTransactionCompletion(boolean
Was the transaction successful?
successful
,
boolean
Is this a delayed after transaction completion call (aka after a timeout)?
delayed
)

An after-completion callback to the owner.

public void
beforeTransactionCompletion()

A before-completion callback to the owner.

public void
public EventManager
public Integer

Returns:

Session-level JDBC batch size
getJdbcBatchSize
()

Get the Session-level JDBC batch size.

public JdbcConnectionAccess
public JdbcSessionContext
public TransactionCoordinator

Returns:

The TransactionCoordinatorBuilder
getTransactionCoordinator
()

Obtain the builder for TransactionCoordinator instances

public void
startTransactionBoundary()

Callback indicating recognition of entering into a transactional context whether that is explicitly via the Hibernate org.hibernate.Transaction API or via registration of Hibernate's JTA Synchronization impl with a JTA Transaction

Method Detail

afterTransactionBeginback to summary
public void afterTransactionBegin()

A after-begin callback from the coordinator to its owner.

afterTransactionCompletionback to summary
public void afterTransactionCompletion(boolean successful, boolean delayed)

An after-completion callback to the owner.

Parameters
successful:boolean

Was the transaction successful?

delayed:boolean

Is this a delayed after transaction completion call (aka after a timeout)?

beforeTransactionCompletionback to summary
public void beforeTransactionCompletion()

A before-completion callback to the owner.

flushBeforeTransactionCompletionback to summary
public void flushBeforeTransactionCompletion()
getEventManagerback to summary
public EventManager getEventManager()
getJdbcBatchSizeback to summary
public Integer getJdbcBatchSize()

Get the Session-level JDBC batch size.

Returns:Integer

Session-level JDBC batch size

Since
5.2
getJdbcConnectionAccessback to summary
public JdbcConnectionAccess getJdbcConnectionAccess()
getJdbcSessionContextback to summary
public JdbcSessionContext getJdbcSessionContext()
getTransactionCoordinatorback to summary
public TransactionCoordinator getTransactionCoordinator()

Obtain the builder for TransactionCoordinator instances

Returns:TransactionCoordinator

The TransactionCoordinatorBuilder

startTransactionBoundaryback to summary
public void startTransactionBoundary()

Callback indicating recognition of entering into a transactional context whether that is explicitly via the Hibernate org.hibernate.Transaction API or via registration of Hibernate's JTA Synchronization impl with a JTA Transaction