org.hibernate.id
Class AbstractUUIDGenerator
java.lang.Object
org.hibernate.id.AbstractUUIDGenerator
- IdentifierGenerator
public abstract class AbstractUUIDGenerator
extends java.lang.Object
The base class for identifier generators that use a UUID algorithm. This
class implements the algorithm, subclasses define the identifier
format.
protected short | getCount() - Unique in a millisecond for this JVM instance (unless there
are > Short.MAX_VALUE instances created in a millisecond)
|
protected short | getHiTime() - Unique down to millisecond
|
protected int | getIP() - Unique in a local network
|
protected int | getJVM() - Unique across JVMs on this machine (unless they load this class
in the same quater second - very unlikely)
|
protected int | getLoTime()
|
AbstractUUIDGenerator
public AbstractUUIDGenerator()
getCount
protected short getCount()
Unique in a millisecond for this JVM instance (unless there
are > Short.MAX_VALUE instances created in a millisecond)
getHiTime
protected short getHiTime()
Unique down to millisecond
getIP
protected int getIP()
Unique in a local network
getJVM
protected int getJVM()
Unique across JVMs on this machine (unless they load this class
in the same quater second - very unlikely)
getLoTime
protected int getLoTime()