Class ArrayHandler

java.lang.Object
org.apache.commons.dbutils.handlers.ArrayHandler
All Implemented Interfaces:
ResultSetHandler<Object[]>

public class ArrayHandler extends Object implements ResultSetHandler<Object[]>
ResultSetHandler implementation that converts a ResultSet into an Object[]. This class is thread safe.
See Also:
  • Field Details

    • ROW_PROCESSOR

      static final RowProcessor ROW_PROCESSOR
      Singleton processor instance that handlers share to save memory. Notice the default scoping to allow only classes in this package to use this instance.
    • EMPTY_ARRAY

      private static final Object[] EMPTY_ARRAY
      An empty array to return when no more rows are available in the ResultSet.
    • convert

      private final RowProcessor convert
      The RowProcessor implementation to use when converting rows into arrays.
  • Constructor Details

    • ArrayHandler

      public ArrayHandler()
      Creates a new instance of ArrayHandler using a BasicRowProcessor for conversion.
    • ArrayHandler

      public ArrayHandler(RowProcessor convert)
      Creates a new instance of ArrayHandler.
      Parameters:
      convert - The RowProcessor implementation to use when converting rows into arrays.
  • Method Details