com.syrtsov.ddao
Interface SelectCallback<T>
public interface SelectCallback<T>
SelectCallback is callback interface that can be used together with Select
query annotation. When method associated with Select query has return type void
it assumed to be using callback. Handler will find first method argument implemennting
this interface and will invoke process record for each record that query returns.
Created by: Pavel Syrtsov
Date: Apr 6, 2007
Time: 7:17:36 PM
Method Summary |
boolean |
processRecord(T record)
this method will be invoked for each record that query returns. |
processRecord
boolean processRecord(T record)
- this method will be invoked for each record that query returns.
- Parameters:
record
- - object that query record is mapped to.
- Returns:
- true if more records should be processed,
if return value is false record processing will be stopped