Class SequenceGeneratorImpl
java.lang.Object
com.flowable.platform.engine.impl.sequence.SequenceGeneratorImpl
- All Implemented Interfaces:
- SequenceGenerator
- Author:
- Filip Hrisafov
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionclassclassstatic class
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final CommandExecutorprotected Stringprotected Stringprotected String
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiondefinitionId(String definitionId) Use the definition with the given id.definitionKey(String definitionKey) Use the definition with the given key.definitionTenantId(String tenantId) Look for the definition in the given tenant.Increment the sequence number and returns its value formatted as a String based on the sequence definition model.longIncrement the sequence number and return its value as a long.
- 
Field Details- 
commandExecutor
- 
definitionId
- 
definitionKey
- 
definitionTenantId
 
- 
- 
Constructor Details- 
SequenceGeneratorImpl
 
- 
- 
Method Details- 
definitionIdDescription copied from interface:SequenceGeneratorUse the definition with the given id. Not allowed to be used in combination withSequenceGenerator.definitionKey(String)- Specified by:
- definitionIdin interface- SequenceGenerator
- Parameters:
- definitionId- the id of the sequence definition
 
- 
definitionKeyDescription copied from interface:SequenceGeneratorUse the definition with the given key. Not allowed to be used in combination withSequenceGenerator.definitionId(String)- Specified by:
- definitionKeyin interface- SequenceGenerator
- Parameters:
- definitionKey- the key of the sequence definition
 
- 
definitionTenantIdDescription copied from interface:SequenceGeneratorLook for the definition in the given tenant. Only applicable in combination withSequenceGenerator.definitionKey(String)- Specified by:
- definitionTenantIdin interface- SequenceGenerator
- Parameters:
- tenantId- the tenant id of the sequence definition
 
- 
nextLongValuepublic long nextLongValue()Description copied from interface:SequenceGeneratorIncrement the sequence number and return its value as a long.- Specified by:
- nextLongValuein interface- SequenceGenerator
- Returns:
- the next value as a long
 
- 
nextFormattedValueDescription copied from interface:SequenceGeneratorIncrement the sequence number and returns its value formatted as a String based on the sequence definition model.- Specified by:
- nextFormattedValuein interface- SequenceGenerator
- Returns:
- the next value formatted as a String
 
 
-