com.counterclaim.openefm.model.id
Class TimestampIdDispenser

java.lang.Object
  extended bycom.counterclaim.openefm.model.id.TimestampIdDispenser
All Implemented Interfaces:
IdDispenser

public class TimestampIdDispenser
extends java.lang.Object
implements IdDispenser

 

Field Summary
private static TimestampIdDispenser dispenser
          Singleton value of the TimestampIdDispenser.
private static org.apache.log4j.Logger log
           
private  java.lang.String uniqueId
          Unique ID to create a namespace for this app.
 
Constructor Summary
private TimestampIdDispenser()
           
 
Method Summary
static TimestampIdDispenser getDispenser()
          Returns the TimestampIdDispenser singleton.
 java.lang.String getNextId()
          Returns the next universal ID.
 java.lang.String getUniqueIdentifier()
          Returns a unique identifier to differenciate keys between companies.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.log4j.Logger log

dispenser

private static TimestampIdDispenser dispenser
Singleton value of the TimestampIdDispenser.


uniqueId

private java.lang.String uniqueId
Unique ID to create a namespace for this app.

Constructor Detail

TimestampIdDispenser

private TimestampIdDispenser()
Method Detail

getDispenser

public static TimestampIdDispenser getDispenser()
Returns the TimestampIdDispenser singleton.


getNextId

public java.lang.String getNextId()
Returns the next universal ID.

Specified by:
getNextId in interface IdDispenser

getUniqueIdentifier

public java.lang.String getUniqueIdentifier()
Returns a unique identifier to differenciate keys between companies. As per Scott Ambler's article, "www.my-company.com" is an example.

Specified by:
getUniqueIdentifier in interface IdDispenser


Copyright © 2002 counterclaim.com. All Rights Reserved.