public class SqlTimestampConverter extends Object implements org.apache.commons.beanutils.Converter
| 限定符和类型 | 字段和说明 |
|---|---|
static String[] |
DATE_FORMATS
Field description
|
static org.apache.commons.beanutils.Converter |
SQL_TIMESTAMP |
| 构造器和说明 |
|---|
SqlTimestampConverter()
Create a
Converter that will throw a ConversionException if a conversion error occurs. |
SqlTimestampConverter(Object defaultValue)
Create a
Converter that will return the specified default value if a conversion error occurs. |
public static final String[] DATE_FORMATS
public static final org.apache.commons.beanutils.Converter SQL_TIMESTAMP
public SqlTimestampConverter()
Converter that will throw a ConversionException if a conversion error occurs.public SqlTimestampConverter(Object defaultValue)
Converter that will return the specified default value if a conversion error occurs.defaultValue - The default value to be returnedpublic Object convert(Class type, Object value)
convert 在接口中 org.apache.commons.beanutils.Convertertype - Data type to which this value should be convertedvalue - The input value to be convertedorg.apache.commons.beanutils.ConversionException - if conversion cannot be performed successfullyCopyright © 2018. All rights reserved.