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 resultSet)
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 resultSet) throws SQLException
Object[]
.handle
in interface ResultSetHandler<Object[]>
resultSet
- ResultSet
to process.ResultSet
an empty array will be returned.SQLException
- if a database access error occursResultSetHandler.handle(java.sql.ResultSet)
Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.