Class BaseSequenceDefinitionModel
java.lang.Object
com.flowable.platform.engine.impl.repository.BaseSequenceDefinitionModel
- All Implemented Interfaces:
SequenceDefinitionModel
- Author:
- Filip Hrisafov
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.flowable.platform.api.repository.SequenceDefinitionModel
SequenceDefinitionModel.Format -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the optional description of this sequence definition, describing where and how it might be used.The format that should be used when generating the sequence.intThe increment step of the sequence.getKey()Returns the business key usually used to reference or lookup a query definition regardless of its version.getMax()The maximum value that the sequence can reach.getMin()The minimum value that the sequence can reach.getName()Returns the name of this sequence definition.getStart()The first sequence number that should be generatedbooleanisCycle()Whether the sequence is allowed to cycle, i.e.voidsetCycle(boolean cycle) voidsetDescription(String description) voidvoidsetIncrement(int increment) voidvoidvoidvoidvoid
-
Field Details
-
key
-
name
-
description
-
start
-
increment
protected int increment -
cycle
protected boolean cycle -
max
-
min
-
format
-
-
Constructor Details
-
BaseSequenceDefinitionModel
public BaseSequenceDefinitionModel()
-
-
Method Details
-
getKey
Description copied from interface:SequenceDefinitionModelReturns the business key usually used to reference or lookup a query definition regardless of its version.- Specified by:
getKeyin interfaceSequenceDefinitionModel
-
setKey
-
getName
Description copied from interface:SequenceDefinitionModelReturns the name of this sequence definition.- Specified by:
getNamein interfaceSequenceDefinitionModel
-
setName
-
getDescription
Description copied from interface:SequenceDefinitionModelReturns the optional description of this sequence definition, describing where and how it might be used.- Specified by:
getDescriptionin interfaceSequenceDefinitionModel
-
setDescription
-
getStart
Description copied from interface:SequenceDefinitionModelThe first sequence number that should be generated- Specified by:
getStartin interfaceSequenceDefinitionModel
-
setStart
-
getIncrement
public int getIncrement()Description copied from interface:SequenceDefinitionModelThe 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:
getIncrementin interfaceSequenceDefinitionModel
-
setIncrement
public void setIncrement(int increment) -
isCycle
public boolean isCycle()Description copied from interface:SequenceDefinitionModelWhether 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:
isCyclein interfaceSequenceDefinitionModel
-
setCycle
public void setCycle(boolean cycle) -
getMax
Description copied from interface:SequenceDefinitionModelThe maximum value that the sequence can reach. It must be larger than the start and min values.- Specified by:
getMaxin interfaceSequenceDefinitionModel
-
setMax
-
getMin
Description copied from interface:SequenceDefinitionModelThe minimum value that the sequence can reach. It must be less than the start and max values.- Specified by:
getMinin interfaceSequenceDefinitionModel
-
setMin
-
getFormat
Description copied from interface:SequenceDefinitionModelThe format that should be used when generating the sequence.- Specified by:
getFormatin interfaceSequenceDefinitionModel
-
setFormat
-