public class ArrayListHandler extends AbstractListHandler<Object[]>
ResultSetHandler
implementation that converts the
ResultSet
into a List
of Object[]
s.
This class is thread safe.ResultSetHandler
Constructor and Description |
---|
ArrayListHandler()
Creates a new instance of ArrayListHandler using a
BasicRowProcessor for conversions. |
ArrayListHandler(RowProcessor convert)
Creates a new instance of ArrayListHandler.
|
Modifier and Type | Method and Description |
---|---|
protected Object[] |
handleRow(ResultSet resultSet)
Convert row's columns into an
Object[] . |
handle
public ArrayListHandler()
BasicRowProcessor
for conversions.public ArrayListHandler(RowProcessor convert)
convert
- The RowProcessor
implementation
to use when converting rows into Object[]s.protected Object[] handleRow(ResultSet resultSet) throws SQLException
Object[]
.handleRow
in class AbstractListHandler<Object[]>
resultSet
- ResultSet
to process.Object[]
, never null
.SQLException
- if a database access error occursAbstractListHandler.handle(ResultSet)
Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.