public interface SequenceDAO
Important: Implementations of this interface must grant synchronization.
Modifier and Type | Method and Description |
---|---|
List<Generic> |
findByName(String name)
Finds all sequences whose name starts with the passed name
|
long |
getCurrentValue(String sequence)
Gets the current value
|
long |
next(String sequence)
Returns the next value of the sequence
|
void |
reset(String sequence,
long value)
Initializes the sequence value
|
long next(String sequence)
sequence
- The sequence namevoid reset(String sequence, long value)
sequence
- The sequence namevalue
- The initial valueList<Generic> findByName(String name)
long getCurrentValue(String sequence)
Copyright © 2008-2014 Logical Objects. All Rights Reserved.