| java.lang.Object org.jasig.portal.concurrency.locking.EntityLockImpl
EntityLockImpl | public class EntityLockImpl implements IEntityLock(Code) | | An implementation of IEntityLock. A lock is granted to a
lockOwner for an entityType and
entityKey . It guarantees some degree of exclusive
access to the entity, depending on lockType and
expirationTime .
author: Dan Ellentuck version: $Revision: 34757 $ See Also: org.jasig.portal.concurrency.IEntityLock |
EntityLockImpl | protected EntityLockImpl(Class newEntityType, String newEntityKey, int newLockType, Date newExpirationTime, String newLockOwner)(Code) | | |
equals | public boolean equals(Object obj)(Code) | | Parameters: obj - the Object to compare with true if these Objects are equal; false otherwise. See Also: java.util.Hashtable |
expire | protected void expire()(Code) | | |
getEntityKey | public String getEntityKey()(Code) | | java.lang.String |
getExpirationTime | public Date getExpirationTime()(Code) | | java.util.Date |
getLockOwner | public String getLockOwner()(Code) | | Could be the portal user or the framework or ...?
java.lang.String |
getLockType | public int getLockType()(Code) | | See IEntityLockingService for a description of lock types.
int |
hashCode | public int hashCode()(Code) | | This method is supported primarily for hash tables, such as those provided in java.util.
an integer hash code for the receiver See Also: java.util.Hashtable |
isLocked | public boolean isLocked()(Code) | | Answer if the lock is unexpired.
boolean |
setExpirationTime | void setExpirationTime(Date newExpirationTime)(Code) | | Parameters: newExpirationTime - |
setLockType | void setLockType(int newLockType)(Code) | | Parameters: newLockType - |
toString | public String toString()(Code) | | Returns a String that represents the value of this object.
a string representation of the receiver |
|
|