Package org.apache.cayenne.access.types
Class UUIDValueType
- java.lang.Object
-
- org.apache.cayenne.access.types.UUIDValueType
-
- All Implemented Interfaces:
ValueObjectType<UUID,String>
public class UUIDValueType extends Object implements ValueObjectType<UUID,String>
- Since:
- 4.0
-
-
Constructor Summary
Constructors Constructor Description UUIDValueType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringfromJavaObject(UUID object)Class<String>getTargetType()Class<UUID>getValueType()StringtoCacheKey(UUID object)Returned value should be same for objects that is logically equal.UUIDtoJavaObject(String value)
-
-
-
Method Detail
-
getTargetType
public Class<String> getTargetType()
- Specified by:
getTargetTypein interfaceValueObjectType<UUID,String>- Returns:
- base type used to serialize V objects to.
-
getValueType
public Class<UUID> getValueType()
- Specified by:
getValueTypein interfaceValueObjectType<UUID,String>- Returns:
- type of Objects described by this ValueObjectType.
-
toJavaObject
public UUID toJavaObject(String value)
- Specified by:
toJavaObjectin interfaceValueObjectType<UUID,String>- Parameters:
value- of type T- Returns:
- java object
-
fromJavaObject
public String fromJavaObject(UUID object)
- Specified by:
fromJavaObjectin interfaceValueObjectType<UUID,String>- Parameters:
object- java object- Returns:
- value of type T
-
toCacheKey
public String toCacheKey(UUID object)
Description copied from interface:ValueObjectTypeReturned value should be same for objects that is logically equal.- Specified by:
toCacheKeyin interfaceValueObjectType<UUID,String>- Returns:
- String representation usable for cache.
-
-