public class UIDSequencerImpl extends Object implements UIDSequencer
| Constructor and Description |
|---|
UIDSequencerImpl() |
| Modifier and Type | Method and Description |
|---|---|
static void |
dispose()
Must be called when the service is no longer needed
|
int |
getNext(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.
|
static PersistenceProvider |
getOrCreatePersistenceProvider() |
public static void dispose()
public static PersistenceProvider getOrCreatePersistenceProvider()
public int getNext(String key)
UIDSequencergetNext in interface UIDSequencerpublic int getNext(EntityManager em, String key)
Copyright © 2013 Nuxeo SA. All Rights Reserved.