モジュール org.nkjmlab.sorm4j
クラス JacksonColumnValueToJavaObjectConverter
- java.lang.Object
-
- org.nkjmlab.sorm4j.util.jackson.JacksonColumnValueToJavaObjectConverter
-
- すべての実装されたインタフェース:
ColumnValueToJavaObjectConverter
public class JacksonColumnValueToJavaObjectConverter extends Object implements ColumnValueToJavaObjectConverter
-
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 JacksonColumnValueToJavaObjectConverter(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
メソッドの概要
すべてのメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 ObjectconvertTo(ResultSet resultSet, int columnIndex, int columnType, Class<?> toType)booleantest(Class<?> toType)
-
-
-
メソッドの詳細
-
test
public boolean test(Class<?> toType)
- 定義:
testインタフェース内ColumnValueToJavaObjectConverter
-
convertTo
public Object convertTo(ResultSet resultSet, int columnIndex, int columnType, Class<?> toType) throws SQLException
インタフェースからコピーされた説明:ColumnValueToJavaObjectConverterReads a column from the current row in the providedResultSetand returns an instance of the specified JavaClasscontaining the values read. This method is mainly used for converting the result of query. i.e. Convert from Sql to Java by the specified class. This method is used while convertingResultSetrows to objects. The class type is the field type in the target bean. null's will be respected for any non-native types. This means that if a field is of type Integer it will be able to receive a null value from the ResultSet; on the other hand, if a field is of type int it will receive 0 for a null value from theResultSet.- 定義:
convertToインタフェース内ColumnValueToJavaObjectConverter- パラメータ:
resultSet-ResultSet(positioned in the row to be processed)columnIndex- column index in the result set (starting with 1)toType-Classof the object to be returned- 例外:
SQLException
-
-