Package ru.curs.celesta.dbutils.meta
Class DbSequenceInfo
java.lang.Object
ru.curs.celesta.dbutils.meta.DbSequenceInfo
Information on sequence taken from the database.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns 'increment by' value of the sequence.longReturns maximal value of the sequence.longReturns minimal value of the sequence.booleanisCycle()Whether the sequence is cycled, i.e. can start again from the min. value.booleanvoidsetCycle(boolean cycle) Sets if the sequence is cycled.voidsetIncrementBy(long incrementBy) Sets 'increment by' value of the sequence.voidsetMaxValue(long maxValue) Sets maximal value of the sequence.voidsetMinValue(long minValue) Sets minimal value of the sequence.
-
Constructor Details
-
DbSequenceInfo
public DbSequenceInfo()
-
-
Method Details
-
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
-