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>
public static class StringKeyConverter.UUIDKey extends Object implements StringKeyConverter<UUID>
-
-
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.UUIDKeyINSTANCE
-
Constructor Summary
Constructors Constructor Description UUIDKey()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UUIDfromString(String key)Returns native representation of the key from String representationUUIDyieldNewUniqueKey()Returns a new unique primary key for the storage that thisStringKeyConverterbelongs 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 Detail
-
INSTANCE
public static final StringKeyConverter.UUIDKey INSTANCE
-
-
Method Detail
-
yieldNewUniqueKey
public UUID yieldNewUniqueKey()
Description copied from interface:StringKeyConverterReturns a new unique primary key for the storage that thisStringKeyConverterbelongs 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 interfaceStringKeyConverter<UUID>- Returns:
-
fromString
public UUID fromString(String key)
Description copied from interface:StringKeyConverterReturns native representation of the key from String representation- Specified by:
fromStringin interfaceStringKeyConverter<UUID>- Returns:
- See above
-
-