public class StandardRandomStrategy extends Object implements UUIDGenerationStrategy
Implements a "random" UUID generation strategy as defined by the UUID.randomUUID() method.
| Modifier and Type | Field and Description |
|---|---|
static StandardRandomStrategy |
INSTANCE |
| Constructor and Description |
|---|
StandardRandomStrategy() |
| Modifier and Type | Method and Description |
|---|---|
UUID |
generateUUID(SharedSessionContractImplementor session)
Delegates to
UUID.randomUUID() |
int |
getGeneratedVersion()
A variant 4 (random) strategy
|
public static final StandardRandomStrategy INSTANCE
public int getGeneratedVersion()
A variant 4 (random) strategy
getGeneratedVersion in interface UUIDGenerationStrategypublic UUID generateUUID(SharedSessionContractImplementor session)
Delegates to UUID.randomUUID()
generateUUID in interface UUIDGenerationStrategysession - The session asking for the generationCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.