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

public Interface TransactionCoordinatorOwner

Known Direct Subinterfaces
org.hibernate.engine.jdbc.spi.JdbcCoordinator
Imports
org.hibernate.resource.jdbc.spi.JdbcSessionOwner

Models an owner of a TransactionCoordinator. Mainly used in 2 ways:
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 delayed after transaction completion call (aka after a timeout)?
delayed
)

An after-completion callback from the coordinator to its owner.

public void
beforeTransactionCompletion()

A before-completion callback from the coordinator to its owner.

public void
public JdbcSessionOwner
public boolean

Returns:

true indicates the owner is still active; false indicates it is not.
isActive
()

Is the TransactionCoordinator owner considered active?

public void
setTransactionTimeOut(int
The number of seconds before a time out should occur.
seconds
)

Set the effective transaction timeout period for the current transaction, in seconds.

public default 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 from the coordinator to its owner.

Parameters
successful:boolean

Was the transaction successful?

delayed:boolean

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

beforeTransactionCompletionback to summary
public void beforeTransactionCompletion()

A before-completion callback from the coordinator to its owner.

flushBeforeTransactionCompletionback to summary
public void flushBeforeTransactionCompletion()
getJdbcSessionOwnerback to summary
public JdbcSessionOwner getJdbcSessionOwner()
isActiveback to summary
public boolean isActive()

Is the TransactionCoordinator owner considered active?

Returns:boolean

true indicates the owner is still active; false indicates it is not.

setTransactionTimeOutback to summary
public void setTransactionTimeOut(int seconds)

Set the effective transaction timeout period for the current transaction, in seconds.

Parameters
seconds:int

The number of seconds before a time out should occur.

startTransactionBoundaryback to summary
public default 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