public class DateDateMidnightConverter extends Object implements TypeConverter<Date,org.joda.time.DateMidnight>
Date and DateMidnight.| Constructor and Description |
|---|
DateDateMidnightConverter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConvert(Type realToType,
Type realDomainType)
Can this type converter handle conversions between the given transfer and domain object types?
|
org.joda.time.DateMidnight |
convert(Date object,
SyntheticField domainField,
Object domainObject,
String... tags)
Convert a transfer object field value to the value for the domain object.
|
Date |
reverse(org.joda.time.DateMidnight object,
SyntheticField toField,
Object toObject,
String... tags)
Convert a domain object field value to the value for the transfer object.
|
public boolean canConvert(Type realToType, Type realDomainType)
TypeConvertercanConvert in interface TypeConverter<Date,org.joda.time.DateMidnight>realToType - real class for the type in the transfer objectrealDomainType - real class for the type in the domain objectpublic org.joda.time.DateMidnight convert(Date object, SyntheticField domainField, Object domainObject, String... tags) throws JTransfoException
TypeConverterconvert in interface TypeConverter<Date,org.joda.time.DateMidnight>object - object to convertdomainField - target domain fielddomainObject - target domain objecttags - tags which indicate which fields can be converted based on MapOnly annotations.JTransfoException - problem during type conversionpublic Date reverse(org.joda.time.DateMidnight object, SyntheticField toField, Object toObject, String... tags) throws JTransfoException
TypeConverterreverse in interface TypeConverter<Date,org.joda.time.DateMidnight>object - object to converttoField - target transfer object fieldtoObject - target transfer objecttags - tags which indicate which fields can be converted based on MapOnly annotations.JTransfoException - problem during type conversionCopyright © 2022. All rights reserved.