-
- All Known Implementing Classes:
DbTokenLock
public interface TokenLockA token lock.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetLockedBy()Gets the object ID of the user holding the token.org.tentackle.common.TimestampgetLockedSince()Gets the timestamp when editing started.org.tentackle.common.TimestampgetLockExpiry()Gets the timestamp when token will expire.intgetPdoClassId()Gets the class id of the locked PDO.longgetPdoId()Gets the object id of locked PDO.
-
-
-
Method Detail
-
getPdoClassId
int getPdoClassId()
Gets the class id of the locked PDO.- Returns:
- the class id
-
getPdoId
long getPdoId()
Gets the object id of locked PDO.- Returns:
- the object id
-
getLockedBy
long getLockedBy()
Gets the object ID of the user holding the token.- Returns:
- the user id, 0 = unlocked
-
getLockedSince
org.tentackle.common.Timestamp getLockedSince()
Gets the timestamp when editing started.- Returns:
- the timestamp when editing started
-
getLockExpiry
org.tentackle.common.Timestamp getLockExpiry()
Gets the timestamp when token will expire.- Returns:
- the timestamp when token will expire
-
-