C# Class Rebel.Framework.Persistence.NHibernate.NhProviderTransaction

Inheritance: Rebel.Hive.ProviderSupport.AbstractProviderTransaction
Mostra file Open project: RebelCMS/rebelcmsxu5 Class Usage Examples

Public Methods

Method Description
DecrementNestingLevel ( ) : void
EnsureBegun ( ) : void
GetTransactionId ( ) : string
IncrementNestingLevel ( ) : void
NhProviderTransaction ( global nhSession, bool isNestedInActiveTransaction = false ) : System

Protected Methods

Method Description
DisposeResources ( ) : void

Handles the disposal of resources. Derived from abstract class DisposableObject which handles common required locking logic.

GetNhTransaction ( bool autoBegin ) : ITransaction
PerformCommit ( ) : bool
PerformExplicitRollback ( ) : bool
PerformImplicitRollback ( ) : bool

If its implicit we don't do an explicit rollback on the NH transaction as it does it itself on disposal. Currently we're just going to returns false sinse we're never actually going to be doing anything and since we're also overriding the WasRolledback property, it doesn't really make any difference.

Private Methods

Method Description
Begin ( ) : void

Method Details

DecrementNestingLevel() public method

public DecrementNestingLevel ( ) : void
return void

DisposeResources() protected method

Handles the disposal of resources. Derived from abstract class DisposableObject which handles common required locking logic.
protected DisposeResources ( ) : void
return void

EnsureBegun() public method

public EnsureBegun ( ) : void
return void

GetNhTransaction() protected method

protected GetNhTransaction ( bool autoBegin ) : ITransaction
autoBegin bool
return ITransaction

GetTransactionId() public method

public GetTransactionId ( ) : string
return string

IncrementNestingLevel() public method

public IncrementNestingLevel ( ) : void
return void

NhProviderTransaction() public method

public NhProviderTransaction ( global nhSession, bool isNestedInActiveTransaction = false ) : System
nhSession global
isNestedInActiveTransaction bool
return System

PerformCommit() protected method

protected PerformCommit ( ) : bool
return bool

PerformExplicitRollback() protected method

protected PerformExplicitRollback ( ) : bool
return bool

PerformImplicitRollback() protected method

If its implicit we don't do an explicit rollback on the NH transaction as it does it itself on disposal. Currently we're just going to returns false sinse we're never actually going to be doing anything and since we're also overriding the WasRolledback property, it doesn't really make any difference.
protected PerformImplicitRollback ( ) : bool
return bool