public final class JpaSequence extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
nextValue(String name)
Get the next sequence value of the given sequence.
This method must be called inside a running transaction as it updates the sequence details in database. |
static void |
nextValue(String name,
long next)
Set the next numeric value for the given sequence.
This method must be called inside a running transaction as it updates the sequence details in the database. |
public static String nextValue(String name)
name - the name of the sequencepublic static void nextValue(String name, long next)
name - the name of the sequencenext - the next sequence number