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
|
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, wait
fromStringSafe, keyToString
public static final StringKeyConvertor.ULongKey INSTANCE
public Long fromString(String key)
StringKeyConvertor
fromString
in interface StringKeyConvertor<Long>
public Long 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<Long>
Copyright © 2021 JBoss by Red Hat. All rights reserved.