org.openmobileis.common.util
Class UniqueIdGenerator

java.lang.Object
  extended byorg.openmobileis.common.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 method getNewStringID that add the userid to the generated long id. userid is get from SessionContext.

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

Constructor Summary
UniqueIdGenerator()
          Creates a new instance of UniqueIdGenerator
 
Method Summary
static UniqueIdGenerator getManager()
           
 long getNewID()
           
 java.lang.String getNewStringID()
           
 
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()

getNewID

public long getNewID()

getNewStringID

public java.lang.String getNewStringID()


Copyright 2006 OpenMobileIS. All Rights Reserved.