javax.persistence
Interface EntityTransaction


public interface EntityTransaction

Transaction context.


Method Summary
 void begin()
          Starts a resource transaction.
 void commit()
          Commits a resource transaction.
 boolean getRollbackOnly()
          Returns true if the transaction is for rollback only.
 boolean isActive()
          Test if a transaction is in progress.
 void rollback()
          Rolls the current transaction back.
 void setRollbackOnly()
          Marks the current transaction for rollback only.
 

Method Detail

begin

void begin()
Starts a resource transaction.


commit

void commit()
Commits a resource transaction.


rollback

void rollback()
Rolls the current transaction back.


setRollbackOnly

void setRollbackOnly()
Marks the current transaction for rollback only.


getRollbackOnly

boolean getRollbackOnly()
Returns true if the transaction is for rollback only.


isActive

boolean isActive()
Test if a transaction is in progress.