|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.concurrency.locking.RDBMEntityLockStore
public class RDBMEntityLockStore
RDBMS-based store for IEntityLocks.
| Constructor Summary | |
|---|---|
RDBMEntityLockStore()
RDBMEntityGroupStore constructor. |
|
| Method Summary | |
|---|---|
void |
add(IEntityLock lock)
Adds the lock to the underlying store. |
void |
delete(IEntityLock lock)
If this IEntityLock exists, delete it. |
void |
deleteAll()
Delete all IEntityLocks from the underlying store. |
void |
deleteExpired(Date expiration)
Delete all expired IEntityLocks from the underlying store. |
void |
deleteExpired(Date expiration,
Class entityType,
String entityKey)
Delete IEntityLocks from the underlying store that have expired as of expiration. |
void |
deleteExpired(IEntityLock lock)
Delete all expired IEntityLocks from the underlying store. |
IEntityLock[] |
find(Class entityType,
String entityKey,
Integer lockType,
Date expiration,
String lockOwner)
Retrieve IEntityLocks from the underlying store. |
IEntityLock[] |
findUnexpired(Date expiration,
Class entityType,
String entityKey,
Integer lockType,
String lockOwner)
Retrieve IEntityLocks from the underlying store. |
static IEntityLockStore |
singleton()
|
void |
update(IEntityLock lock,
Date newExpiration)
Updates the lock's expiration in the underlying store. |
void |
update(IEntityLock lock,
Date newExpiration,
Integer newLockType)
Updates the lock's expiration and lockType in the
underlying store. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RDBMEntityLockStore()
throws LockingException
LockingException| Method Detail |
|---|
public void add(IEntityLock lock)
throws LockingException
add in interface IEntityLockStorelock -
LockingException
public void delete(IEntityLock lock)
throws LockingException
delete in interface IEntityLockStorelock -
LockingException
public void deleteAll()
throws LockingException
deleteAll in interface IEntityLockStoreLockingException
public void deleteExpired(Date expiration)
throws LockingException
deleteExpired in interface IEntityLockStoreexpiration -
LockingException
public void deleteExpired(Date expiration,
Class entityType,
String entityKey)
throws LockingException
expiration. Params entityType and
entityKey are optional.
expiration - java.util.DateentityType - ClassentityKey - String
LockingException
public void deleteExpired(IEntityLock lock)
throws LockingException
lock - IEntityLock
LockingException
public IEntityLock[] find(Class entityType,
String entityKey,
Integer lockType,
Date expiration,
String lockOwner)
throws LockingException
find in interface IEntityLockStoreentityType - ClassentityKey - StringlockType - Integer - so we can accept a null value.expiration - DatelockOwner - String
LockingException - - wraps an Exception specific to the store.
public IEntityLock[] findUnexpired(Date expiration,
Class entityType,
String entityKey,
Integer lockType,
String lockOwner)
throws LockingException
findUnexpired in interface IEntityLockStoreexpiration - DateentityType - ClassentityKey - StringlockType - Integer - so we can accept a null value.lockOwner - String
LockingException - - wraps an Exception specific to the store.
public static IEntityLockStore singleton()
throws LockingException
LockingException
public void update(IEntityLock lock,
Date newExpiration)
throws LockingException
IEntityLockStoreexpiration in the underlying store.
update in interface IEntityLockStorelock - org.jasig.portal.groups.IEntityLocknewExpiration - java.util.Date
LockingException
public void update(IEntityLock lock,
Date newExpiration,
Integer newLockType)
throws LockingException
expiration and lockType in the
underlying store. Param lockType may be null.
update in interface IEntityLockStorelock - newExpiration - java.util.DatenewLockType - Integer
LockingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||