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 IntegergetDigits()Minimum number of digits that should be used for the sequence, i.e.StringgetPrefix()The prefix that should be applied to the generated numberStringgetSuffix()The suffix that should be applied to the generated numbervoidsetDigits(Integer digits)voidsetPrefix(String prefix)voidsetSuffix(String suffix)
-
-
-
Method Detail
-
getDigits
public Integer getDigits()
Description copied from interface:SequenceDefinitionModel.FormatMinimum 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:
getDigitsin interfaceSequenceDefinitionModel.Format
-
setDigits
public void setDigits(Integer digits)
-
getPrefix
public String getPrefix()
Description copied from interface:SequenceDefinitionModel.FormatThe prefix that should be applied to the generated number- Specified by:
getPrefixin interfaceSequenceDefinitionModel.Format
-
setPrefix
public void setPrefix(String prefix)
-
getSuffix
public String getSuffix()
Description copied from interface:SequenceDefinitionModel.FormatThe suffix that should be applied to the generated number- Specified by:
getSuffixin interfaceSequenceDefinitionModel.Format
-
setSuffix
public void setSuffix(String suffix)
-
-