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