public class SequenceVO extends Object implements Serializable
SequencePropertyType,
Serialized Form| Constructor and Description |
|---|
SequenceVO(String propertyName,
SequencePropertyType propertyType,
long storedValue,
long increments)
Constructor of the sequence
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
long |
getCurrentValue()
Get current sequence value.
|
long |
getIncrements()
The increment value which determines how often the value is stored in the PropertyIO when getting the next key.
|
long |
getNextKey()
Gets the next value incremented by one.
|
String |
getPropertyName()
The name of the property.
|
long |
getStoredValue()
The last key save in the PropertyIO.
|
int |
hashCode() |
String |
toString() |
public SequenceVO(String propertyName, SequencePropertyType propertyType, long storedValue, long increments)
propertyName - the name of property, this is part of the constructor to provide callback functionality to the property type write the incremented.propertyType - the propertyType , this is part of the constructor to provide callback functionality to the property type write the incremented.storedValue - the last stored property value.increments - after how many increments the value shall be written to the PropertyIO.public long getNextKey()
throws PropertyException
PropertyException - if fail to write the incremented value.public long getStoredValue()
public String getPropertyName()
public long getIncrements()
public long getCurrentValue()