org.mentawai.converter
Class SQLToUtilDateConverter

java.lang.Object
  extended by org.mentawai.converter.BasicConverter
      extended by org.mentawai.converter.SQLToUtilDateConverter
All Implemented Interfaces:
Converter

public class SQLToUtilDateConverter
extends BasicConverter

A converter for converting a java.sql.Date to a java.util.Date.

Author:
Rubem Azenha (rubem.azenha@gmail.com)

Constructor Summary
SQLToUtilDateConverter()
           
 
Method Summary
 Object convert(Object value)
          Converts a java.sql.Date to a java.util.Date.
 
Methods inherited from class org.mentawai.converter.BasicConverter
allowNull, convert
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLToUtilDateConverter

public SQLToUtilDateConverter()
Method Detail

convert

public Object convert(Object value)
               throws ConversionException
Converts a java.sql.Date to a java.util.Date.

Specified by:
convert in class BasicConverter
Parameters:
value - the value to be converted
Returns:
the java.util.Date converted
Throws:
ConversionException - id the param value is not a java.sql.Date instance.


Copyright © 2013. All Rights Reserved.