C# Class Spring.Transaction.Interceptor.TransactionAspectSupport

Inheritance: IInitializingObject
Afficher le fichier Open project: spring-projects/spring-net

Méthodes publiques

Méthode Description
AfterPropertiesSet ( ) : void

Checks that the required properties are set.

TransactionAspectSupport ( ) : System

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

Méthodes protégées

Méthode 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 méthode

Checks that the required properties are set.
public AfterPropertiesSet ( ) : void
Résultat void

CleanupTransactionInfo() protected méthode

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. ///
Résultat void

CommitTransactionAfterReturning() protected méthode

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. ///
Résultat void

CompleteTransactionAfterThrowing() protected méthode

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.
Résultat void

CreateTransactionIfNecessary() protected méthode

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

CreateTransactionIfNecessary() protected méthode

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
Résultat TransactionInfo

MethodIdentification() protected méthode

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

TransactionAspectSupport() public méthode

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