Save This Page
Home » apache-tomcat-6.0.26-src » javax » persistence » [javadoc | source]
javax.persistence
public interface: EntityTransaction [javadoc | source] The EntityTransaction interface is used to control resource transactions on resource-local entity managers. The EntityManager.getTransaction() method returns the EntityTransaction interface.
Method from javax.persistence.EntityTransaction Summary:
begin,   commit,   getRollbackOnly,   isActive,   rollback,   setRollbackOnly
Method from javax.persistence.EntityTransaction Detail:
 public  void begin()
    Start a resource transaction.
 public  void commit()
    Commit the current transaction, writing any unflushed changes to the database.
 public boolean getRollbackOnly()
    Determine whether the current transaction has been marked for rollback.
 public boolean isActive()
    Indicate whether a transaction is in progress.
 public  void rollback()
    Roll back the current transaction.
 public  void setRollbackOnly()
    Mark the current transaction so that the only possible outcome of the transaction is for the transaction to be rolled back.