Class BaseSequenceDefinitionModel
- java.lang.Object
-
- com.flowable.platform.engine.impl.repository.BaseSequenceDefinitionModel
-
- All Implemented Interfaces:
SequenceDefinitionModel
public class BaseSequenceDefinitionModel extends Object implements SequenceDefinitionModel
- Author:
- Filip Hrisafov
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.flowable.platform.api.repository.SequenceDefinitionModel
SequenceDefinitionModel.Format
-
-
Constructor Summary
Constructors Constructor Description BaseSequenceDefinitionModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
Returns the optional description of this sequence definition, describing where and how it might be used.SequenceDefinitionModel.Format
getFormat()
The format that should be used when generating the sequence.int
getIncrement()
The increment step of the sequence.String
getKey()
Returns the business key usually used to reference or lookup a query definition regardless of its version.Long
getMax()
The maximum value that the sequence can reach.Long
getMin()
The minimum value that the sequence can reach.String
getName()
Returns the name of this sequence definition.Long
getStart()
The first sequence number that should be generatedboolean
isCycle()
Whether the sequence is allowed to cycle, i.e.void
setCycle(boolean cycle)
void
setDescription(String description)
void
setFormat(SequenceDefinitionModel.Format format)
void
setIncrement(int increment)
void
setKey(String key)
void
setMax(Long max)
void
setMin(Long min)
void
setName(String name)
void
setStart(Long start)
-
-
-
Method Detail
-
getKey
public String getKey()
Description copied from interface:SequenceDefinitionModel
Returns the business key usually used to reference or lookup a query definition regardless of its version.- Specified by:
getKey
in interfaceSequenceDefinitionModel
-
setKey
public void setKey(String key)
-
getName
public String getName()
Description copied from interface:SequenceDefinitionModel
Returns the name of this sequence definition.- Specified by:
getName
in interfaceSequenceDefinitionModel
-
setName
public void setName(String name)
-
getDescription
public String getDescription()
Description copied from interface:SequenceDefinitionModel
Returns the optional description of this sequence definition, describing where and how it might be used.- Specified by:
getDescription
in interfaceSequenceDefinitionModel
-
setDescription
public void setDescription(String description)
-
getStart
public Long getStart()
Description copied from interface:SequenceDefinitionModel
The first sequence number that should be generated- Specified by:
getStart
in interfaceSequenceDefinitionModel
-
setStart
public void setStart(Long start)
-
getIncrement
public int getIncrement()
Description copied from interface:SequenceDefinitionModel
The increment step of the sequence. It must be positive or negative, but not 0. If the value is negative then the sequence is descending, otherwise it is ascending.- Specified by:
getIncrement
in interfaceSequenceDefinitionModel
-
setIncrement
public void setIncrement(int increment)
-
isCycle
public boolean isCycle()
Description copied from interface:SequenceDefinitionModel
Whether the sequence is allowed to cycle, i.e. continue generating values when the minimum or maximum is reached. After an ascending sequence reaches its maximum value, it generates its minimum value. After a descending sequence reaches its minimum, it generates its maximum value.- Specified by:
isCycle
in interfaceSequenceDefinitionModel
-
setCycle
public void setCycle(boolean cycle)
-
getMax
public Long getMax()
Description copied from interface:SequenceDefinitionModel
The maximum value that the sequence can reach. It must be larger than the start and min values.- Specified by:
getMax
in interfaceSequenceDefinitionModel
-
setMax
public void setMax(Long max)
-
getMin
public Long getMin()
Description copied from interface:SequenceDefinitionModel
The minimum value that the sequence can reach. It must be less than the start and max values.- Specified by:
getMin
in interfaceSequenceDefinitionModel
-
setMin
public void setMin(Long min)
-
getFormat
public SequenceDefinitionModel.Format getFormat()
Description copied from interface:SequenceDefinitionModel
The format that should be used when generating the sequence.- Specified by:
getFormat
in interfaceSequenceDefinitionModel
-
setFormat
public void setFormat(SequenceDefinitionModel.Format format)
-
-