com.jenkov.mrpersister.impl.mapping.method
Class ArraySetterMapping
java.lang.Object
com.jenkov.mrpersister.impl.mapping.method.MethodMapping
com.jenkov.mrpersister.impl.mapping.method.SetterMapping
com.jenkov.mrpersister.impl.mapping.method.ArraySetterMapping
- All Implemented Interfaces:
- IMethodMapping, ISetterMapping, java.lang.Comparable
public class ArraySetterMapping
- extends SetterMapping
A subclass of the SetterMapping
capable of reading
an Array
from a ResultSet
instance and insert it into a target object, by calling the target
object matching setter method.
- Author:
- Jakob Jenkov, Jenkov Development
Methods inherited from class com.jenkov.mrpersister.impl.mapping.method.MethodMapping |
compareTo, equals, getColumnName, getColumnType, getObjectMethod, hashCode, isNumberType, isPrimaryKey, isStringType, isTableMapped, setColumnName, setColumnType, setObjectMethod, setPrimaryKey, setTableMapped, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ArraySetterMapping
public ArraySetterMapping()
insertValueIntoObjectDo
protected void insertValueIntoObjectDo(java.lang.Object target,
java.sql.ResultSet result)
throws java.sql.SQLException,
java.lang.reflect.InvocationTargetException,
java.lang.IllegalAccessException
- Overrides:
insertValueIntoObjectDo
in class SetterMapping
- Throws:
java.sql.SQLException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
getValueFromResultSetDo
public java.lang.Object getValueFromResultSetDo(java.sql.ResultSet result)
throws java.sql.SQLException
- Overrides:
getValueFromResultSetDo
in class SetterMapping
- Throws:
java.sql.SQLException