|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.tws.objects.types.LockData
This utility class wraps the TWS object lock information, including the name of the user who is currently holding the lock, the time the object was locked, and the user session. When used within database object definitions, this object is filled only by the TWS Distributed engine, while it is completely ignored on TWS for z/OS.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
Copyright. |
Constructor Summary | |
---|---|
LockData()
Creates an empty LockData object. |
|
LockData(java.lang.String user,
java.util.Date time,
java.lang.String session)
Creates a LockData object with the specified user name, lock time and user session. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object object)
Returns true if all fields of this LockData object are equal to those of the given one. |
java.lang.String |
getLockedBy()
Returns the name of the user who is currently holding the lock. |
java.lang.String |
getLockedSession()
Returns the session of the user who is currently holding the lock. |
java.util.Date |
getLockedTime()
Returns the time the object was locked. |
int |
hashCode()
Returns a hash code for this LockData object. |
void |
set(java.lang.String user,
java.util.Date time,
java.lang.String session)
Sets the name and session of the user who is currently holding the lock, and the time the object was locked. |
void |
setLockedBy(java.lang.String user)
Sets the name of the user who is currently holding the lock. |
void |
setLockedSession(java.lang.String session)
Sets the session of the user who is currently holding the lock. |
void |
setLockedTime(java.util.Date time)
Sets the time the object was locked. |
java.lang.String |
toString()
Returns a string representation of this LockData object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String COPYRIGHT
Constructor Detail |
public LockData()
public LockData(java.lang.String user, java.util.Date time, java.lang.String session)
user
- The name of the user who holds the lock.time
- The time the object was locked.session
- The session of the user who holds the lock.Method Detail |
public java.lang.String getLockedBy()
public java.util.Date getLockedTime()
public java.lang.String getLockedSession()
public void setLockedBy(java.lang.String user)
user
- The name of the user who holds the lock.public void setLockedTime(java.util.Date time)
time
- The time the object was locked.public void setLockedSession(java.lang.String session)
session
- The session of the user who holds the lock.public void set(java.lang.String user, java.util.Date time, java.lang.String session)
user
- The name of the user who holds the lock.time
- The time the object was locked.session
- The session of the user who holds the lock.public boolean equals(java.lang.Object object)
object
- The object to be compared with this one.
public int hashCode()
public java.lang.String toString()
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |