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.StringKeyConverterStringKeyConverter.StringKey, StringKeyConverter.ULongKey, StringKeyConverter.UUIDKey
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static StringKeyConverter.ULongKeyINSTANCE
 - 
Constructor SummaryConstructors Constructor Description ULongKey()
 - 
Method SummaryAll 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 thisStringKeyConverterbelongs to.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.models.map.common.StringKeyConverterfromStringSafe
 
- 
 
- 
- 
- 
Field Detail- 
INSTANCEpublic static final StringKeyConverter.ULongKey INSTANCE 
 
- 
 - 
Method Detail- 
keyToStringpublic String keyToString(Long key) Description copied from interface:StringKeyConverterReturns String representation of the key from native representation- Specified by:
- keyToStringin interface- StringKeyConverter<Long>
- Returns:
- See above
 
 - 
fromStringpublic Long fromString(String key) Description copied from interface:StringKeyConverterReturns native representation of the key from String representation- Specified by:
- fromStringin interface- StringKeyConverter<Long>
- Returns:
- See above
 
 - 
yieldNewUniqueKeypublic Long 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 interface- StringKeyConverter<Long>
- Returns:
 
 
- 
 
-