Class ObjectId
java.lang.Object
org.tentackle.dbms.AbstractIdSource
org.tentackle.dbms.ObjectId
- All Implemented Interfaces:
IdSource
An
IdSource to create unique object IDs.
Only used if the backend does not support sequences.
Provides some degree of optimization to update the table only once at the end of the transaction.
- Author:
- harald
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether retrieving an id is a lock-free operation.longGet the next unique ID.Methods inherited from class AbstractIdSource
assertDbNotRemote, assertOneRowAffected, getName, toString
-
Constructor Details
-
ObjectId
-
-
Method Details
-
isLockFree
public boolean isLockFree()Description copied from interface:IdSourceReturns whether retrieving an id is a lock-free operation.- Returns:
- true if lock-free
-
nextId
-