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

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.UrlSetterMapping
All Implemented Interfaces:
IMethodMapping, ISetterMapping, java.lang.Comparable

public class UrlSetterMapping
extends SetterMapping

A subclass of the SetterMapping capable of reading a URL 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
UrlSetterMapping()
           
 
Method Summary
protected  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

UrlSetterMapping

public UrlSetterMapping()
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

protected java.lang.Object getValueFromResultSetDo(java.sql.ResultSet result)
                                            throws java.sql.SQLException
Overrides:
getValueFromResultSetDo in class SetterMapping
Throws:
java.sql.SQLException