com.caucho.db.xa
Class RawTransaction

java.lang.Object
  extended by com.caucho.db.xa.StoreTransaction
      extended by com.caucho.db.xa.RawTransaction

public class RawTransaction
extends StoreTransaction

Represents a raw-single transaction.


Method Summary
 void addUpdateBlock(Block block)
          Adds an update block
static RawTransaction create()
           
 Block createAutoCommitWriteBlock(Block block)
          Returns a modified block.
 Block createWriteBlock(Block block)
          Returns a modified block.
 Block readBlock(BlockStore store, long blockAddress)
          Returns a read block.
 
Methods inherited from class com.caucho.db.xa.StoreTransaction
addUpdateFragmentBlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static RawTransaction create()

readBlock

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

Specified by:
readBlock in class StoreTransaction
Throws:
java.io.IOException

createWriteBlock

public Block createWriteBlock(Block block)
                       throws java.io.IOException
Returns a modified block.

Throws:
java.io.IOException

addUpdateBlock

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

Specified by:
addUpdateBlock in class StoreTransaction
Throws:
java.io.IOException

createAutoCommitWriteBlock

public Block createAutoCommitWriteBlock(Block block)
                                 throws java.io.IOException
Returns a modified block.

Throws:
java.io.IOException