Class UuidTypeHandler
java.lang.Object
ch.tocco.nice2.types.spi.AbstractTypeHandler<UUID>
ch.tocco.nice2.types.spi.AbstractComparableTypeHandler<UUID>
ch.tocco.nice2.types.impl.handlers.UuidTypeHandler
- All Implemented Interfaces:
TypeHandler<UUID>
-
Field Summary
Fields inherited from class ch.tocco.nice2.types.spi.AbstractTypeHandler
baseHandler, type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintShould primarily be used for ordering instead of equality as some implementations are case-insensitive.Does not support/allow an empty value, thus returns null.booleanbooleanbooleanMethods inherited from class ch.tocco.nice2.types.spi.AbstractTypeHandler
contains, init, isBoolean, isEqual, isolate, matches, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ch.tocco.nice2.types.spi.TypeHandler
getGenerationType
-
Constructor Details
-
UuidTypeHandler
public UuidTypeHandler()
-
-
Method Details
-
asObject
- Throws:
StringConversionException
-
asString
- Specified by:
asStringin interfaceTypeHandler<UUID>- Overrides:
asStringin classAbstractTypeHandler<UUID>
-
isNumeric
public boolean isNumeric()- See Also:
-
isChronological
public boolean isChronological()- See Also:
-
getEmptyValue
Does not support/allow an empty value, thus returns null.- Returns:
- Null
- See Also:
-
compare
Description copied from interface:TypeHandlerShould primarily be used for ordering instead of equality as some implementations are case-insensitive.- Specified by:
comparein interfaceTypeHandler<UUID>- Overrides:
comparein classAbstractComparableTypeHandler<UUID>
-
shouldBeUnique
public boolean shouldBeUnique()- Specified by:
shouldBeUniquein interfaceTypeHandler<UUID>- Overrides:
shouldBeUniquein classAbstractTypeHandler<UUID>- See Also:
-