Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.flexstor.common.data.ejb.sequence
Class SequenceData  view SequenceData download SequenceData.java

java.lang.Object
  extended bycom.flexstor.common.data.ejb.Data
      extended bycom.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

Field Summary
private  long[] naSequences
           
private  int nCurSeqCount
           
private  long nSeqCount
           
(package private) static long serialVersionUID
           
 
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
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

nSeqCount

private long nSeqCount

naSequences

private long[] naSequences

nCurSeqCount

private int nCurSeqCount
Constructor Detail

SequenceData

public SequenceData(long[] nSequences,
                    int nCount)
Creates a new sequence based on naSequence.

Method Detail

hasMoreItems

public boolean hasMoreItems()
Returns true if there are more sequence numbers available.


nextSequence

public long nextSequence()
Returns the next item in this sequence.