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