Package org.keycloak.models.map.common
Class StringKeyConvertor.ULongKey
- java.lang.Object
-
- org.keycloak.models.map.common.StringKeyConvertor.ULongKey
-
- All Implemented Interfaces:
StringKeyConvertor<Long>
- Enclosing interface:
- StringKeyConvertor<K>
public static class StringKeyConvertor.ULongKey extends Object implements StringKeyConvertor<Long>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.keycloak.models.map.common.StringKeyConvertor
StringKeyConvertor.StringKey, StringKeyConvertor.ULongKey, StringKeyConvertor.UUIDKey
-
-
Field Summary
Fields Modifier and Type Field Description static StringKeyConvertor.ULongKeyINSTANCE
-
Constructor Summary
Constructors Constructor Description ULongKey()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LongfromString(String key)Returns native representation of the key from String representationStringkeyToString(Long key)Returns String representation of the key from native representationLongyieldNewUniqueKey()Returns a new unique primary key for the storage that thisStringKeyConvertorbelongs to.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.keycloak.models.map.common.StringKeyConvertor
fromStringSafe
-
-
-
-
Field Detail
-
INSTANCE
public static final StringKeyConvertor.ULongKey INSTANCE
-
-
Method Detail
-
keyToString
public String keyToString(Long key)
Description copied from interface:StringKeyConvertorReturns String representation of the key from native representation- Specified by:
keyToStringin interfaceStringKeyConvertor<Long>- Returns:
- See above
-
fromString
public Long fromString(String key)
Description copied from interface:StringKeyConvertorReturns native representation of the key from String representation- Specified by:
fromStringin interfaceStringKeyConvertor<Long>- Returns:
- See above
-
yieldNewUniqueKey
public Long yieldNewUniqueKey()
Description copied from interface:StringKeyConvertorReturns a new unique primary key for the storage that thisStringKeyConvertorbelongs 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.- Specified by:
yieldNewUniqueKeyin interfaceStringKeyConvertor<Long>- Returns:
-
-