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 Time
fromJavaObject(LocalTime object)
Class<Time>
getTargetType()
Class<LocalTime>
getValueType()
String
toCacheKey(LocalTime object)
Returned value should be same for objects that is logically equal.LocalTime
toJavaObject(Time value)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cayenne.access.types.ValueObjectType
equals
-
-
-
-
Method Detail
-
getTargetType
public Class<Time> getTargetType()
- Specified by:
getTargetType
in interfaceValueObjectType<LocalTime,Time>
- Returns:
- base type used to serialize V objects to.
-
getValueType
public Class<LocalTime> getValueType()
- Specified by:
getValueType
in interfaceValueObjectType<LocalTime,Time>
- Returns:
- type of Objects described by this ValueObjectType.
-
toJavaObject
public LocalTime toJavaObject(Time value)
- Specified by:
toJavaObject
in interfaceValueObjectType<LocalTime,Time>
- Parameters:
value
- of type T- Returns:
- java object
-
fromJavaObject
public Time fromJavaObject(LocalTime object)
- Specified by:
fromJavaObject
in interfaceValueObjectType<LocalTime,Time>
- Parameters:
object
- java object- Returns:
- value of type T
-
toCacheKey
public String toCacheKey(LocalTime object)
Description copied from interface:ValueObjectType
Returned value should be same for objects that is logically equal.- Specified by:
toCacheKey
in interfaceValueObjectType<LocalTime,Time>
- Returns:
- String representation usable for cache.
-
-