DefaultLockHandler.php
Session is the interface for session implementations and defines access to session variables.
Definition: Session.php:19
addSessionLock(Lock $lock)
Add a given Lock instance to the session.
Definition: DefaultLockHandler.php:248
releaseLock(ObjectId $oid, $type=null)
Definition: DefaultLockHandler.php:97
const SESSION_VARNAME
Definition: DefaultLockHandler.php:34
removeSessionLock(ObjectId $oid, $type)
Remove a given Lock instance from the session.
Definition: DefaultLockHandler.php:259
PessimisticLockException signals an exception when trying to create an pessimistic lock.
Definition: PessimisticLockException.php:21
static asValue($operator, $value)
Factory method for constructing a Criteria that may be used as value on a PersistentObject's attribut...
Definition: Criteria.php:58
Criteria defines a condition on a PersistentObject's attribute used to select specific instances.
Definition: Criteria.php:21
ObjectId is the unique identifier of an object.
Definition: ObjectId.php:28
LockHandler defines the interface for LockHandler implementations.
Definition: LockHandler.php:21
BuildDepth values are used to define the depth when loading object trees.
Definition: BuildDepth.php:19
removeSessonLocks()
Remove all Lock instances from the session.
Definition: DefaultLockHandler.php:273
storeLock(Lock $lock)
Store the given Lock instance for later retrieval.
Definition: DefaultLockHandler.php:209
DefaultLockHandler implements the LockHandler interface for relational databases.
Definition: DefaultLockHandler.php:32
releaseLocks(ObjectId $oid)
Definition: DefaultLockHandler.php:116
aquireLock(ObjectId $oid, $type, PersistentObject $currentState=null)
Definition: DefaultLockHandler.php:62
PersistenceFacade defines the interface for PersistenceFacade implementations.
Definition: PersistenceFacade.php:23
updateLock(ObjectId $oid, PersistentObject $object)
Definition: DefaultLockHandler.php:192
getLock(ObjectId $oid)
Definition: DefaultLockHandler.php:151
__construct(PersistenceFacade $persistenceFacade, Session $session, $lockType)
Constructor.
Definition: DefaultLockHandler.php:48
getSessionLocks()
Get the Lock instances stored in the session.
Definition: DefaultLockHandler.php:237
PersistentObject defines the interface of all persistent objects.
Definition: PersistentObject.php:23
releaseAllLocks()
Definition: DefaultLockHandler.php:132
LogManager is used to retrieve Logger instances.
Definition: LogManager.php:20
ObjectQuery implements a template based object query.
Definition: ObjectQuery.php:106