Package org.hibernate.id
Class AbstractUUIDGenerator
java.lang.Object
org.hibernate.id.AbstractUUIDGenerator
- All Implemented Interfaces:
Serializable
,ExportableProducer
,BeforeExecutionGenerator
,Generator
,Configurable
,IdentifierGenerator
- Direct Known Subclasses:
UUIDHexGenerator
@Deprecated(since="6")
public abstract class AbstractUUIDGenerator
extends Object
implements IdentifierGenerator
Deprecated.
The base class for identifier generators that use a UUID algorithm. This
class implements the algorithm, subclasses define the identifier
format.
- See Also:
-
Field Summary
Fields inherited from interface org.hibernate.id.IdentifierGenerator
CONTRIBUTOR_NAME, ENTITY_NAME, GENERATOR_NAME, JPA_ENTITY_NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected short
getCount()
Deprecated.Unique in a millisecond for this JVM instance (unless there are more than 32767 instances created in a millisecond)protected short
Deprecated.Unique down to millisecondprotected int
getIP()
Deprecated.Unique in a local networkprotected int
getJVM()
Deprecated.Unique across JVMs on this machine (unless they load this class in the same quarter-second, which is very unlikely)protected int
Deprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.generator.BeforeExecutionGenerator
generatedOnExecution
Methods inherited from interface org.hibernate.id.Configurable
configure, initialize
Methods inherited from interface org.hibernate.generator.Generator
allowAssignedIdentifiers, allowMutation, generatedBeforeExecution, generatedOnExecution, generatesOnInsert, generatesOnUpdate, generatesSometimes
Methods inherited from interface org.hibernate.id.IdentifierGenerator
configure, generate, generate, getEventTypes, registerExportables
-
Constructor Details
-
AbstractUUIDGenerator
public AbstractUUIDGenerator()Deprecated.
-
-
Method Details
-
getJVM
protected int getJVM()Deprecated.Unique across JVMs on this machine (unless they load this class in the same quarter-second, which is very unlikely) -
getCount
protected short getCount()Deprecated.Unique in a millisecond for this JVM instance (unless there are more than 32767 instances created in a millisecond) -
getIP
protected int getIP()Deprecated.Unique in a local network -
getHiTime
protected short getHiTime()Deprecated.Unique down to millisecond -
getLoTime
protected int getLoTime()Deprecated.
-
UUIDHexGenerator
is deprecated