C# 클래스 Spring.Transaction.Interceptor.TransactionAspectSupport

상속: IInitializingObject
파일 보기 프로젝트 열기: spring-projects/spring-net

공개 메소드들

메소드 설명
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