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

Inheritance: Rebel.Hive.ProviderSupport.AbstractProviderTransaction
Afficher le fichier Open project: RebelCMS/rebelcmsxu5 Class Usage Examples

Méthodes publiques

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

Méthodes protégées

Méthode 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

Méthode Description
Begin ( ) : void

Method Details

DecrementNestingLevel() public méthode

public DecrementNestingLevel ( ) : void
Résultat void

DisposeResources() protected méthode

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

EnsureBegun() public méthode

public EnsureBegun ( ) : void
Résultat void

GetNhTransaction() protected méthode

protected GetNhTransaction ( bool autoBegin ) : ITransaction
autoBegin bool
Résultat ITransaction

GetTransactionId() public méthode

public GetTransactionId ( ) : string
Résultat string

IncrementNestingLevel() public méthode

public IncrementNestingLevel ( ) : void
Résultat void

NhProviderTransaction() public méthode

public NhProviderTransaction ( global nhSession, bool isNestedInActiveTransaction = false ) : System
nhSession global
isNestedInActiveTransaction bool
Résultat System

PerformCommit() protected méthode

protected PerformCommit ( ) : bool
Résultat bool

PerformExplicitRollback() protected méthode

protected PerformExplicitRollback ( ) : bool
Résultat bool

PerformImplicitRollback() protected méthode

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
Résultat bool