public class ObjectId extends AbstractIdSource
IdSource to create unique object IDs.
Only used if backend does not support sequences.
Provides some degree of optimization to update the table only once at end of transaction.
ObjectSequenceId| Constructor and Description |
|---|
ObjectId(String name)
Creates an object id.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isLockFree()
Returns whether retrieving an id is a lock-free operation.
|
long |
nextId(Db db)
Get the next unique ID.
|
assertDbNotRemote, assertOneRowAffected, getName, toStringpublic ObjectId(String name)
name - the source and table namepublic boolean isLockFree()
IdSourceCopyright © 2016 Krake Softwaretechnik. All rights reserved.