Skip navigation links

Oracle TopLink Java API Reference
10g Release 3 (10.1.3.1)

B28219-01


oracle.toplink.sessions.entitymanager
Interface EntityTransaction


public interface EntityTransaction

Method Summary
 void begin()
          Start the current transaction.
 void commit()
          Commit the current transaction, writing any un-flushed changes to the database.
 boolean isActive()
          Check to see if the current transaction is in progress.
 void rollback()
          Roll back the current transaction, discarding any changes that have happened in this transaction.

 

Method Detail

begin

public void begin()
Start the current transaction. This can only be invoked if isActive() returns false.

commit

public void commit()
Commit the current transaction, writing any un-flushed changes to the database. This can only be invoked if isActive() returns true.

rollback

public void rollback()
Roll back the current transaction, discarding any changes that have happened in this transaction. This can only be invoked if isActive() returns true.

isActive

public boolean isActive()
Check to see if the current transaction is in progress.

Skip navigation links

Copyright © 1998, 2006, Oracle. All Rights Reserved.