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, initSequence, setName
protected ThreadPoolExecutor tpe
public JPAUIDSequencerImpl()
public void init()
UIDSequencer
init
in interface UIDSequencer
init
in class AbstractUIDSequencer
public void dispose()
dispose
in interface UIDSequencer
dispose
in class AbstractUIDSequencer
protected PersistenceProvider getOrCreatePersistenceProvider()
protected static void activatePersistenceProvider()
public int getNext(String key)
UIDSequencer
getNext
in interface UIDSequencer
getNext
in class AbstractUIDSequencer
Copyright © 2015 Nuxeo SA. All rights reserved.