|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provides information about a lock on a document variant.
If the method hasLock()
returns false, there is no lock
on the document and the output of the other methods is irrelevant and
unspecified.
Note that so called "optimistic locking" always happens automatically, next to this explicit locking facility.
Method Summary | |
long |
getDuration()
Gets the duration of the lock, in milliseconds. |
java.util.Date |
getTimeAcquired()
Get the time when the lock was acquired. |
LockType |
getType()
Get the type of lock. |
long |
getUserId()
Get the id of the user holding the lock. |
org.outerx.daisy.x10.LockInfoDocument |
getXml()
Get an XML document describing this lock. |
boolean |
hasLock()
|
Method Detail |
public boolean hasLock()
public long getUserId()
public java.util.Date getTimeAcquired()
public long getDuration()
public LockType getType()
Document.lock(long, LockType)
for
more info on the type of locks.
public org.outerx.daisy.x10.LockInfoDocument getXml()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |