org.apache.wicket.util.convert.converters
Class SqlDateConverter
java.lang.Object
org.apache.wicket.util.convert.converters.AbstractConverter
org.apache.wicket.util.convert.converters.SqlDateConverter
- All Implemented Interfaces:
- java.io.Serializable, IClusterable, IConverter
public class SqlDateConverter
- extends AbstractConverter
Converts to Date.
- See Also:
- Serialized Form
|
Method Summary |
java.sql.Date |
convertToObject(java.lang.String value,
java.util.Locale locale)
Converts the given String value |
java.lang.String |
convertToString(java.lang.Object value,
java.util.Locale locale)
Converts the given value to a string. |
java.text.DateFormat |
getDateFormat(java.util.Locale locale)
|
protected java.lang.Class<java.sql.Date> |
getTargetType()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SqlDateConverter
public SqlDateConverter()
convertToObject
public java.sql.Date convertToObject(java.lang.String value,
java.util.Locale locale)
- Description copied from interface:
IConverter
- Converts the given
String value
- Parameters:
value - The string value to convertlocale - The locale used to convert the value
- Returns:
- The converted value
- See Also:
IConverter.convertToObject(java.lang.String,Locale)
convertToString
public java.lang.String convertToString(java.lang.Object value,
java.util.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 convertlocale - The locale used to convert the value
- Returns:
- The converted string value
- See Also:
DateConverter.convertToObject(java.lang.String,
java.util.Locale)
getDateFormat
public java.text.DateFormat getDateFormat(java.util.Locale locale)
- Parameters:
locale -
- Returns:
- Returns the date format.
getTargetType
protected java.lang.Class<java.sql.Date> getTargetType()
- Specified by:
getTargetType in class AbstractConverter
- Returns:
- The target type of this type converter
Copyright © 2004-2009 Apache Software Foundation. All Rights Reserved.