public static class StringKeyConvertor.StringKey extends Object implements StringKeyConvertor<String>
StringKeyConvertor.StringKey, StringKeyConvertor.ULongKey, StringKeyConvertor.UUIDKey
Modifier and Type | Field and Description |
---|---|
static StringKeyConvertor.StringKey |
INSTANCE |
Constructor and Description |
---|
StringKey() |
Modifier and Type | Method and Description |
---|---|
String |
fromString(String key)
Returns native representation of the key from String representation
|
String |
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.StringKey INSTANCE
public String fromString(String key)
StringKeyConvertor
fromString
in interface StringKeyConvertor<String>
public String 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<String>
Copyright © 2021 JBoss by Red Hat. All rights reserved.