org.melati.poem
Class PoemTransaction

Package class diagram package PoemTransaction
java.lang.Object
  extended by org.melati.poem.transaction.Transaction
      extended by org.melati.poem.PoemTransaction

public class PoemTransaction
extends Transaction

A set of dbms actions, which can be rolled back if necessary.


Field Summary
 
Fields inherited from class org.melati.poem.transaction.Transaction
index, mask, negMask
 
Constructor Summary
PoemTransaction(Database database, Connection connection, int index)
          Constructor.
 
Method Summary
protected  void backingCommit()
           
protected  void backingRollback()
           
 void close(boolean commit)
          Close the transaction, committing or rolling back, notifying the database that we are closed.
 Database getDatabase()
           
 String toString()
          The transaction index.
 
Methods inherited from class org.melati.poem.transaction.Transaction
commit, getBlockedOn, rollback, writeDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PoemTransaction

public PoemTransaction(Database database,
                       Connection connection,
                       int index)
Constructor.

Method Detail

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.