org.jbpm.tx
Interface Transaction

All Superinterfaces:
Listener, Observable
All Known Implementing Classes:
EnterpriseTransaction, StandardTransaction

public interface Transaction
extends Listener, Observable

Author:
Tom Baeyens

Field Summary
static java.lang.String EVENT_AFTERCOMPLETION
          is fired when the wiring environment is being rolled back.
static java.lang.String EVENT_BEFORECOMPLETION
          is fired when the wiring environment is being committed.
static java.lang.String EVENT_FLUSH
          is fired when the wiring environment is being flushed.
 
Method Summary
 boolean isCommitted()
           
 boolean isRollbackOnly()
           
 boolean isRolledBack()
           
 void setRollbackOnly()
          marks a transaction for rollback only.
 
Methods inherited from interface org.jbpm.util.Listener
event
 
Methods inherited from interface org.jbpm.util.Observable
addListener, addListener, addListener, fire, fire, removeListener
 

Field Detail

EVENT_FLUSH

static final java.lang.String EVENT_FLUSH
is fired when the wiring environment is being flushed. No event info provided.

See Also:
Constant Field Values

EVENT_BEFORECOMPLETION

static final java.lang.String EVENT_BEFORECOMPLETION
is fired when the wiring environment is being committed. No event info provided. It is the Transaction that will listen to the close of this wiring environment. Upon close, the transaction will fire a commit or rollback event depending on the state of the isRollback property in the transaction.

See Also:
Constant Field Values

EVENT_AFTERCOMPLETION

static final java.lang.String EVENT_AFTERCOMPLETION
is fired when the wiring environment is being rolled back. No event info provided. It is the Transaction that will listen to the close of this wiring environment. Upon close, the transaction will fire a commit or rollback event depending on the state of the isRollback property in the transaction.

See Also:
Constant Field Values
Method Detail

setRollbackOnly

void setRollbackOnly()
marks a transaction for rollback only. The transaction will be rolled back upon closing the environment.


isRolledBack

boolean isRolledBack()

isCommitted

boolean isCommitted()

isRollbackOnly

boolean isRollbackOnly()