@Entity public class PessimisticLock extends PersistableBusinessObjectBaseAdapter implements BusinessObject
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_LOCK_DESCRIPTOR |
extension, newCollectionRecord
objectId, 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) |
buildListOfDeletionAwareLists, getExtension, getLegacyDataAdapter, isNewCollectionRecord, linkEditableUserFields, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord
generateAndSetObjectIdIfNeeded, getExtensionObject, getObjectId, getVersionNumber, prePersist, preUpdate, setExtensionObject, setObjectId, setVersionNumber, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
refresh
toString
public 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–2014 The Kuali Foundation. All rights reserved.