public abstract class BaseTypeConverter extends Object implements TypeConverter
| 构造器和说明 |
|---|
BaseTypeConverter() |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> T |
convert(Object value,
Class<T> clazz,
Map<String,Object> conversionParams)
This method allows retrieving a column value as an instance of
a different class than the default Java class that the column's
JDBCType maps to.
|
abstract Class |
getDefaultJavaClass() |
abstract Set<Class> |
getSupportedJavaClasses() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitobjectConversionExceptionpublic <T> T convert(Object value, Class<T> clazz, Map<String,Object> conversionParams) throws SQLException
TypeConverterThis implements the aspect of the JDBC spec that specifies multiple JDBCTypes on which a ResultSet getter method may be called.
convert 在接口中 TypeConverterT - Type of the Java Classvalue - Column valueclazz - Instance of the Class to which the value needs to be
convertedconversionParams - Optional conversion parameters to use in
the conversionSQLException - if the conversion is not supported or the
conversion operation fails.public abstract Class getDefaultJavaClass()
Copyright © 2022. All rights reserved.