public final class BasicUUIDFactory extends java.lang.Object implements UUIDFactory
Some known deficiencies:
However, the intention is that UUIDs generated from this class will be unique with respect to UUIDs generated by other DCE UUID generators.
| Modifier and Type | Field and Description |
|---|---|
private long |
currentValue |
private static long |
INITIAL_VALUE |
private long |
majorId |
private static long |
MODULUS |
private static long |
MULTIPLIER |
private static long |
STEP |
private long |
timemillis |
| Constructor and Description |
|---|
BasicUUIDFactory() |
| Modifier and Type | Method and Description |
|---|---|
private void |
bumpMajor() |
UUID |
createUUID()
Generate a new UUID.
|
UUID |
recreateUUID(java.lang.String uuidstring)
Recreate a UUID previously generated UUID value.
|
private void |
resetCounters() |
private long majorId
private long timemillis
private static final long MODULUS
private static final long MULTIPLIER
private static final long STEP
private static final long INITIAL_VALUE
private long currentValue
public UUID createUUID()
createUUID in interface UUIDFactoryUUIDFactory.createUUID()public UUID recreateUUID(java.lang.String uuidstring)
recreateUUID in interface UUIDFactoryUUIDFactory.recreateUUID(java.lang.String)private void bumpMajor()
private void resetCounters()
Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.