|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.finalist.tools.database.RowMapper
Abstract class that database specific RowMappers should extend.
Constructor Summary | |
RowMapper()
|
Method Summary | |
abstract java.sql.PreparedStatement |
bind(java.sql.PreparedStatement pstmt,
java.lang.Object bindVar,
java.lang.String bindVarClassType,
int pos)
Method that binds an object of a specified type into a PreparedStatement and returns the PreparedStatement. |
abstract java.lang.Object |
unBindIntoBean(java.sql.ResultSet rset,
java.lang.Object target)
Method that reads the values from a ResultSet an populates the properties of a bean |
abstract java.util.HashMap |
unBindIntoHashMap(java.sql.ResultSet rset,
java.util.HashMap target)
Method that reads the values from a ResultSet for one row and stores them into a HashMap. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RowMapper()
Method Detail |
public abstract java.sql.PreparedStatement bind(java.sql.PreparedStatement pstmt, java.lang.Object bindVar, java.lang.String bindVarClassType, int pos) throws java.sql.SQLException, NotMappableException
pstmt
- PreparedStatement to which the object should be bound.bindVar
- the object that is to be bound.bindVarClassType
- the full classname that identifies the type of the classpos
- the position at which the object should be bound into the statement.
NotMappableException
- when no appropriate bind method could be found
java.sql.SQLException
public abstract java.util.HashMap unBindIntoHashMap(java.sql.ResultSet rset, java.util.HashMap target) throws java.sql.SQLException, NotMappableException
rset
- the resultset that serves a sourcetarget
- the HashMap in which the values will be stored
NotMappableException
- when no appropriate unbind method could be found
java.sql.SQLException
public abstract java.lang.Object unBindIntoBean(java.sql.ResultSet rset, java.lang.Object target) throws java.sql.SQLException, NotMappableException
rset
- the resultset that serves a sourcetarget
- the bean of which the properties should be set
NotMappableException
- when no appropriate unbind method could be found
java.sql.SQLException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |