@Entity public class PessimisticLock extends PersistableBusinessObjectBase
| Modifier and Type | Field and Description | 
|---|---|
| static String | DEFAULT_LOCK_DESCRIPTOR | 
extension, versionNumber| Constructor and Description | 
|---|
| PessimisticLock()Deprecated.   | 
| PessimisticLock(String documentNumber,
                              String lockDescriptor,
                              Person user,
                              UserSession userSession)This constructs a lock object using the logged in user and given lock type | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getDocumentNumber() | 
| Timestamp | getGeneratedTimestamp() | 
| Long | getId() | 
| String | getLockDescriptor() | 
| String | getOwnedByPrincipalIdentifier() | 
| Person | getOwnedByUser() | 
| String | getSessionId() | 
| boolean | isOwnedByUser(Person user) | 
| void | setDocumentNumber(String documentNumber) | 
| void | setGeneratedTimestamp(Timestamp generatedTimestamp) | 
| void | setId(Long id) | 
| void | setLockDescriptor(String lockDescriptor) | 
| void | setOwnedByPrincipalIdentifier(String ownedByPrincipalIdentifier) | 
| void | setOwnedByUser(Person ownedByUser) | 
| void | setSessionId(String sessionId) | 
afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, buildListOfDeletionAwareLists, getExtension, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isNewCollectionRecord, linkEditableUserFields, postLoad, postPersist, postRemove, postUpdate, prePersist, preRemove, preUpdate, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumbertoStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittoStringpublic static final String DEFAULT_LOCK_DESCRIPTOR
@Deprecated public PessimisticLock()
public PessimisticLock(String documentNumber, String lockDescriptor, Person user, UserSession userSession)
public boolean isOwnedByUser(Person user)
public String getOwnedByPrincipalIdentifier()
public void setOwnedByPrincipalIdentifier(String ownedByPrincipalIdentifier)
ownedByPrincipalIdentifier - the ownedByPrincipalIdentifier to setpublic String getLockDescriptor()
public void setLockDescriptor(String lockDescriptor)
lockDescriptor - the lockDescriptor to setpublic Timestamp getGeneratedTimestamp()
public void setGeneratedTimestamp(Timestamp generatedTimestamp)
generatedTimestamp - the generatedTimestamp to setpublic String getDocumentNumber()
public void setDocumentNumber(String documentNumber)
documentNumber - the documentNumber to setpublic String getSessionId()
public void setSessionId(String sessionId)
sessionId - the sessionId to setpublic Person getOwnedByUser()
public void setOwnedByUser(Person ownedByUser)
ownedByUser - the ownedByUser to setCopyright © 2005-2015 The Kuali Foundation. All Rights Reserved.