Class RAMTransactionContext
java.lang.Object
org.apache.derby.iapi.services.context.ContextImpl
org.apache.derby.impl.store.access.RAMTransactionContext
- All Implemented Interfaces:
Context
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
true if any exception causes this transaction to be destroyedprivate RAMTransaction
The transaction this context is managing. -
Constructor Summary
ConstructorsConstructorDescriptionRAMTransactionContext
(ContextManager cm, String context_id, RAMTransaction theTransaction, boolean abortAll) -
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanupOnError
(Throwable error) Handle cleanup processing for this context.(package private) RAMTransaction
(package private) void
setTransaction
(RAMTransaction transaction) Methods inherited from class org.apache.derby.iapi.services.context.ContextImpl
appendErrorInfo, getContextManager, getIdName, isLastHandler, popMe, pushMe
-
Field Details
-
transaction
The transaction this context is managing. -
abortAll
private final boolean abortAlltrue if any exception causes this transaction to be destroyed
-
-
Constructor Details
-
RAMTransactionContext
RAMTransactionContext(ContextManager cm, String context_id, RAMTransaction theTransaction, boolean abortAll) throws StandardException - Throws:
StandardException
-
-
Method Details
-
cleanupOnError
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
-