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