C# Class Spring.Transaction.Interceptor.TransactionAspectSupport

Inheritance: IInitializingObject
Datei anzeigen Open project: spring-projects/spring-net

Public Methods

Method Description
AfterPropertiesSet ( ) : void

Checks that the required properties are set.

TransactionAspectSupport ( ) : System

Creates a new instance of the Spring.Transaction.Interceptor.TransactionAspectSupport class.

Protected Methods

Method Description
CleanupTransactionInfo ( TransactionInfo transactionInfo ) : void

Resets the Spring.Transaction.Interceptor.TransactionAspectSupport.TransactionInfo for this thread.

Call this in all cases: exceptions or normal return.

CommitTransactionAfterReturning ( TransactionInfo transactionInfo ) : void

Execute after the successful completion of call, but not after an exception was handled.

Do nothing if we didn't create a transaction.

CompleteTransactionAfterThrowing ( TransactionInfo transactionInfo, Exception exception ) : void

Handle a exception, closing out the transaction.

We may commit or roll back, depending on our configuration.

CreateTransactionIfNecessary ( ITransactionAttribute sourceAttr, string joinpointIdentification ) : TransactionInfo

Creates the transaction if necessary.

CreateTransactionIfNecessary ( MethodInfo method, Type targetType ) : TransactionInfo

Create a transaction if necessary

MethodIdentification ( MethodInfo methodInfo ) : string

Identifies the method by providing the qualfied method name.

Method Details

AfterPropertiesSet() public method

Checks that the required properties are set.
public AfterPropertiesSet ( ) : void
return void

CleanupTransactionInfo() protected method

Resets the Spring.Transaction.Interceptor.TransactionAspectSupport.TransactionInfo for this thread.
Call this in all cases: exceptions or normal return.
protected CleanupTransactionInfo ( TransactionInfo transactionInfo ) : void
transactionInfo TransactionInfo /// The /// /// about the current transaction. May be null. ///
return void

CommitTransactionAfterReturning() protected method

Execute after the successful completion of call, but not after an exception was handled.

Do nothing if we didn't create a transaction.

protected CommitTransactionAfterReturning ( TransactionInfo transactionInfo ) : void
transactionInfo TransactionInfo /// The /// /// about the current transaction. ///
return void

CompleteTransactionAfterThrowing() protected method

Handle a exception, closing out the transaction.

We may commit or roll back, depending on our configuration.

protected CompleteTransactionAfterThrowing ( TransactionInfo transactionInfo, Exception exception ) : void
transactionInfo TransactionInfo /// The /// /// about the current transaction. ///
exception System.Exception The encountered.
return void

CreateTransactionIfNecessary() protected method

Creates the transaction if necessary.
protected CreateTransactionIfNecessary ( ITransactionAttribute sourceAttr, string joinpointIdentification ) : TransactionInfo
sourceAttr ITransactionAttribute The source transaction attribute.
joinpointIdentification string The joinpoint identification.
return TransactionInfo

CreateTransactionIfNecessary() protected method

Create a transaction if necessary
protected CreateTransactionIfNecessary ( MethodInfo method, Type targetType ) : TransactionInfo
method MethodInfo Method about to execute
targetType System.Type Type that the method is on
return TransactionInfo

MethodIdentification() protected method

Identifies the method by providing the qualfied method name.
protected MethodIdentification ( MethodInfo methodInfo ) : string
methodInfo MethodInfo The method info.
return string

TransactionAspectSupport() public method

Creates a new instance of the Spring.Transaction.Interceptor.TransactionAspectSupport class.
public TransactionAspectSupport ( ) : System
return System