Package org.keycloak.models.map.common
Class StringKeyConverter.UUIDKey
java.lang.Object
org.keycloak.models.map.common.StringKeyConverter.UUIDKey
- All Implemented Interfaces:
StringKeyConverter<UUID>
- Enclosing interface:
- StringKeyConverter<K>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.models.map.common.StringKeyConverter
StringKeyConverter.StringKey, StringKeyConverter.ULongKey, StringKeyConverter.UUIDKey
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfromString
(String key) Returns native representation of the key from String representationReturns 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, keyToString
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
UUIDKey
public UUIDKey()
-
-
Method Details
-
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<UUID>
- Returns:
-
fromString
Description copied from interface:StringKeyConverter
Returns native representation of the key from String representation- Specified by:
fromString
in interfaceStringKeyConverter<UUID>
- Returns:
- See above
-