be.ehealth.business.kmehrcommons.util
Class KmehrIdGenerator

java.lang.Object
  extended by be.ehealth.business.kmehrcommons.util.KmehrIdGenerator
All Implemented Interfaces:
IdGenerator

public class KmehrIdGenerator
extends Object
implements IdGenerator

generates kmehr id suffix which is compatible with mycarenet rules. its a timestamp , with length 14. Implementation of IdGenerator


Field Summary
static String KMEHR_ID_GENERATOR_TAG
          tag to be used to get id generator for kmehr ids with IdGeneratorFactory.getIdGenerator(KMEHR_ID_GENERATOR_TAG).
 
Constructor Summary
KmehrIdGenerator()
           
 
Method Summary
 String generateId()
          generates unique String .
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KMEHR_ID_GENERATOR_TAG

public static final String KMEHR_ID_GENERATOR_TAG
tag to be used to get id generator for kmehr ids with IdGeneratorFactory.getIdGenerator(KMEHR_ID_GENERATOR_TAG).

See Also:
Constant Field Values
Constructor Detail

KmehrIdGenerator

public KmehrIdGenerator()
Method Detail

generateId

public String generateId()
Description copied from interface: IdGenerator
generates unique String .

Specified by:
generateId in interface IdGenerator
Returns:
unique identifier for a
See Also:
IdGenerator.generateId()



Connector Packaging PERSDIETICIAN 3.11.1 API
Copyright © {inceptionYear}-2016 eHealth. All Rights Reserved.