org.apache.commons.beanutils.converters
Class SqlTimeConverter
- Converter
public final class SqlTimeConverter
DateTimeConverter
implementation that handles conversion to
and from
java.sql.Time objects.
This implementation can be configured to handle conversion either
by using java.sql.Time's default String conversion, or by using a
Locale's default format or by specifying a set of format patterns.
See the
DateTimeConverter
documentation for further details.
Can be configured to either return a
default value or throw a
ConversionException
if a conversion error occurs.
$Revision: 471352 $ $Date: 2006-11-05 03:34:09 +0000 (Sun, 05 Nov 2006) $
SqlTimeConverter() - Construct a java.sql.Time Converter that throws
a
ConversionException if an error occurs.
|
SqlTimeConverter(Object defaultValue) - Construct a java.sql.Time Converter that returns
a default value if an error occurs.
|
protected DateFormat | getFormat(Locale locale, TimeZone timeZone) - Return a
DateFormat for the Locale.
|
convertToString , convertToType , getFormat , getFormat , getLocale , getPatterns , getTimeZone , logFormat , parse , parse , setLocale , setPattern , setPatterns , setTimeZone , setUseLocaleFormat , toDate , toDate , toString |
convert , convertArray , convertToString , convertToType , getDefault , getDefaultType , handleError , handleMissing , isUseDefault , log , primitive , setDefaultValue , toString , toString |
SqlTimeConverter
public SqlTimeConverter()
Construct a java.sql.Time Converter that throws
a ConversionException
if an error occurs.
SqlTimeConverter
public SqlTimeConverter(Object defaultValue)
Construct a java.sql.Time Converter that returns
a default value if an error occurs.
defaultValue
- The default value to be returned
if the value to be converted is missing or an error
occurs converting the value.
getFormat
protected DateFormat getFormat(Locale locale,
TimeZone timeZone)
Return a DateFormat
for the Locale.
- getFormat in interface DateTimeConverter
locale
- TODOtimeZone
- TODO
Copyright (c) 2001-2007 - Apache Software Foundation