|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.compoze.ejb.TimeAndIPPKGenerator
This class has the ability to generate unique primary keys using the current system time and local IP address.
Constructor Summary | |
TimeAndIPPKGenerator()
|
Method Summary | |
long |
getLong(User caller,
java.lang.Class ejbClass)
Gets a primary key based on the current system time and IP address. |
static void |
main(java.lang.String[] args)
Exerciser. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TimeAndIPPKGenerator()
Method Detail |
public long getLong(User caller, java.lang.Class ejbClass)
getLong
in interface IPrimaryKeyGenerator
caller
- the callerejbClass
- the class for which the primary key is being
generatedpublic static void main(java.lang.String[] args)
args
- none taken
|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |