public class JPAUIDSequencerImpl extends AbstractUIDSequencer
| Modifier and Type | Class and Description |
|---|---|
protected class |
JPAUIDSequencerImpl.SeqRunner |
| Modifier and Type | Field and Description |
|---|---|
protected ThreadPoolExecutor |
tpe |
name| Constructor and Description |
|---|
JPAUIDSequencerImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
activatePersistenceProvider() |
void |
dispose()
Must be called when the service is no longer needed
|
protected int |
doGetNext(String key) |
protected int |
getNext(javax.persistence.EntityManager em,
String key) |
int |
getNext(String key)
For the given key returns the incremented UID which is also stored in the same sequence entry.
|
protected PersistenceProvider |
getOrCreatePersistenceProvider() |
void |
init()
Init Sequencer
|
getName, getNextLong, initSequence, setNameprotected ThreadPoolExecutor tpe
public JPAUIDSequencerImpl()
public void init()
UIDSequencerinit in interface UIDSequencerinit in class AbstractUIDSequencerpublic void dispose()
dispose in interface UIDSequencerdispose in class AbstractUIDSequencerprotected PersistenceProvider getOrCreatePersistenceProvider()
protected static void activatePersistenceProvider()
public int getNext(String key)
UIDSequencergetNext in interface UIDSequencergetNext in class AbstractUIDSequencerCopyright © 2017 Nuxeo. All rights reserved.