|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ebmwebsourcing.easycommons.uuid.SimpleUUIDGenerator
com.ebmwebsourcing.easycommons.uuid.QualifiedUUIDGenerator
public final class QualifiedUUIDGenerator
A simple and fast qualified UUID generator.
The identifier is composed of two parts:
Here is a generated UUID sample, based on a domain namespace called 'petalslink': petalslink:00000000-0000-002a-0000-00000000002a.
| Field Summary | |
|---|---|
static int |
UUID_GENERATED_PART_SIZE
The max size of the UUID string. |
| Constructor Summary | |
|---|---|
QualifiedUUIDGenerator(java.lang.String domain)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getDomain()
|
java.lang.String |
getNewID()
Generates an unique identifier. |
static java.lang.String |
getSeparator()
|
int |
getUuidMaxLength()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int UUID_GENERATED_PART_SIZE
| Constructor Detail |
|---|
public QualifiedUUIDGenerator(java.lang.String domain)
domain - The domain namespace of the unique identifier.| Method Detail |
|---|
public java.lang.String getNewID()
Generates an unique identifier. An identifier value has never been returned (existed) before its calculation.
The identifier is composed of two parts:
This method is threadsafe.
getNewID in class SimpleUUIDGeneratorprefixNS - prefix or not the id
public java.lang.String getDomain()
public int getUuidMaxLength()
public static java.lang.String getSeparator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||