net.sourceforge.jaulp.id.generator
Class SystemTimeIdGenerator

java.lang.Object
  extended by net.sourceforge.jaulp.id.generator.SystemTimeIdGenerator
All Implemented Interfaces:
IdGenerator

public class SystemTimeIdGenerator
extends java.lang.Object
implements IdGenerator

The Class SystemTimeIdGenerator.


Method Summary
static SystemTimeIdGenerator getInstance()
          Gets the single instance of SystemTimeIdGenerator.
 int getNextId()
          Gets the next id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getNextId

public int getNextId()
Gets the next id.

Specified by:
getNextId in interface IdGenerator
Returns:
the next id
See Also:
IdGenerator.getNextId()

getInstance

public static SystemTimeIdGenerator getInstance()
Gets the single instance of SystemTimeIdGenerator.

Returns:
single instance of SystemTimeIdGenerator


Copyright © 2010. All Rights Reserved.