net.simplace.core.service.OIDGenerator

This class acts as a factory for unique object identifiers.


public class OIDGenerator {


// Class Methods
public static synchronized OIDGenerator getInstance();

Get singleton instance of OIDFactory.
returns singleton instance of OIDFactory

// Public Instance Methods
public synchronized String createOID();

Create an object identifier as a string value. Format: SystemID-CreationTime-Random. SystemID: Unique system identifier CreationTime: Time in milliseconds since January 1 1970 Random: 64 Bit integer (long) random number
returns an object identifier as a string value
public synchronized long createID();

Create an object identifier as long. Random: 64 Bit integer (long) random number
returns an object identifier as long
public synchronized String createOID(String aStartString);

Create an object identifier as a string value. Format: SystemID-CreationTime-Random. SystemID: Unique system identifier CreationTime: Time in milliseconds since January 1 1970 Random: 64 Bit integer (long) random number
returns an object identifier as a string value


}



Returned by: getInstance()