ma.glasnost.orika.converter.builtin
Class DateAndTimeConverters.XmlGregorianCalendarToSqlDateConverter

java.lang.Object
  extended by ma.glasnost.orika.CustomConverter<XMLGregorianCalendar,Date>
      extended by ma.glasnost.orika.converter.builtin.DateAndTimeConverters.XmlGregorianCalendarToSqlDateConverter
All Implemented Interfaces:
Converter<XMLGregorianCalendar,Date>, MappedTypePair<XMLGregorianCalendar,Date>
Enclosing class:
DateAndTimeConverters

public static class DateAndTimeConverters.XmlGregorianCalendarToSqlDateConverter
extends CustomConverter<XMLGregorianCalendar,Date>

Provides conversion between XMLGregorianCalendar and java.sql.Date

Author:
matt.deboer@gmail.com

Field Summary
 
Fields inherited from class ma.glasnost.orika.CustomConverter
destinationType, mapperFacade, sourceType
 
Constructor Summary
DateAndTimeConverters.XmlGregorianCalendarToSqlDateConverter()
           
 
Method Summary
 Date convert(XMLGregorianCalendar source, Type<? extends Date> destinationType)
          Perform the conversion of source into a new instance of destinationType.
 
Methods inherited from class ma.glasnost.orika.CustomConverter
canConvert, getAType, getBType, setMapperFacade, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DateAndTimeConverters.XmlGregorianCalendarToSqlDateConverter

public DateAndTimeConverters.XmlGregorianCalendarToSqlDateConverter()
Method Detail

convert

public Date convert(XMLGregorianCalendar source,
                    Type<? extends Date> destinationType)
Description copied from interface: Converter
Perform the conversion of source into a new instance of destinationType.

Parameters:
source - the source object to be converted
destinationType - the destination type to produce
Returns:
a new instance of destinationType


Copyright © 2013 Glasnost. All Rights Reserved.