org.ujorm.orm
Class NativeDbSequencer
java.lang.Object
org.ujorm.orm.UjoSequencer
org.ujorm.orm.NativeDbSequencer
public class NativeDbSequencer
- extends UjoSequencer
Support for the native database sequences.
The sequence name can be specified in the parameter Table.sequence().
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NativeDbSequencer
public NativeDbSequencer(MetaTable table)
- Required constructor
nextValue
public long nextValue(Session session)
- Returns the next sequence value by a synchronized method.
- Overrides:
nextValue in class UjoSequencer
createNextSequence
public String createNextSequence(String sequenceName)
throws IOException
- Create a SQL script for the NEXT SEQUENCE from a native database sequencer
- Throws:
IOException
Copyright 2013, Pavel Ponec