org.apache.derbyTesting.unitTests.store
Class T_TWC
java.lang.Object
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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)
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
Apache Derby V10.6 Internals - Copyright © 2004,2008 The Apache Software Foundation. All Rights Reserved.