com.jenkov.mrpersister.impl.mapping.method
Class ByteArraySetterMapping
java.lang.Object
com.jenkov.mrpersister.impl.mapping.method.MethodMapping
com.jenkov.mrpersister.impl.mapping.method.SetterMapping
com.jenkov.mrpersister.impl.mapping.method.ByteArraySetterMapping
- All Implemented Interfaces:
- IMethodMapping, ISetterMapping, java.lang.Comparable
public class ByteArraySetterMapping
- extends SetterMapping
A subclass of the SetterMapping
capable of reading
a byte array (byte[]
) 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 |
ByteArraySetterMapping
public ByteArraySetterMapping()
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