C# Класс Rebel.Framework.Persistence.NHibernate.NhProviderTransaction

Наследование: Rebel.Hive.ProviderSupport.AbstractProviderTransaction
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
DecrementNestingLevel ( ) : void
EnsureBegun ( ) : void
GetTransactionId ( ) : string
IncrementNestingLevel ( ) : void
NhProviderTransaction ( global nhSession, bool isNestedInActiveTransaction = false ) : System

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
Begin ( ) : void

Описание методов

DecrementNestingLevel() публичный Метод

public DecrementNestingLevel ( ) : void
Результат void

DisposeResources() защищенный Метод

Handles the disposal of resources. Derived from abstract class DisposableObject which handles common required locking logic.
protected DisposeResources ( ) : void
Результат void

EnsureBegun() публичный Метод

public EnsureBegun ( ) : void
Результат void

GetNhTransaction() защищенный Метод

protected GetNhTransaction ( bool autoBegin ) : ITransaction
autoBegin bool
Результат ITransaction

GetTransactionId() публичный Метод

public GetTransactionId ( ) : string
Результат string

IncrementNestingLevel() публичный Метод

public IncrementNestingLevel ( ) : void
Результат void

NhProviderTransaction() публичный Метод

public NhProviderTransaction ( global nhSession, bool isNestedInActiveTransaction = false ) : System
nhSession global
isNestedInActiveTransaction bool
Результат System

PerformCommit() защищенный Метод

protected PerformCommit ( ) : bool
Результат bool

PerformExplicitRollback() защищенный Метод

protected PerformExplicitRollback ( ) : bool
Результат bool

PerformImplicitRollback() защищенный Метод

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
Результат bool