Package org.javalite.activejdbc
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 Summary
Constructors Constructor Description RowListenerAdapter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleannext(Map<String,Object> row)Implementations of this interface can return "false" from the next() method in order to stop fetching more results from DB.abstract voidonNext(Map<String,Object> row)Called when a new row is encountered.
-
-
-
Method Detail
-
next
public final boolean next(Map<String,Object> row)
Description copied from interface:RowListenerImplementations 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:
nextin interfaceRowListener- 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)
-
-