java.lang.Object
com.flexstor.common.data.ejb.Data
com.flexstor.common.data.ejb.sequence.SequenceData
- All Implemented Interfaces:
- java.io.Serializable
- public class SequenceData
- extends com.flexstor.common.data.ejb.Data
Provides a wrapper class around a set of sequence numbers.
Please note that the set of sequences may not be contiguious.
- Version:
- 3.0
| Fields inherited from class com.flexstor.common.data.ejb.Data |
DELETE, DELETED, derived, htModifiedStates, htOptions, MODIFY, modTime, NEW_ENTRY, presentState, prevState, UNCHANGED, UPDATED, WARN_BEFORE_DELETE |
|
Constructor Summary |
SequenceData(long[] nSequences,
int nCount)
Creates a new sequence based on naSequence. |
|
Method Summary |
boolean |
hasMoreItems()
Returns true if there are more sequence numbers available. |
long |
nextSequence()
Returns the next item in this sequence. |
| Methods inherited from class com.flexstor.common.data.ejb.Data |
assertEquals, changed, fillCloneInfo, getDateModTime, getModTime, getPresentState, getPreviousState, initializeState, isDeleted, isDerived, isModified, isModified, isObjectPersist, isOptionAllowed, resetModifiedStates, rollBackState, setDeleted, setDerived, setModifiedState, setModTime, setModTime, setNewEntry, setOption, setPerisistState, setPreviousState, setState, setUpdated |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
nSeqCount
private long nSeqCount
naSequences
private long[] naSequences
nCurSeqCount
private int nCurSeqCount
SequenceData
public SequenceData(long[] nSequences,
int nCount)
- Creates a new sequence based on naSequence.
hasMoreItems
public boolean hasMoreItems()
- Returns true if there are more sequence numbers available.
nextSequence
public long nextSequence()
- Returns the next item in this sequence.