Top Description Fields Constructors Methods
org.hibernate.id

public abstract Class AbstractUUIDGenerator

extends Object
implements IdentifierGenerator
Class Inheritance
All Implemented Interfaces
org.hibernate.id.IdentifierGenerator, org.hibernate.boot.model.relational.ExportableProducer, org.hibernate.id.Configurable
Known Direct Subclasses
org.hibernate.id.UUIDHexGenerator
Imports
java.net.InetAddress, org.hibernate.internal.util.BytesHelper

Deprecated

as a consequence of IdentifierGenerator being deprecated. See corresponding docs for further information.

The base class for identifier generators that use a UUID algorithm. This class implements the algorithm, subclasses define the identifier format.
Author
Gavin King
See Also
UUIDHexGenerator

Field Summary

Modifier and TypeField and Description
private static short
private static final int
private static final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and 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 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 quarter second - very unlikely)

protected int
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

counterback to summary
private static short counter
IPback to summary
private static final int IP
JVMback to summary
private static final int JVM

Constructor Detail

AbstractUUIDGeneratorback to summary
public AbstractUUIDGenerator()

Method Detail

getCountback to summary
protected short getCount()

Unique in a millisecond for this JVM instance (unless there are > Short.MAX_VALUE instances created in a millisecond)

getHiTimeback to summary
protected short getHiTime()

Unique down to millisecond

getIPback to summary
protected int getIP()

Unique in a local network

getJVMback to summary
protected int getJVM()

Unique across JVMs on this machine (unless they load this class in the same quarter second - very unlikely)

getLoTimeback to summary
protected int getLoTime()