Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

TransactionAttribute Class

.NET Attribute for describing transactional behavior of methods in a class.

For a list of all members of this type, see TransactionAttribute Members .


[Visual Basic]
<Serializable> _
<AttributeUsage(ValidOn:=(AttributeTargets.Class Or AttributeTargets.Method), AllowMultiple:=False, Inherited:=True)> _
Public Class TransactionAttribute
    Inherits Attribute
[AttributeUsage(ValidOn=(AttributeTargets.Class|AttributeTargets.Method), AllowMultiple=False, Inherited=True)]
public class TransactionAttribute : Attribute

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.


This attribute type is generally directly comparable to Spring's RuleBasedTransactionAttribute class and in fact AttributesTransactionAttributeSource will directly convert the data to a RuleBasedTransactionAttribute so that Spring's transaction support code does not have to know about attributes. If no rules are relevant to the exception it will be treaded like DefaultTransactionAttribute, (rolling back on all exceptions).

The default property values are TransactionPropagation.Required, IsolationLevel.ReadCommitted, DefaultTransactionDefinition.TIMEOUT_DEFAULT (can be changed, by default is the default value of the underlying transaction subsystem) ReadOnly = false, and Type.EmtptyTypes specified for Rollbackfor and NoRollbackFor exception types.


Namespace: Spring.Transaction.Interceptor

Assembly: Spring.Data (in Spring.Data.dll)

See Also

TransactionAttribute Members | Spring.Transaction.Interceptor Namespace