org.apache.wicket.util.convert.converter
Class SqlTimeConverter

java.lang.Object
  extended by org.apache.wicket.util.convert.converter.AbstractConverter<java.sql.Time>
      extended by org.apache.wicket.util.convert.converter.SqlTimeConverter
All Implemented Interfaces:
java.io.Serializable, IClusterable, IConverter<java.sql.Time>

public class SqlTimeConverter
extends AbstractConverter<java.sql.Time>

Converts to Time.

See Also:
Serialized Form

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

Constructor Detail

SqlTimeConverter

public SqlTimeConverter()
Method Detail

convertToObject

public java.sql.Time 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 convert
locale - The locale used to convert the value
Returns:
The converted value
See Also:
DateConverter.convertToObject(java.lang.String,java.util.Locale)

convertToString

public java.lang.String convertToString(java.sql.Time time,
                                        java.util.Locale locale)
Description copied from interface: IConverter
Converts the given value to a string.

Specified by:
convertToString in interface IConverter<java.sql.Time>
Overrides:
convertToString in class AbstractConverter<java.sql.Time>
Parameters:
time - The value to convert
locale - The locale used to convert the value
Returns:
The converted string value
See Also:
IConverter.convertToString(java.lang.Object, Locale)

getTargetType

protected java.lang.Class<java.sql.Time> getTargetType()
Specified by:
getTargetType in class AbstractConverter<java.sql.Time>
Returns:
The target type of this type converter


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