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

public Interface TransactionObserver

Known Direct Subinterfaces
org.hibernate.engine.transaction.spi.TransactionObserver

Observer of internal transaction events.

A TransactionObserver must be registered with the TransactionCoordinator by calling addObserver().

Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public void
afterBegin()

Callback for processing the beginning of a transaction.

public void
afterCompletion(boolean
Was the transaction successful?
successful
,
boolean delayed)

Callback for processing the last phase of transaction completion.

public void
beforeCompletion()

Callback for processing the initial phase of transaction completion.

Method Detail

afterBeginback to summary
public void afterBegin()

Callback for processing the beginning of a transaction.

Do not rely on this being called as the transaction may be started in some way other than via the org.hibernate.Transaction API.

afterCompletionback to summary
public void afterCompletion(boolean successful, boolean delayed)

Callback for processing the last phase of transaction completion.

Parameters
successful:boolean

Was the transaction successful?

beforeCompletionback to summary
public void beforeCompletion()

Callback for processing the initial phase of transaction completion.