|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.id.uuid.StandardRandomStrategy
public class StandardRandomStrategy
Implements a "random" UUID generation strategy as defined by the UUID.randomUUID()
method.
Field Summary | |
---|---|
static StandardRandomStrategy |
INSTANCE
|
Constructor Summary | |
---|---|
StandardRandomStrategy()
|
Method Summary | |
---|---|
java.util.UUID |
generateUUID(SessionImplementor session)
Delegates to UUID.randomUUID() |
int |
getGeneratedVersion()
A variant 4 (random) strategy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final StandardRandomStrategy INSTANCE
Constructor Detail |
---|
public StandardRandomStrategy()
Method Detail |
---|
public int getGeneratedVersion()
getGeneratedVersion
in interface UUIDGenerationStrategy
public java.util.UUID generateUUID(SessionImplementor session)
UUID.randomUUID()
generateUUID
in interface UUIDGenerationStrategy
session
- The session asking for the generation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |