| java.lang.Object org.jasig.portal.concurrency.locking.RDBMEntityLockStore
RDBMEntityLockStore | public class RDBMEntityLockStore implements IEntityLockStore(Code) | | RDBMS-based store for IEntityLocks .
author: Dan Ellentuck version: $Revision: 35555 $ |
Method Summary | |
public void | add(IEntityLock lock) Adds the lock to the underlying store. | public void | delete(IEntityLock lock) If this IEntityLock exists, delete it. | public void | deleteAll() Delete all IEntityLocks from the underlying store. | public void | deleteExpired(Date expiration) Delete all expired IEntityLocks from the underlying store. | public void | deleteExpired(Date expiration, Class entityType, String entityKey) Delete IEntityLocks from the underlying store that have expired as of
expiration . | public void | deleteExpired(IEntityLock lock) Delete all expired IEntityLocks from the underlying store. | public IEntityLock[] | find(Class entityType, String entityKey, Integer lockType, Date expiration, String lockOwner) Retrieve IEntityLocks from the underlying store. | public IEntityLock[] | findUnexpired(Date expiration, Class entityType, String entityKey, Integer lockType, String lockOwner) Retrieve IEntityLocks from the underlying store. | public static synchronized IEntityLockStore | singleton() | public void | update(IEntityLock lock, java.util.Date newExpiration) | public void | update(IEntityLock lock, Date newExpiration, Integer newLockType) Updates the lock's expiration and lockType in the
underlying store. |
RDBMEntityLockStore | public RDBMEntityLockStore() throws LockingException(Code) | | RDBMEntityGroupStore constructor.
|
deleteAll | public void deleteAll() throws LockingException(Code) | | Delete all IEntityLocks from the underlying store.
|
deleteExpired | public void deleteExpired(Date expiration) throws LockingException(Code) | | Delete all expired IEntityLocks from the underlying store.
Parameters: expiration - |
deleteExpired | public void deleteExpired(Date expiration, Class entityType, String entityKey) throws LockingException(Code) | | Delete IEntityLocks from the underlying store that have expired as of
expiration . Params entityType and
entityKey are optional.
Parameters: expiration - java.util.Date Parameters: entityType - Class Parameters: entityKey - String |
deleteExpired | public void deleteExpired(IEntityLock lock) throws LockingException(Code) | | Delete all expired IEntityLocks from the underlying store.
Parameters: lock - IEntityLock |
find | public IEntityLock[] find(Class entityType, String entityKey, Integer lockType, Date expiration, String lockOwner) throws LockingException(Code) | | Retrieve IEntityLocks from the underlying store. Any or all of the parameters
may be null.
Parameters: entityType - Class Parameters: entityKey - String Parameters: lockType - Integer - so we can accept a null value. Parameters: expiration - Date Parameters: lockOwner - String exception: LockingException - - wraps an Exception specific to the store. |
findUnexpired | public IEntityLock[] findUnexpired(Date expiration, Class entityType, String entityKey, Integer lockType, String lockOwner) throws LockingException(Code) | | Retrieve IEntityLocks from the underlying store. Expiration must not be null.
Parameters: expiration - Date Parameters: entityType - Class Parameters: entityKey - String Parameters: lockType - Integer - so we can accept a null value. Parameters: lockOwner - String exception: LockingException - - wraps an Exception specific to the store. |
update | public void update(IEntityLock lock, Date newExpiration, Integer newLockType) throws LockingException(Code) | | Updates the lock's expiration and lockType in the
underlying store. Param lockType may be null.
Parameters: lock - Parameters: newExpiration - java.util.Date Parameters: newLockType - Integer |
|
|