public static class DateAndTimeConverters.XmlGregorianCalendarToSqlDateConverter extends BidirectionalConverter<C,D>
destinationType, mapperFacade, sourceType| Constructor and Description |
|---|
XmlGregorianCalendarToSqlDateConverter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConvert(Type<?> sourceType,
Type<?> destinationType)
Answers whether this converter can be used to handle the conversion of
sourceType to destinationType. |
XMLGregorianCalendar |
convertFrom(Date source,
Type<XMLGregorianCalendar> destinationType,
MappingContext context) |
Date |
convertTo(XMLGregorianCalendar source,
Type<Date> destinationType,
MappingContext context) |
boolean |
equals(Object o) |
BidirectionalConverter<D,C> |
reverse() |
String |
toString() |
convertgetAType, getBType, hashCode, setMapperFacadeclone, finalize, getClass, notify, notifyAll, wait, wait, waitsetMapperFacadegetAType, getBTypepublic XmlGregorianCalendarToSqlDateConverter()
public Date convertTo(XMLGregorianCalendar source, Type<Date> destinationType, MappingContext context)
convertTo in class BidirectionalConverter<XMLGregorianCalendar,Date>public XMLGregorianCalendar convertFrom(Date source, Type<XMLGregorianCalendar> destinationType, MappingContext context)
convertFrom in class BidirectionalConverter<XMLGregorianCalendar,Date>public boolean canConvert(Type<?> sourceType, Type<?> destinationType)
ConvertersourceType to destinationType.canConvert in interface Converter<Object,Object>canConvert in class BidirectionalConverter<XMLGregorianCalendar,Date>public BidirectionalConverter<D,C> reverse()
reverse in class BidirectionalConverter<C,D>public String toString()
toString in class BidirectionalConverter<C,D>public boolean equals(Object o)
equals in class CustomConverter<Object,Object>Copyright © 2016 Glasnost. All rights reserved.