Package ru.curs.celesta.dbutils.meta
Class DbSequenceInfo
- java.lang.Object
-
- ru.curs.celesta.dbutils.meta.DbSequenceInfo
-
public final class DbSequenceInfo extends Object
Information on sequence taken from the database.
-
-
Constructor Summary
Constructors Constructor Description DbSequenceInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getIncrementBy()
Returns 'increment by' value of the sequence.long
getMaxValue()
Returns maximal value of the sequence.long
getMinValue()
Returns minimal value of the sequence.boolean
isCycle()
Whether the sequence is cycled, i.e. can start again from the min. value.boolean
reflects(SequenceElement s)
void
setCycle(boolean cycle)
Sets if the sequence is cycled.void
setIncrementBy(long incrementBy)
Sets 'increment by' value of the sequence.void
setMaxValue(long maxValue)
Sets maximal value of the sequence.void
setMinValue(long minValue)
Sets minimal value of the sequence.
-
-
-
Method Detail
-
getIncrementBy
public long getIncrementBy()
Returns 'increment by' value of the sequence.- Returns:
-
setIncrementBy
public void setIncrementBy(long incrementBy)
Sets 'increment by' value of the sequence.- Parameters:
incrementBy
- 'increment by' value
-
getMinValue
public long getMinValue()
Returns minimal value of the sequence.- Returns:
-
setMinValue
public void setMinValue(long minValue)
Sets minimal value of the sequence.- Parameters:
minValue
- minimal value
-
getMaxValue
public long getMaxValue()
Returns maximal value of the sequence.- Returns:
-
setMaxValue
public void setMaxValue(long maxValue)
Sets maximal value of the sequence.- Parameters:
maxValue
- maximal value
-
isCycle
public boolean isCycle()
Whether the sequence is cycled, i.e. can start again from the min. value.- Returns:
true
- cycled, otherwise -false
. Default isfalse
-
setCycle
public void setCycle(boolean cycle)
Sets if the sequence is cycled.- Parameters:
cycle
-true
- cycled, otherwise -false
.
-
reflects
public boolean reflects(SequenceElement s)
-
-