Top Description Methods
org.hibernate.resource.transaction.backend.jta.internal.synchronization

public Interface SynchronizationCallbackTarget

Known Direct Implementers
org.hibernate.resource.transaction.backend.jta.internal.JtaTransactionCoordinatorImpl

Defines "inflow" for JTA transactions from the perspective of Hibernate's registered JTA Synchronization back into the TransactionCoordinator by means of the SynchronizationCallbackCoordinator.

That's a mouthful :) The way it works is like this...

Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public void
afterCompletion(boolean
Was the transaction successful?
successful
,
boolean delayed)

Callback of after-completion.

public void
beforeCompletion()

Callback of before-completion.

public boolean

Returns:

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

Is the callback target still active?

Method Detail

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

Callback of after-completion.

Parameters
successful:boolean

Was the transaction successful?

See Also
javax.transaction.Synchronization#afterCompletion
beforeCompletionback to summary
public void beforeCompletion()

Callback of before-completion.

See Also
javax.transaction.Synchronization#beforeCompletion
isActiveback to summary
public boolean isActive()

Is the callback target still active? Generally this is checked by the caller prior to calling beforeCompletion or afterCompletion

Returns:boolean

true indicates the target is active; false indicates it is not.