public class NativeDbSequencer extends UjoSequencer
Table.sequence().maxValue, SEQ_LIMIT, SEQ_MAX_VALUE, SEQ_STEP, seqLimit, sequence, table| Constructor and Description |
|---|
NativeDbSequencer(MetaTable table)
Required constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
createNextSequence(String sequenceName)
Create a SQL script for the NEXT SEQUENCE from a native database sequencer
|
long |
nextValue(Session session)
Returns the next sequence value by a synchronized method.
|
getCurrentDBSequence, getDatabase, getDatabaseSchema, getIncrement, getInitDbCache, getTable, isSequenceTableRequired, resetpublic NativeDbSequencer(MetaTable table)
public long nextValue(Session session)
nextValue in class UjoSequencerpublic String createNextSequence(String sequenceName) throws IOException
IOExceptionCopyright 2013, Pavel Ponec