public abstract class AbstractIncrementer extends AbstractBuildableObject
AbstractDBObject.ChildSupport, AbstractDBObject.ListenerSupport
Constructor and Description |
---|
AbstractIncrementer() |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
getCacheFlag()
Returns TRUE if the sequence is cached, FALSE if it isn't, and null
representing the database default.
|
java.math.BigInteger |
getCacheSize()
Retrieves the cache size for this sequence.
|
java.lang.Boolean |
getCycleFlag()
Retrieves whether this sequence should cycle back to the beginning when
the last permissible value is reached.
|
java.math.BigInteger |
getIncrementBy()
Retrieves the increment value for this sequence.
|
java.math.BigInteger |
getLastNumber()
Retrieves the last sequence number written to disk in the database.
|
java.math.BigInteger |
getMaxValue()
Retrieves the maximum value for this sequence.
|
java.math.BigInteger |
getMinValue()
Retrieves the minimum value for this sequence.
|
java.lang.Boolean |
getOrderFlag()
Retrieves whether this sequence must generate values in order.
|
java.math.BigInteger |
getStartWith()
Retrieves the start with value for this sequence.
|
void |
setCacheFlag(java.lang.Boolean cacheFlag)
Sets whether this sequence caches sequence values.
|
void |
setCacheSize(java.math.BigInteger cacheSize)
Sets the cache size for this sequence.
|
void |
setCycleFlag(java.lang.Boolean cycleFlag)
Sets whether this sequence should cycle back to the beginning when
the last permissible value is reached.
|
void |
setIncrementBy(java.math.BigInteger incrementBy)
Sets the increment value for this sequence.
|
void |
setLastNumber(java.math.BigInteger lastNumber)
Sets the last sequence number written to disk in the database.
|
void |
setMaxValue(java.math.BigInteger maxValue)
Sets the maximum value for this sequence.
|
void |
setMinValue(java.math.BigInteger minValue)
Sets the minimum value for this sequence.
|
void |
setOrderFlag(java.lang.Boolean orderFlag)
Sets whether this sequence must generate values in order.
|
void |
setStartWith(java.math.BigInteger startWith)
Sets the start with value for this sequence.
|
checkInit, checkInit, copyToImpl, getOwnedObjectsImpl, getProperties, getReferenceIDsImpl, needsInitialization
addObjectListener, addObjectListener, addObjectListener, changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, equals, equalsImpl, findOwnedObject, findOwnedObject, findOwnedObject, findOwnedObject, findParent, fireObjectUpdated, firePropertyChanged, getChildSupport, getID, getName, getOwnedObjects, getOwnedObjects, getParent, getProperty, getProperty, getReferenceIDs, hashCode, includeOwnedObject, includesType, includesType, removeObjectListener, removeObjectListener, removeObjectListener, removeOwnedObject, removeThisAsParent, replaceReferenceIDs, setID, setName, setProperties, setProperty, toString
public void setStartWith(java.math.BigInteger startWith)
startWith
- an BigInteger value representing the start value of this
sequence, or null
to omit the specification of a
start valuepublic java.math.BigInteger getStartWith()
null
if the start with value is not
specifiedpublic void setMinValue(java.math.BigInteger minValue)
minValue
- an BigInteger value representing the minimum value of this
sequence, or null
to omit the specification of a
minimum valuepublic java.math.BigInteger getMinValue()
null
if there is no minimum value.public void setMaxValue(java.math.BigInteger maxValue)
maxValue
- an BigInteger value representing the maximum value of this
sequence, or null
to omit the specification of a
maximum valuepublic java.math.BigInteger getMaxValue()
null
if there is no maximum value.public void setIncrementBy(java.math.BigInteger incrementBy)
incrementBy
- an BigInteger value representing the increment value of this
sequence, or null
to omit the specification of a
increment valuepublic java.math.BigInteger getIncrementBy()
null
if the increment value is not
specifiedpublic void setCycleFlag(java.lang.Boolean cycleFlag)
cycleFlag
- a boolean value representing the cycle flag of this
sequence, or null
to omit the specification of a
cycle flagpublic java.lang.Boolean getCycleFlag()
null
if the cycle flag is not
specifiedpublic void setOrderFlag(java.lang.Boolean orderFlag)
orderFlag
- a boolean value representing the order flag of this
sequence, or null
to omit the specification of a
order flagpublic java.lang.Boolean getOrderFlag()
null
if the order flag is not
specifiedpublic void setCacheFlag(java.lang.Boolean cacheFlag)
cached
- : TRUE, FALSE or null
setCacheSize(java.math.BigInteger)
public java.lang.Boolean getCacheFlag()
public void setCacheSize(java.math.BigInteger cacheSize)
cacheSize
- an BigInteger value representing the size of the cache
used by this sequence, or null
to omit the
specification of cache size.getCacheFlag()
public java.math.BigInteger getCacheSize()
null
if the cache size is not specified.getCacheFlag()
public java.math.BigInteger getLastNumber()
This will only be populated if the sequence is retrieved from a live Database.
public void setLastNumber(java.math.BigInteger lastNumber)