C# Class Spring.Transaction.Interceptor.RollbackRuleAttribute

Inheritance: System.Attribute
Datei anzeigen Open project: spring-projects/spring-net Class Usage Examples

Public Properties

Property Type Description
RollbackOnSystemExceptions RollbackRuleAttribute

Public Methods

Method Description
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.

Private Methods

Method Description
getDepth ( Type exceptionType, int depth ) : int

Method Details

Equals() public method

Strongly typed Equals() implementation.
public Equals ( RollbackRuleAttribute rollbackRuleAttribute ) : bool
rollbackRuleAttribute RollbackRuleAttribute /// The to compare. ///
return bool

Equals() public method

Override of System.Object.Equals(object).
public Equals ( object obj ) : bool
obj object The object to compare.
return bool

GetDepth() public method

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. ///
return int

GetDepth() public method

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. ///
return int

GetHashCode() public method

Override of System.Object.GetHashCode.
public GetHashCode ( ) : int
return int

RollbackRuleAttribute() public method

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. ///
return System

RollbackRuleAttribute() public method

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.
return System

ToString() public method

Returns a System.String representation of this instance.
public ToString ( ) : string
return string

Property Details

RollbackOnSystemExceptions public_oe static_oe property

Canonical instance representing default behavior for rolling back on all System.Exceptions.
public static RollbackRuleAttribute,Spring.Transaction.Interceptor RollbackOnSystemExceptions
return RollbackRuleAttribute