com.jenkov.mrpersister.impl.mapping.method
Class ArraySetterMapping

java.lang.Object
  extended by com.jenkov.mrpersister.impl.mapping.method.MethodMapping
      extended by com.jenkov.mrpersister.impl.mapping.method.SetterMapping
          extended by 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

Field Summary
 
Fields inherited from class com.jenkov.mrpersister.impl.mapping.method.MethodMapping
columnName, columnType, isPrimaryKey, isTableMapped, objectMethod
 
Constructor Summary
ArraySetterMapping()
           
 
Method Summary
 java.lang.Object getValueFromResultSetDo(java.sql.ResultSet result)
           
protected  void insertValueIntoObjectDo(java.lang.Object target, java.sql.ResultSet result)
           
 
Methods inherited from class com.jenkov.mrpersister.impl.mapping.method.SetterMapping
getValueFromResultSet, insertValueIntoObject
 
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
 
Methods inherited from interface com.jenkov.mrpersister.itf.mapping.IMethodMapping
getColumnName, getColumnType, getObjectMethod, isPrimaryKey, isTableMapped, setColumnName, setColumnType, setObjectMethod, setPrimaryKey, setTableMapped
 

Constructor Detail

ArraySetterMapping

public ArraySetterMapping()
Method Detail

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