org.mentawai.converter
Class SQLToUtilDateConverter
java.lang.Object
org.mentawai.converter.BasicConverter
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)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SQLToUtilDateConverter
public SQLToUtilDateConverter()
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 © 2012. All Rights Reserved.