base.jdbs
Class GUIDGenerator

java.lang.Object
  extended by base.jdbs.GUIDGenerator

public class GUIDGenerator
extends java.lang.Object


Constructor Summary
protected GUIDGenerator()
          The default constructor.
 
Method Summary
 java.lang.String getAlphanumericKey()
          This method returns a alphanumeric key that is unique to a millisecond.
static GUIDGenerator getInstance()
           
 java.math.BigInteger getNumericKey()
          This method returns a numeric key that is unique to a millisecond.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GUIDGenerator

protected GUIDGenerator()
The default constructor.

Method Detail

getInstance

public static GUIDGenerator getInstance()
Returns:
Returns the instance.

getAlphanumericKey

public java.lang.String getAlphanumericKey()
This method returns a alphanumeric key that is unique to a millisecond. The uniqueness is increased by appending a random number to the key.

Returns:
The unique key.

getNumericKey

public java.math.BigInteger getNumericKey()
This method returns a numeric key that is unique to a millisecond. The uniqueness is increased by appending a random number to the key.

Returns:
The unique key.


Copyright © 2006 SF.net. All Rights Reserved.