Class BaseSequenceFormat
- java.lang.Object
-
- com.flowable.platform.engine.impl.repository.BaseSequenceFormat
-
- All Implemented Interfaces:
SequenceDefinitionModel.Format
public class BaseSequenceFormat extends Object implements SequenceDefinitionModel.Format
- Author:
- Filip Hrisafov
-
-
Constructor Summary
Constructors Constructor Description BaseSequenceFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
getDigits()
Minimum number of digits that should be used for the sequence, i.e.String
getPrefix()
The prefix that should be applied to the generated numberString
getSuffix()
The suffix that should be applied to the generated numbervoid
setDigits(Integer digits)
void
setPrefix(String prefix)
void
setSuffix(String suffix)
-
-
-
Method Detail
-
getDigits
public Integer getDigits()
Description copied from interface:SequenceDefinitionModel.Format
Minimum number of digits that should be used for the sequence, i.e. if the sequence generated a number with less digits, it will use 0 to left pad the number. e.g. If this number is 5 and the generated sequence number is 1 then the sequence will return 00001- Specified by:
getDigits
in interfaceSequenceDefinitionModel.Format
-
setDigits
public void setDigits(Integer digits)
-
getPrefix
public String getPrefix()
Description copied from interface:SequenceDefinitionModel.Format
The prefix that should be applied to the generated number- Specified by:
getPrefix
in interfaceSequenceDefinitionModel.Format
-
setPrefix
public void setPrefix(String prefix)
-
getSuffix
public String getSuffix()
Description copied from interface:SequenceDefinitionModel.Format
The suffix that should be applied to the generated number- Specified by:
getSuffix
in interfaceSequenceDefinitionModel.Format
-
setSuffix
public void setSuffix(String suffix)
-
-