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