NPersistence Reference Guide
Overload List
Name | Description |
---|---|
Lock(Object, LockModeType) | Lock an entity instance that is contained in the persistence
context with the specified lock mode type.
If a pessimistic lock mode type is specified and the entity
contains a version attribute, the persistence provider must
also perform optimistic version checks when obtaining the
database lock. If these checks fail, the
OptimisticLockException will be thrown.
If the lock mode type is pessimistic and the entity instance
is found but cannot be locked:
|
Lock(Object, LockModeType, Dictionary<(Of <<'(String, Object>)>>)) | Lock an entity instance that is contained in the persistence
context with the specified lock mode type and with specified
properties.
If a pessimistic lock mode type is specified and the entity
contains a version attribute, the persistence provider must
also perform optimistic version checks when obtaining the
database lock. If these checks fail, the
OptimisticLockException will be thrown.
If the lock mode type is pessimistic and the entity instance
is found but cannot be locked:
|