モジュール org.nkjmlab.sorm4j
クラス DefaultColumnValueToJavaObjectConverters
java.lang.Object
org.nkjmlab.sorm4j.context.DefaultColumnValueToJavaObjectConverters
- すべての実装されたインタフェース:
ColumnValueToJavaObjectConverters
public final class DefaultColumnValueToJavaObjectConverters
extends Object
implements ColumnValueToJavaObjectConverters
Default implementation of
ColumnValueToJavaObjectConverters- 作成者:
- nkjm
-
コンストラクタの概要
コンストラクタコンストラクタ説明DefaultColumnValueToJavaObjectConverters(Set<Class<?>> supportedReturnedTypes, ColumnValueToJavaObjectConverter... converters) -
メソッドの概要
修飾子とタイプメソッド説明<T> TbooleanisSupportedReturnedType(Class<?> objectClass) Returns the given type could be converted to Java object or not.
-
コンストラクタの詳細
-
DefaultColumnValueToJavaObjectConverters
public DefaultColumnValueToJavaObjectConverters(Set<Class<?>> supportedReturnedTypes, ColumnValueToJavaObjectConverter... converters) - パラメータ:
converters- the converter which corresponding to the key class is applied to the column value.
-
DefaultColumnValueToJavaObjectConverters
-
-
メソッドの詳細
-
isSupportedReturnedType
インタフェースからコピーされた説明:ColumnValueToJavaObjectConvertersReturns the given type could be converted to Java object or not.- 定義:
isSupportedReturnedTypeインタフェース内ColumnValueToJavaObjectConverters- 戻り値:
-
convertTo
インタフェースからコピーされた説明:ColumnValueToJavaObjectConvertersReads 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インタフェース内ColumnValueToJavaObjectConverters- パラメータ:
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
-