org.apache.wicket.util.convert.converters
Class SqlDateConverter

java.lang.Object
  extended by org.apache.wicket.util.convert.converters.AbstractConverter
      extended by org.apache.wicket.util.convert.converters.SqlDateConverter
All Implemented Interfaces:
Serializable, IClusterable, IConverter

public class SqlDateConverter
extends AbstractConverter

Converts to Date.

See Also:
Serialized Form

Constructor Summary
SqlDateConverter()
           
 
Method Summary
 Date convertToObject(String value, Locale locale)
          Converts the given String value
 String convertToString(Object value, Locale locale)
          Converts the given value to a string.
 DateFormat getDateFormat(Locale locale)
           
protected  Class<Date> getTargetType()
           
 
Methods inherited from class org.apache.wicket.util.convert.converters.AbstractConverter
newConversionException, parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlDateConverter

public SqlDateConverter()
Method Detail

convertToObject

public Date convertToObject(String value,
                            Locale locale)
Description copied from interface: IConverter
Converts the given String value

Parameters:
value - The string value to convert
locale - The locale used to convert the value
Returns:
The converted value
See Also:
IConverter.convertToObject(java.lang.String,Locale)

convertToString

public String convertToString(Object value,
                              Locale locale)
Description copied from interface: IConverter
Converts the given value to a string.

Specified by:
convertToString in interface IConverter
Overrides:
convertToString in class AbstractConverter
Parameters:
value - The value to convert
locale - The locale used to convert the value
Returns:
The converted string value
See Also:
DateConverter.convertToObject(java.lang.String, java.util.Locale)

getDateFormat

public DateFormat getDateFormat(Locale locale)
Parameters:
locale -
Returns:
Returns the date format.

getTargetType

protected Class<Date> getTargetType()
Specified by:
getTargetType in class AbstractConverter
Returns:
The target type of this type converter


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.