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.
|
Method Summary |
boolean |
next(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 void |
onNext(Map<String,Object> row)
Called when a new row is encountered. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RowListenerAdapter
public RowListenerAdapter()
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.
Copyright © 2015 JavaLite. All rights reserved.