public abstract class AbstractUIDSequencer extends Object implements UIDSequencer
| Constructor and Description |
|---|
AbstractUIDSequencer() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
dispose()
Cleanup callback
|
String |
getName()
Gets the sequencer name.
|
abstract int |
getNext(String key)
For the given key returns the incremented UID which is also stored in the same sequence entry.
|
long |
getNextLong(String key)
Extends
UIDSequencer.getNext(java.lang.String) to return a long value. |
abstract void |
init()
Init Sequencer
|
void |
initSequence(String key,
int id)
Initializes the sequencer with the given key to at least the given id.
|
void |
setName(String name)
Sets the sequencer name.
|
public AbstractUIDSequencer()
public abstract void init()
UIDSequencerinit in interface UIDSequencerpublic abstract int getNext(String key)
UIDSequencergetNext in interface UIDSequencerpublic long getNextLong(String key)
UIDSequencerUIDSequencer.getNext(java.lang.String) to return a long value. This method is compatible
with getNext in the integer range.getNextLong in interface UIDSequencerpublic abstract void dispose()
UIDSequencerdispose in interface UIDSequencerpublic String getName()
UIDSequencergetName in interface UIDSequencerpublic void setName(String name)
UIDSequencersetName in interface UIDSequencerpublic void initSequence(String key, int id)
UIDSequencerA sequence can only be incremented, so if its current id is greater than the given id the sequence won't be decremented to reach the given id.
initSequence in interface UIDSequencerCopyright © 2016 Nuxeo SA. All rights reserved.