|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasig.portal.concurrency.locking.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(java.util.Date expiration)
Delete all expired IEntityLocks from the underlying store. |
void |
deleteExpired(java.util.Date expiration,
java.lang.Class entityType,
java.lang.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(java.lang.Class entityType,
java.lang.String entityKey,
java.lang.Integer lockType,
java.util.Date expiration,
java.lang.String lockOwner)
Retrieve IEntityLocks from the underlying store. |
IEntityLock[] |
findUnexpired(java.util.Date expiration,
java.lang.Class entityType,
java.lang.String entityKey,
java.lang.Integer lockType,
java.lang.String lockOwner)
Retrieve IEntityLocks from the underlying store. |
static IEntityLockStore |
singleton()
|
void |
update(IEntityLock lock,
java.util.Date newExpiration)
Updates the lock's expiration in the underlying store. |
void |
update(IEntityLock lock,
java.util.Date newExpiration,
java.lang.Integer newLockType)
Updates the lock's expiration and lockType in the
underlying store. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RDBMEntityLockStore() throws LockingException
Method Detail |
public void add(IEntityLock lock) throws LockingException
add
in interface IEntityLockStore
lock
-
LockingException
public void delete(IEntityLock lock) throws LockingException
delete
in interface IEntityLockStore
lock
-
LockingException
public void deleteAll() throws LockingException
deleteAll
in interface IEntityLockStore
LockingException
public void deleteExpired(java.util.Date expiration) throws LockingException
deleteExpired
in interface IEntityLockStore
expiration
-
LockingException
public void deleteExpired(java.util.Date expiration, java.lang.Class entityType, java.lang.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(java.lang.Class entityType, java.lang.String entityKey, java.lang.Integer lockType, java.util.Date expiration, java.lang.String lockOwner) throws LockingException
find
in interface IEntityLockStore
entityType
- ClassentityKey
- StringlockType
- Integer - so we can accept a null value.expiration
- DatelockOwner
- String
LockingException
- - wraps an Exception specific to the store.public IEntityLock[] findUnexpired(java.util.Date expiration, java.lang.Class entityType, java.lang.String entityKey, java.lang.Integer lockType, java.lang.String lockOwner) throws LockingException
findUnexpired
in interface IEntityLockStore
expiration
- 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, java.util.Date newExpiration) throws LockingException
IEntityLockStore
expiration
in the underlying store.
update
in interface IEntityLockStore
lock
- org.jasig.portal.groups.IEntityLocknewExpiration
- java.util.Date
LockingException
public void update(IEntityLock lock, java.util.Date newExpiration, java.lang.Integer newLockType) throws LockingException
expiration
and lockType
in the
underlying store. Param lockType
may be null.
update
in interface IEntityLockStore
lock
- newExpiration
- java.util.DatenewLockType
- Integer
LockingException
|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |