Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractPlatformTransactionManager.IsExistingTransaction Method

Check if the given transaction object indicates an existing transaction (that is, a transaction which has already started).

[Visual Basic]
Protected Overridable Sub IsExistingTransaction( _
   ByVal transaction As Object _
)
[C#]
protected virtual bool IsExistingTransaction(
   object transaction
);

Parameters

transaction
Transaction object returned by DoGetTransaction.

Return Value

True if there is an existing transaction.

Remarks

The result will be evaluated according to the specified propagation behavior for the new transaction. An existing transaction might get suspended (in case of PROPAGATION_REQUIRES_NEW), or the new transaction might participate in the existing one (in case of PROPAGATION_REQUIRED). Default implementation returns false, assuming that detection of or participating in existing transactions is generally not supported. Subclasses are of course encouraged to provide such support.

Exceptions

Exception Type Condition
TransactionException In the case of system errors.

See Also

AbstractPlatformTransactionManager Class | Spring.Transaction.Support Namespace