Top Fields Constructors Methods
org.apache.derby.impl.store.access

pack-priv final Class RAMTransactionContext

extends ContextImpl
Class Inheritance
Imports
org.apache.derby.shared.common.error.ExceptionSeverity, .StandardException, org.apache.derby.iapi.services.context.ContextManager, .ContextImpl, org.apache.derby.shared.common.sanity.SanityManager

Field Summary

Modifier and TypeField and Description
private final boolean
abortAll

true if any exception causes this transaction to be destroyed

private RAMTransaction
transaction

The transaction this context is managing.

Constructor Summary

AccessConstructor and Description
pack-priv
RAMTransactionContext(ContextManager cm, String context_id, RAMTransaction theTransaction, boolean abortAll)

Method Summary

Modifier and TypeMethod and Description
public void
cleanupOnError(Throwable
The original error
error
)

Implements org.apache.derby.iapi.services.context.Context.cleanupOnError.

Handle cleanup processing for this context.

pack-priv RAMTransaction
pack-priv void
Inherited from org.apache.derby.iapi.services.context.ContextImpl:
appendErrorInfogetContextManagergetIdNameisLastHandlerpopMepushMe

Field Detail

abortAllback to summary
private final boolean abortAll

true if any exception causes this transaction to be destroyed

transactionback to summary
private RAMTransaction transaction

The transaction this context is managing.

Constructor Detail

RAMTransactionContextback to summary
pack-priv RAMTransactionContext(ContextManager cm, String context_id, RAMTransaction theTransaction, boolean abortAll) throws StandardException

Method Detail

cleanupOnErrorback to summary
public void cleanupOnError(Throwable error) throws StandardException

Implements org.apache.derby.iapi.services.context.Context.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.

Parameters
error:Throwable

Doc from org.apache.derby.iapi.services.context.Context.cleanupOnError.

The original error

Exceptions
StandardException:

Doc from org.apache.derby.iapi.services.context.Context.cleanupOnError.

thrown if cleanup goes awry

getTransactionback to summary
pack-priv RAMTransaction getTransaction()
setTransactionback to summary
pack-priv void setTransaction(RAMTransaction transaction)