org.apache.derbyTesting.unitTests.store
Class T_TWC

java.lang.Object
  extended by org.apache.derbyTesting.unitTests.store.T_TWC

public class T_TWC
extends java.lang.Object

Transaction with context, a utility class for tests to create multiple interleaving transactions.


Field Summary
protected  org.apache.derby.iapi.services.context.ContextManager cm
           
protected  org.apache.derby.iapi.services.context.ContextService contextService
           
protected  org.apache.derby.iapi.services.locks.LockFactory lf
           
protected  org.apache.derby.iapi.store.raw.RawStoreFactory rawStore
           
protected  org.apache.derby.iapi.store.raw.Transaction tran
           
 
Constructor Summary
T_TWC(org.apache.derby.iapi.services.context.ContextService contextService, org.apache.derby.iapi.services.locks.LockFactory lockFactory, org.apache.derby.iapi.store.raw.RawStoreFactory rawStoreFactory)
           
 
Method Summary
 void abort()
           
 void checkNullLockCount()
           
 void commit()
           
 org.apache.derby.iapi.store.raw.GlobalTransactionId getId()
           
 void logAndDo(org.apache.derby.iapi.store.raw.Loggable l)
           
 void resetContext()
           
 void rollbackToSavePoint(java.lang.String sp, java.lang.Object kindOfSavepoint)
           
 void setSavePoint(java.lang.String sp, java.lang.Object kindOfSavepoint)
           
 T_TWC startUserTransaction()
           
 void switchTransactionContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tran

protected org.apache.derby.iapi.store.raw.Transaction tran

cm

protected org.apache.derby.iapi.services.context.ContextManager cm

contextService

protected org.apache.derby.iapi.services.context.ContextService contextService

lf

protected org.apache.derby.iapi.services.locks.LockFactory lf

rawStore

protected org.apache.derby.iapi.store.raw.RawStoreFactory rawStore
Constructor Detail

T_TWC

public T_TWC(org.apache.derby.iapi.services.context.ContextService contextService,
             org.apache.derby.iapi.services.locks.LockFactory lockFactory,
             org.apache.derby.iapi.store.raw.RawStoreFactory rawStoreFactory)
Method Detail

startUserTransaction

public T_TWC startUserTransaction()
                           throws org.apache.derby.iapi.error.StandardException
Throws:
org.apache.derby.iapi.error.StandardException

checkNullLockCount

public void checkNullLockCount()

setSavePoint

public void setSavePoint(java.lang.String sp,
                         java.lang.Object kindOfSavepoint)
                  throws org.apache.derby.iapi.error.StandardException
Throws:
org.apache.derby.iapi.error.StandardException

rollbackToSavePoint

public void rollbackToSavePoint(java.lang.String sp,
                                java.lang.Object kindOfSavepoint)
                         throws org.apache.derby.iapi.error.StandardException
Throws:
org.apache.derby.iapi.error.StandardException

switchTransactionContext

public void switchTransactionContext()

resetContext

public void resetContext()

logAndDo

public void logAndDo(org.apache.derby.iapi.store.raw.Loggable l)
              throws org.apache.derby.iapi.error.StandardException
Throws:
org.apache.derby.iapi.error.StandardException

commit

public void commit()
            throws org.apache.derby.iapi.error.StandardException
Throws:
org.apache.derby.iapi.error.StandardException

abort

public void abort()
           throws org.apache.derby.iapi.error.StandardException
Throws:
org.apache.derby.iapi.error.StandardException

getId

public org.apache.derby.iapi.store.raw.GlobalTransactionId getId()
                                                          throws org.apache.derby.iapi.error.StandardException
Throws:
org.apache.derby.iapi.error.StandardException

Built on Sat 2009-11-28 18:44:18-0800, from revision 885187

Apache Derby V10.6 Internals - Copyright © 2004,2008 The Apache Software Foundation. All Rights Reserved.