- All Known Implementing Classes:
DbTokenLock
public interface TokenLock
A token lock.
-
Method Summary
Modifier and TypeMethodDescriptionlongGets the object ID of the user holding the token.org.tentackle.common.TimestampGets the timestamp when editing started.org.tentackle.common.TimestampGets the timestamp when token will expire.intGets the class id of the locked PDO.longgetPdoId()Gets the object id of locked PDO.
-
Method Details
-
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
-