| org.apache.commons.dbutils.RowProcessor
All known Subclasses: org.apache.commons.dbutils.BasicRowProcessor,
RowProcessor | public interface RowProcessor (Code) | | RowProcessor implementations convert
ResultSet rows into various other objects. Implementations
can extend BasicRowProcessor to protect themselves
from changes to this interface.
See Also: BasicRowProcessor |
toArray | public Object[] toArray(ResultSet rs) throws SQLException(Code) | | Create an Object[] from the column values in one
ResultSet row. The ResultSet should be
positioned on a valid row before passing it to this method.
Implementations of this method must not alter the row position of
the ResultSet .
Parameters: rs - ResultSet that supplies the array data throws: SQLException - if a database access error occurs the newly created array |
toBean | public Object toBean(ResultSet rs, Class type) throws SQLException(Code) | | Create a JavaBean from the column values in one ResultSet
row. The ResultSet should be positioned on a valid row before
passing it to this method. Implementations of this method must not
alter the row position of the ResultSet .
Parameters: rs - ResultSet that supplies the bean data Parameters: type - Class from which to create the bean instance throws: SQLException - if a database access error occurs the newly created bean |
toBeanList | public List toBeanList(ResultSet rs, Class type) throws SQLException(Code) | | Create a List of JavaBeans from the column values in all
ResultSet rows. ResultSet.next() should
not be called before passing it to this method.
Parameters: rs - ResultSet that supplies the bean data Parameters: type - Class from which to create the bean instance throws: SQLException - if a database access error occurs A List of beans with the given type in the order they were returned by the ResultSet . |
toMap | public Map toMap(ResultSet rs) throws SQLException(Code) | | Create a Map from the column values in one
ResultSet row. The ResultSet should be
positioned on a valid row before
passing it to this method. Implementations of this method must not
alter the row position of the ResultSet .
Parameters: rs - ResultSet that supplies the map data throws: SQLException - if a database access error occurs the newly created Map |
|
|