|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.lib.util.UUIDGenerator
public class UUIDGenerator
UUID value generator. Based on the time-based generator in the LGPL
project:
http://www.doomdark.org/doomdark/proj/jug/
The code has been vastly simplified and modified to replace the ethernet
address of the host machine with the IP, since we do not want to require
native libs and Java cannot access the MAC address directly.
Aside from the above modification, implements the IETF UUID draft
specification, found here:
http://www1.ics.uci.edu/~ejw/authoring/uuid-guid/draft-leach-uuids-guids-01
.txt
Constructor Summary | |
---|---|
UUIDGenerator()
|
Method Summary | |
---|---|
static byte[] |
next()
Return a unique UUID value. |
static String |
nextHex()
Return the next unique uuid value as a 32-character hex string. |
static String |
nextString()
Return the next unique uuid value as a 16-character string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UUIDGenerator()
Method Detail |
---|
public static byte[] next()
public static String nextString()
public static String nextHex()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |