public class ArrayHandler extends Object implements ResultSetHandler<Object[]>
ResultSetHandler
implementation that converts a
ResultSet
into an Object[]
. This class is
thread safe.ResultSetHandler
Constructor and Description |
---|
ArrayHandler()
Creates a new instance of ArrayHandler using a
BasicRowProcessor for conversion. |
ArrayHandler(RowProcessor convert)
Creates a new instance of ArrayHandler.
|
public ArrayHandler()
BasicRowProcessor
for conversion.public ArrayHandler(RowProcessor convert)
convert
- The RowProcessor
implementation
to use when converting rows into arrays.public Object[] handle(ResultSet rs) throws SQLException
Object[]
.handle
in interface ResultSetHandler<Object[]>
rs
- ResultSet
to process.null
if there are no rows in the
ResultSet
.SQLException
- if a database access error occursResultSetHandler.handle(java.sql.ResultSet)
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.