org.melati.poem
Class PoemTransaction
java.lang.Object
org.melati.poem.transaction.Transaction
org.melati.poem.PoemTransaction
public class PoemTransaction
- extends Transaction
A set of dbms actions, which can be rolled back if necessary.
PoemTransaction
public PoemTransaction(Database database,
Connection connection,
int index)
- Constructor.
getDatabase
public final Database getDatabase()
- Returns:
- the Database this PoemTransaction relates to
backingCommit
protected void backingCommit()
- Specified by:
backingCommit
in class Transaction
backingRollback
protected void backingRollback()
- Specified by:
backingRollback
in class Transaction
close
public void close(boolean commit)
- Close the transaction, committing or rolling back,
notifying the database that we are closed.
- Parameters:
commit
- whether to commit before closing
toString
public String toString()
- The transaction index.
- Overrides:
toString
in class Transaction
- See Also:
Transaction.toString()
Copyright © 2000-2010 PanEris. All Rights Reserved.