DefaultLockHandler.php
getSessionLocks()
Get the Lock instances stored in the session.
Definition: DefaultLockHandler.php:245
setCurrentState($currentState)
Set the original state of the object in case of an optimistic lock.
Definition: Lock.php:84
releaseLock(ObjectId $oid, $type=null)
Definition: DefaultLockHandler.php:100
ObjectQuery implements a template based object query.
Definition: ObjectQuery.php:104
updateLock(ObjectId $oid, PersistentObject $object)
Definition: DefaultLockHandler.php:200
static asValue($operator, $value)
Factory method for constructing a Critera that may be used as value on a PersistentObject's attribute...
Definition: Criteria.php:58
releaseLocks(ObjectId $oid)
Definition: DefaultLockHandler.php:122
ObjectId is the unique identifier of an object.
Definition: ObjectId.php:27
__construct(PersistenceFacade $persistenceFacade, Session $session, $lockType)
Constructor.
Definition: DefaultLockHandler.php:48
getLock(ObjectId $oid)
Definition: DefaultLockHandler.php:159
storeLock(Lock $lock)
Store the given Lock instance for later retrieval.
Definition: DefaultLockHandler.php:217
aquireLock(ObjectId $oid, $type, PersistentObject $currentState=null)
Definition: DefaultLockHandler.php:62
Session is the interface for session implementations and defines access to session variables...
Definition: Session.php:21
addSessionLock(Lock $lock)
Add a given Lock instance to the session.
Definition: DefaultLockHandler.php:256
const SESSION_VARNAME
Definition: DefaultLockHandler.php:34
LockHandler defines the interface for LockHandler implementations.
Definition: LockHandler.php:21
removeSessionLock(ObjectId $oid, $type)
Remove a given Lock instance from the session.
Definition: DefaultLockHandler.php:267
releaseAllLocks()
Definition: DefaultLockHandler.php:138
PessimisticLockException signals an exception when trying to create an pessimistic lock...
Definition: PessimisticLockException.php:21
PersistenceFacade defines the interface for PersistenceFacade implementations.
Definition: PersistenceFacade.php:23
DefaultLockHandler implements the LockHandler interface for relational databases. ...
Definition: DefaultLockHandler.php:32
PersistentObject defines the interface of all persistent objects.
Definition: PersistentObject.php:24