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

Наследование: System.Attribute
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
RollbackOnSystemExceptions RollbackRuleAttribute

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

Метод Описание
Equals ( RollbackRuleAttribute rollbackRuleAttribute ) : bool

Strongly typed Equals() implementation.

Equals ( object obj ) : bool

Override of System.Object.Equals(object).

GetDepth ( Type exceptionType ) : int

Return the depth to the matching superclass execption System.Type.

A return value of 0 means that the exceptionType matches.

GetDepth ( object exception ) : int

Return the depth to the matching superclass execption System.Type.

A return value of 0 means that the exceptions System.Type matches.

GetHashCode ( ) : int

Override of System.Object.GetHashCode.

RollbackRuleAttribute ( Type exceptionType ) : System

Creates a new instance of the Spring.Transaction.Interceptor.RollbackRuleAttribute class for the suplied exceptionType.

The exception class must be System.Exception or a subclass.

This is the preferred way to construct a Spring.Transaction.Interceptor.RollbackRuleAttribute, matching the exception class and subclasses.

RollbackRuleAttribute ( string exceptionName ) : System

Creates a new instance of the Spring.Transaction.Interceptor.RollbackRuleAttribute class for the named exceptionName.

As always, the exceptionName should be the full assembly qualified version.

ToString ( ) : string

Returns a System.String representation of this instance.

Приватные методы

Метод Описание
getDepth ( Type exceptionType, int depth ) : int

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

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

Strongly typed Equals() implementation.
public Equals ( RollbackRuleAttribute rollbackRuleAttribute ) : bool
rollbackRuleAttribute RollbackRuleAttribute /// The to compare. ///
Результат bool

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

Override of System.Object.Equals(object).
public Equals ( object obj ) : bool
obj object The object to compare.
Результат bool

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

Return the depth to the matching superclass execption System.Type.
A return value of 0 means that the exceptionType matches.
public GetDepth ( Type exceptionType ) : int
exceptionType System.Type /// The of exception to find. ///
Результат int

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

Return the depth to the matching superclass execption System.Type.
A return value of 0 means that the exceptions System.Type matches.
public GetDepth ( object exception ) : int
exception object /// The exception object to find. ///
Результат int

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

Override of System.Object.GetHashCode.
public GetHashCode ( ) : int
Результат int

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

Creates a new instance of the Spring.Transaction.Interceptor.RollbackRuleAttribute class for the suplied exceptionType.

The exception class must be System.Exception or a subclass.

This is the preferred way to construct a Spring.Transaction.Interceptor.RollbackRuleAttribute, matching the exception class and subclasses.

public RollbackRuleAttribute ( Type exceptionType ) : System
exceptionType System.Type /// The class that will trigger a rollback. ///
Результат System

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

Creates a new instance of the Spring.Transaction.Interceptor.RollbackRuleAttribute class for the named exceptionName.

As always, the exceptionName should be the full assembly qualified version.

public RollbackRuleAttribute ( string exceptionName ) : System
exceptionName string The exception name.
Результат System

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

Returns a System.String representation of this instance.
public ToString ( ) : string
Результат string

Описание свойств

RollbackOnSystemExceptions публичное статическое свойство

Canonical instance representing default behavior for rolling back on all System.Exceptions.
public static RollbackRuleAttribute,Spring.Transaction.Interceptor RollbackOnSystemExceptions
Результат RollbackRuleAttribute