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