Class RowListenerAdapter

java.lang.Object
org.javalite.activejdbc.RowListenerAdapter
All Implemented Interfaces:
RowListener

public abstract class RowListenerAdapter extends Object implements RowListener
Use this class in cases where you need to process an entire result set. It returns true from "next()" method.
  • Constructor Details

    • RowListenerAdapter

      public RowListenerAdapter()
  • Method Details

    • next

      public final boolean next(Map<String,​Object> row)
      Description copied from interface: RowListener
      Implementations of this interface can return "false" from the next() method in order to stop fetching more results from DB. Immediately after returning "false", ActiveJDBC will close JDBC resources associated with this request: Statement and ResultSet.
      Specified by:
      next in interface RowListener
      Parameters:
      row - Map instance containing values for a row. Keys are names of columns and values are .. values.
      Returns:
      false if this listener needs to stop processing (no more calls to this method)
    • onNext

      public abstract void onNext(Map<String,​Object> row)
      Called when a new row is encountered.
      Parameters:
      row - Map instance containing values for a row. Keys are names of columns and values are .. values.