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.
|
| Modifier and Type | Method and Description |
|---|---|
Object[] |
handle(ResultSet rs)
Places the column values from the first row in an
Object[]. |
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.ResultSet
an empty array will be returned.SQLException - if a database access error occursResultSetHandler.handle(java.sql.ResultSet)Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.