org.apache.derby.impl.store.access
Class RAMTransactionContext

java.lang.Object
  extended byorg.apache.derby.iapi.services.context.ContextImpl
      extended byorg.apache.derby.impl.store.access.RAMTransactionContext
All Implemented Interfaces:
Context

public class RAMTransactionContext
extends ContextImpl


Field Summary
private  boolean abortAll
          true if any exception causes this transaction to be destroyed
protected  RAMTransaction transaction
          The transaction this context is managing.
 
Fields inherited from class org.apache.derby.iapi.services.context.ContextImpl
 
Constructor Summary
RAMTransactionContext(ContextManager cm, java.lang.String context_id, RAMTransaction theTransaction, boolean abortAll)
           
 
Method Summary
 void cleanupOnError(java.lang.Throwable error)
          Handle cleanup processing for this context.
(package private)  RAMTransaction getTransaction()
           
(package private)  void setTransaction(RAMTransaction transaction)
           
 
Methods inherited from class org.apache.derby.iapi.services.context.ContextImpl
appendErrorInfo, getContextManager, getIdName, isLastHandler, popMe, pushMe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

transaction

protected RAMTransaction transaction
The transaction this context is managing.


abortAll

private boolean abortAll
true if any exception causes this transaction to be destroyed

Constructor Detail

RAMTransactionContext

public RAMTransactionContext(ContextManager cm,
                             java.lang.String context_id,
                             RAMTransaction theTransaction,
                             boolean abortAll)
                      throws StandardException
Method Detail

cleanupOnError

public void cleanupOnError(java.lang.Throwable error)
                    throws StandardException
Handle cleanup processing for this context. The resources associated with a transaction are the open controllers. Cleanup involves closing them at the appropriate time. Rollback of the underlying transaction is handled by the raw store.

Throws:
StandardException - thrown if cleanup goes awry

getTransaction

RAMTransaction getTransaction()

setTransaction

void setTransaction(RAMTransaction transaction)

Built on Tue 2006-10-10 19:23:47+0200, from revision exported

Apache Derby V10.1 Engine Documentation - Copyright © 1997,2005 The Apache Software Foundation or its licensors, as applicable.