com.caucho.db.xa
Class StoreTransaction

java.lang.Object
  extended by com.caucho.db.xa.StoreTransaction
Direct Known Subclasses:
DbTransaction, RawTransaction

public abstract class StoreTransaction
extends java.lang.Object

Represents a single transaction.


Constructor Summary
StoreTransaction()
           
 
Method Summary
abstract  void addUpdateBlock(Block block)
          Adds an updated block.
 void addUpdateFragmentBlock(Block block)
          Add an update fragment block.
abstract  Block readBlock(BlockStore store, long blockAddress)
          Returns a read block.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StoreTransaction

public StoreTransaction()
Method Detail

readBlock

public abstract Block readBlock(BlockStore store,
                                long blockAddress)
                         throws java.io.IOException
Returns a read block.

Throws:
java.io.IOException

addUpdateBlock

public abstract void addUpdateBlock(Block block)
                             throws java.io.IOException
Adds an updated block.

Throws:
java.io.IOException

addUpdateFragmentBlock

public void addUpdateFragmentBlock(Block block)
                            throws java.io.IOException
Add an update fragment block.

Throws:
java.io.IOException