Package org.hibernate.id
Class AbstractUUIDGenerator
- java.lang.Object
-
- org.hibernate.id.AbstractUUIDGenerator
-
- All Implemented Interfaces:
ExportableProducer
,Configurable
,IdentifierGenerator
- Direct Known Subclasses:
UUIDHexGenerator
public abstract class AbstractUUIDGenerator extends java.lang.Object implements IdentifierGenerator
The base class for identifier generators that use a UUID algorithm. This class implements the algorithm, subclasses define the identifier format.- See Also:
UUIDHexGenerator
-
-
Field Summary
-
Fields inherited from interface org.hibernate.id.IdentifierGenerator
ENTITY_NAME, GENERATOR_NAME, JPA_ENTITY_NAME
-
-
Constructor Summary
Constructors Constructor Description AbstractUUIDGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 millisecondprotected int
getIP()
Unique in a local networkprotected int
getJVM()
Unique across JVMs on this machine (unless they load this class in the same quarter second - very unlikely)protected int
getLoTime()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.id.IdentifierGenerator
configure, generate, initialize, registerExportables, supportsJdbcBatchInserts
-
-
-
-
Method Detail
-
getJVM
protected int getJVM()
Unique across JVMs on this machine (unless they load this class in the same quarter second - very unlikely)
-
getCount
protected short getCount()
Unique in a millisecond for this JVM instance (unless there are > Short.MAX_VALUE instances created in a millisecond)
-
getIP
protected int getIP()
Unique in a local network
-
getHiTime
protected short getHiTime()
Unique down to millisecond
-
getLoTime
protected int getLoTime()
-
-