public class PeriodValueType extends Object implements ValueObjectType<Period,String>
Constructor and Description |
---|
PeriodValueType() |
Modifier and Type | Method and Description |
---|---|
String |
fromJavaObject(Period object) |
Class<String> |
getTargetType() |
Class<Period> |
getValueType() |
String |
toCacheKey(Period object)
Returned value should be same for objects that is logically equal.
|
Period |
toJavaObject(String value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals
public Class<String> getTargetType()
getTargetType
in interface ValueObjectType<Period,String>
public Class<Period> getValueType()
getValueType
in interface ValueObjectType<Period,String>
public Period toJavaObject(String value)
toJavaObject
in interface ValueObjectType<Period,String>
value
- of type Tpublic String fromJavaObject(Period object)
fromJavaObject
in interface ValueObjectType<Period,String>
object
- java objectpublic String toCacheKey(Period object)
ValueObjectType
toCacheKey
in interface ValueObjectType<Period,String>
Copyright © 2001–2021 Apache Cayenne. All rights reserved.