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.
|
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 generate(String prefix, Map<String,Object> optionalParameters) throws CasePrefixNotFoundException
CaseIdGeneratorgenerate in interface CaseIdGeneratorprefix - unique prefix that should be used for generating case identifiersoptionalParameters - map of optionalParameters that might be helpful for implementationCasePrefixNotFoundException - in case given prefix was not registeredprotected CaseIdInfo findCaseIdInfoByPrefix(String prefix)
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.