クラス FieldAccessor
- java.lang.Object
-
- org.nkjmlab.sorm4j.context.FieldAccessor
-
public final class FieldAccessor extends Object
Field accessor mapping to the columnName.- 作成者:
- nkjm
-
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 FieldAccessor(String columnName, Field field, Method getter, Method setter)
-
メソッドの概要
すべてのメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 Objectget(Object object)Gets the value from the corresponding field by getter method/field access.StringgetFormattedString()Class<?>getSetterParameterType()Gets parameter type of setter method/field access.voidset(Object object, Object value)Sets the given value to the corresponding field by setter method/field access.StringtoString()
-
-
-
メソッドの詳細
-
get
public Object get(Object object) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
Gets the value from the corresponding field by getter method/field access.- パラメータ:
object-- 戻り値:
- 例外:
IllegalAccessExceptionIllegalArgumentExceptionInvocationTargetException
-
set
public void set(Object object, Object value) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
Sets the given value to the corresponding field by setter method/field access.- パラメータ:
object-value-- 例外:
IllegalAccessExceptionIllegalArgumentExceptionInvocationTargetException
-
getSetterParameterType
public final Class<?> getSetterParameterType()
Gets parameter type of setter method/field access.- 戻り値:
-
getFormattedString
public String getFormattedString()
-
-