Class SequenceGeneratorImpl
java.lang.Object
com.flowable.platform.engine.impl.sequence.SequenceGeneratorImpl
- All Implemented Interfaces:
SequenceGenerator
- Author:
- Filip Hrisafov
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassclassstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CommandExecutorprotected Stringprotected Stringprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
definitionId
Description copied from interface:SequenceGeneratorUse the definition with the given id. Not allowed to be used in combination withSequenceGenerator.definitionKey(String)- Specified by:
definitionIdin interfaceSequenceGenerator- Parameters:
definitionId- the id of the sequence definition
-
definitionKey
Description copied from interface:SequenceGeneratorUse the definition with the given key. Not allowed to be used in combination withSequenceGenerator.definitionId(String)- Specified by:
definitionKeyin interfaceSequenceGenerator- Parameters:
definitionKey- the key of the sequence definition
-
definitionTenantId
Description copied from interface:SequenceGeneratorLook for the definition in the given tenant. Only applicable in combination withSequenceGenerator.definitionKey(String)- Specified by:
definitionTenantIdin interfaceSequenceGenerator- Parameters:
tenantId- the tenant id of the sequence definition
-
nextLongValue
public long nextLongValue()Description copied from interface:SequenceGeneratorIncrement the sequence number and return its value as a long.- Specified by:
nextLongValuein interfaceSequenceGenerator- Returns:
- the next value as a long
-
nextFormattedValue
Description copied from interface:SequenceGeneratorIncrement the sequence number and returns its value formatted as a String based on the sequence definition model.- Specified by:
nextFormattedValuein interfaceSequenceGenerator- Returns:
- the next value formatted as a String
-