OpenMRSGeneratedIdentifierService¶
-
public interface
OpenMRSGeneratedIdentifierService¶ Interface for handling generated identifiers from the OpenMRS’s ID Gen Module.
Methods¶
getLatestIdentifier¶
-
GeneratedIdentifier
getLatestIdentifier(String configName, String sourceName)¶ Returns identifier generated by Generator with given
sourceName. Configuration with the givenconfigNamewill be used while performing this action.Parameters: - configName – the name of the configuration
- sourceName – the Source Name of the ID Generator
Returns: latest generated identifier
setLatestIdentifier¶
-
void
setLatestIdentifier(String configName, String sourceName, Long identifier)¶ Sets latest identifier
identifierfor Generator with givensourceName. Configuration with the givenconfigNamewill be used while performing this action.Parameters: - configName – the name of the configuration
- sourceName – the source name of the ID Generator
- identifier – identifier to set