Package org.keycloak.models.map.common
Class StringKeyConverter.ULongKey
- java.lang.Object
-
- org.keycloak.models.map.common.StringKeyConverter.ULongKey
-
- All Implemented Interfaces:
StringKeyConverter<Long>
- Enclosing interface:
- StringKeyConverter<K>
public static class StringKeyConverter.ULongKey extends Object implements StringKeyConverter<Long>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.keycloak.models.map.common.StringKeyConverter
StringKeyConverter.StringKey, StringKeyConverter.ULongKey, StringKeyConverter.UUIDKey
-
-
Field Summary
Fields Modifier and Type Field Description static StringKeyConverter.ULongKey
INSTANCE
-
Constructor Summary
Constructors Constructor Description ULongKey()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
fromString(String key)
Returns native representation of the key from String representationString
keyToString(Long key)
Returns String representation of the key from native representationLong
yieldNewUniqueKey()
Returns a new unique primary key for the storage that thisStringKeyConverter
belongs 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.StringKeyConverter
fromStringSafe
-
-
-
-
Field Detail
-
INSTANCE
public static final StringKeyConverter.ULongKey INSTANCE
-
-
Method Detail
-
keyToString
public String keyToString(Long key)
Description copied from interface:StringKeyConverter
Returns String representation of the key from native representation- Specified by:
keyToString
in interfaceStringKeyConverter<Long>
- Returns:
- See above
-
fromString
public Long fromString(String key)
Description copied from interface:StringKeyConverter
Returns native representation of the key from String representation- Specified by:
fromString
in interfaceStringKeyConverter<Long>
- Returns:
- See above
-
yieldNewUniqueKey
public Long yieldNewUniqueKey()
Description copied from interface:StringKeyConverter
Returns a new unique primary key for the storage that thisStringKeyConverter
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.- Specified by:
yieldNewUniqueKey
in interfaceStringKeyConverter<Long>
- Returns:
-
-