|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sap.netweaver.bc.rf.mi.lock.LockInfo
Class implementing lock information.
| Field Summary | |
static long |
LOCK_TIMEOUT_INFINITE
|
| Constructor Summary | |
LockInfo(java.lang.String token,
IRid rid,
LockDepthType depth,
LockScopeType scope,
LockKindType kind,
java.util.Date creationDate,
long timeout,
java.lang.String owner)
Construct object of class LockInfo. |
|
LockInfo(java.lang.String token,
IRid rid,
LockDepthType depth,
LockScopeType scope,
LockKindType kind,
java.util.Date creationDate,
long timeout,
java.lang.String owner,
java.lang.String clientSuppliedOwner)
Construct object of class LockInfo. |
|
LockInfo(java.lang.String token,
IRid rid,
LockDepthType depth,
LockScopeType scope,
LockKindType kind,
long timeout,
java.lang.String owner)
Construct object of class LockInfo. |
|
LockInfo(java.lang.String token,
IRid rid,
LockDepthType depth,
LockScopeType scope,
LockKindType kind,
long timeout,
java.lang.String owner,
java.lang.String clientSuppliedOwner)
Construct object of class LockInfo. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Check this and another object for equality. |
java.lang.String |
getClientSuppliedOwner()
Get client supplied owner for the lock. |
java.util.Date |
getCreationDate()
Get creation date. |
LockDepthType |
getDepth()
Get lock depth. |
java.util.Date |
getExpirationDate()
Get lock expiration timestamp. |
LockKindType |
getKind()
Get lock kind. |
java.lang.String |
getLockToken()
Get lock token. |
java.lang.String |
getOwner()
Get user id of lock owner. |
IRid |
getRid()
Get resource id this lock info is valid for. |
LockScopeType |
getScope()
Get lock scope. |
long |
getTimeout()
Get lock timeout in milliseconds. |
long |
getTimeRemaining()
Get time remaining until lock expires. |
int |
hashCode()
Get hash code of this object. |
void |
refreshExpirationDate()
reset the expiration period if timeout info is available |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final long LOCK_TIMEOUT_INFINITE
| Constructor Detail |
public LockInfo(java.lang.String token,
IRid rid,
LockDepthType depth,
LockScopeType scope,
LockKindType kind,
long timeout,
java.lang.String owner)
token - lock token identifying the lockrid - resource id this lock is valid fordepth - LockDepthType of lockscope - LockScopeType of lockkind - LockKindType of locktimeout - lock timeout in millisecondsowner - owner for the lock
public LockInfo(java.lang.String token,
IRid rid,
LockDepthType depth,
LockScopeType scope,
LockKindType kind,
java.util.Date creationDate,
long timeout,
java.lang.String owner)
token - lock token identifying the lockrid - resource id this lock is valid fordepth - LockDepthType of lockscope - LockScopeType of lockkind - LockKindType of lockcreationDate - creation date of the locktimeout - lock timeout in millisecondsowner - owner for the lock
public LockInfo(java.lang.String token,
IRid rid,
LockDepthType depth,
LockScopeType scope,
LockKindType kind,
long timeout,
java.lang.String owner,
java.lang.String clientSuppliedOwner)
token - lock token identifying the lockrid - resource id this lock is valid fordepth - LockDepthType of lockscope - LockScopeType of lockkind - LockKindType of locktimeout - lock timeout in millisecondsowner - owner for the lockclientSuppliedOwner - client supplied owner for the lock
public LockInfo(java.lang.String token,
IRid rid,
LockDepthType depth,
LockScopeType scope,
LockKindType kind,
java.util.Date creationDate,
long timeout,
java.lang.String owner,
java.lang.String clientSuppliedOwner)
token - lock token identifying the lockrid - resource id this lock is valid fordepth - LockDepthType of lockscope - LockScopeType of lockkind - LockKindType of lockcreationDate - creation date of the locktimeout - lock timeout in millisecondsowner - owner for the lockclientSuppliedOwner - client supplied owner for the lock| Method Detail |
public java.lang.String getLockToken()
getLockToken in interface ILockInfopublic IRid getRid()
getRid in interface ILockInfopublic LockDepthType getDepth()
getDepth in interface ILockInfoLockDepthType of lockpublic LockScopeType getScope()
getScope in interface ILockInfoLockScopeType of lockpublic LockKindType getKind()
getKind in interface ILockInfoLockKindType of lockpublic java.util.Date getCreationDate()
getCreationDate in interface ILockInfopublic java.util.Date getExpirationDate()
getExpirationDate in interface ILockInfopublic long getTimeRemaining()
getTimeRemaining in interface ILockInfo-1 for
"infinite").public long getTimeout()
getTimeout in interface ILockInfopublic java.lang.String getOwner()
getOwner in interface ILockInfopublic java.lang.String getClientSuppliedOwner()
getClientSuppliedOwner in interface ILockInfopublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - object to compare this object withObject.equals(java.lang.Object)public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public void refreshExpirationDate()
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||