Namespaces

Types

Type LockMode

Namespace NHibernate

Methods

Fields

Public instance methods

bool Equals(object obj)

Parameters
return bool
object obj

int GetHashCode()

Parameters
return int

Type GetType()

Parameters
return Type

bool GreaterThan(LockMode mode)

Is this lock mode more restrictive than the given lock mode?
Parameters
return bool
LockMode mode

bool LessThan(LockMode mode)

Is this lock mode less restrictive than the given lock mode?
Parameters
return bool
LockMode mode

string ToString()

Parameters
return string

Public fields

LockMode None

No lock required.
If an object is requested with this lock mode, a Read lock might be obtained if necessary.
return LockMode

LockMode Read

A shared lock.
Objects are loaded in Read mode by default
return LockMode

LockMode Upgrade

An upgrade lock.
Objects loaded in this lock mode are materialized using an SQL SELECT ... FOR UPDATE
return LockMode

LockMode UpgradeNoWait

Attempty to obtain an upgrade lock, using an Oracle-style SELECT ... FOR UPGRADE NOWAIT .
The semantics of this lock mode, once obtained, are the same as Upgrade
return LockMode

LockMode Write

A Write lock is obtained when an object is updated or inserted.
This is not a valid mode for Load() or Lock() .
return LockMode