public static class StringKeyConvertor.UUIDKey extends Object implements StringKeyConvertor<UUID>
StringKeyConvertor.StringKey, StringKeyConvertor.ULongKey, StringKeyConvertor.UUIDKey
Modifier and Type | Field and Description |
---|---|
static StringKeyConvertor.UUIDKey |
INSTANCE |
Constructor and Description |
---|
UUIDKey() |
Modifier and Type | Method and Description |
---|---|
UUID |
fromString(String key)
Returns native representation of the key from String representation
|
UUID |
yieldNewUniqueKey()
Returns a new unique primary key for the storage that
this
StringKeyConvertor belongs to. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fromStringSafe, keyToString
public static final StringKeyConvertor.UUIDKey INSTANCE
public UUID yieldNewUniqueKey()
StringKeyConvertor
StringKeyConvertor
belongs to. The uniqueness
needs to be guaranteed by e.g. using database sequences or
using a random value that is proved sufficiently improbable
to be repeated.yieldNewUniqueKey
in interface StringKeyConvertor<UUID>
public UUID fromString(String key)
StringKeyConvertor
fromString
in interface StringKeyConvertor<UUID>
Copyright © 2021 JBoss by Red Hat. All rights reserved.