Package org.javalite.activejdbc
Class RowListenerAdapter
java.lang.Object
org.javalite.activejdbc.RowListenerAdapter
- All Implemented Interfaces:
RowListener
Use this class in cases where you need to process an entire result set. It returns true from "next()" method.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
RowListenerAdapter
public RowListenerAdapter()
-
-
Method Details
-
next
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 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)
-
onNext
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.
-