C# Класс Spring.Transaction.Interceptor.TransactionAspectSupport

Наследование: IInitializingObject
Показать файл Открыть проект

Открытые методы

Метод Описание
AfterPropertiesSet ( ) : void

Checks that the required properties are set.

TransactionAspectSupport ( ) : System

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

Защищенные методы

Метод Описание
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.

Описание методов

AfterPropertiesSet() публичный Метод

Checks that the required properties are set.
public AfterPropertiesSet ( ) : void
Результат void

CleanupTransactionInfo() защищенный Метод

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. ///
Результат void

CommitTransactionAfterReturning() защищенный Метод

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. ///
Результат void

CompleteTransactionAfterThrowing() защищенный Метод

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.
Результат void

CreateTransactionIfNecessary() защищенный Метод

Creates the transaction if necessary.
protected CreateTransactionIfNecessary ( ITransactionAttribute sourceAttr, string joinpointIdentification ) : TransactionInfo
sourceAttr ITransactionAttribute The source transaction attribute.
joinpointIdentification string The joinpoint identification.
Результат TransactionInfo

CreateTransactionIfNecessary() защищенный Метод

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
Результат TransactionInfo

MethodIdentification() защищенный Метод

Identifies the method by providing the qualfied method name.
protected MethodIdentification ( MethodInfo methodInfo ) : string
methodInfo MethodInfo The method info.
Результат string

TransactionAspectSupport() публичный Метод

Creates a new instance of the Spring.Transaction.Interceptor.TransactionAspectSupport class.
public TransactionAspectSupport ( ) : System
Результат System