public interface TypeConverter
| 限定符和类型 | 方法和说明 |
|---|---|
<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.
|
default SQLDataException |
objectConversionException(Object value,
Class clazz) |
<T> T convert(Object value, Class<T> clazz, Map<String,Object> conversionParams) throws SQLException
This implements the aspect of the JDBC spec that specifies multiple JDBCTypes on which a ResultSet getter method may be called.
T - 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.default SQLDataException objectConversionException(Object value, Class clazz)
Copyright © 2022. All rights reserved.