public class TableCaseIdGenerator extends Object implements CaseIdGenerator
| Constructor and Description |
|---|
TableCaseIdGenerator(TransactionalCommandService commandService) |
| Modifier and Type | Method and Description |
|---|---|
protected CaseIdInfo |
findCaseIdInfoByPrefix(String prefix) |
String |
generate(String prefix,
Map<String,Object> optionalParameters)
Generates next value for given prefix.
|
String |
getIdentifier()
Identifier of the generator so it can be found and registered at runtime
|
void |
register(String prefix)
Should be called only one time per given prefix.
|
String |
resolveCaseIdPrefix(String expression,
Map<String,Object> optionalParameters)
Evaluates the current prefix expression to generate the sequence name given the parameters passed
|
void |
unregister(String prefix)
Unregisters given prefix from the generator.
|
public TableCaseIdGenerator(TransactionalCommandService commandService)
public String getIdentifier()
CaseIdGeneratorgetIdentifier in interface CaseIdGeneratorpublic void register(String prefix)
CaseIdGeneratorregister in interface CaseIdGeneratorprefix - unique prefix that should be used for generating case identifierspublic void unregister(String prefix)
CaseIdGeneratorunregister in interface CaseIdGeneratorprefix - unique prefix that should be used for generating case identifierspublic String resolveCaseIdPrefix(String expression, Map<String,Object> optionalParameters)
CaseIdGeneratorresolveCaseIdPrefix in interface CaseIdGeneratoroptionalParameters - parameters needed to evaluate the expressionpublic String generate(String prefix, Map<String,Object> optionalParameters)
CaseIdGeneratorgenerate in interface CaseIdGeneratorprefix - unique prefix that should be used for generating case identifiersoptionalParameters - map of optionalParameters that might be helpful for implementationprotected CaseIdInfo findCaseIdInfoByPrefix(String prefix)
Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.