org.openmobileis.embedded.util
Class UniqueIdGenerator

java.lang.Object
  |
  +--org.openmobileis.embedded.util.UniqueIdGenerator

public final class UniqueIdGenerator
extends java.lang.Object

Title: OpenMobileIS project source
Description: Generate an unique id for the PDA based on the current time. ID is not unique between several PDA. To have an unique id between PDA, use the PDAId and the genrated id. The PDA id is egenrared by using the property pdaID in the file PdaId.properties. This property must be set manualy during installation or by using the synchronisation mecanism.

Since:
JDK 1.1
Version:
1.0.
Author:
Philippe Delrieu

Constructor Summary
UniqueIdGenerator()
          Creates a new instance of UniqueIdGenerator
 
Method Summary
 long getLongNextId()
           
static UniqueIdGenerator getManager()
           
 java.lang.String getNextId()
           
 java.lang.String getPdaId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniqueIdGenerator

public UniqueIdGenerator()
Creates a new instance of UniqueIdGenerator
Method Detail

getManager

public static UniqueIdGenerator getManager()

getPdaId

public java.lang.String getPdaId()

getNextId

public java.lang.String getNextId()

getLongNextId

public long getLongNextId()


Copyright 2005 e-Care. All Rights Reserved.