org.opengts.dbtools
Interface DBRecordHandler<RT extends DBRecord>
- All Known Implementing Classes: 
- DailySummaryReport, DigitalIOReport, DriverReport, EntityReport, GeozoneDepartReport, GeozoneReport, MotionReport, TripReport, UnassignedDevicesReport
- public interface DBRecordHandler<RT extends DBRecord> 
DBRecordHandler is the interface for a callback SQL record handler.
 
| Method Summary | 
|  int | handleDBRecord(RT rcd)Callback handler for DBRecords retrieved from a database select
 | 
 
DBRH_SKIP
static final int DBRH_SKIP
- See Also:
- Constant Field Values
DBRH_STOP
static final int DBRH_STOP
- See Also:
- Constant Field Values
DBRH_SAVE
static final int DBRH_SAVE
- See Also:
- Constant Field Values
DBRH_SAVE_STOP
static final int DBRH_SAVE_STOP
- See Also:
- Constant Field Values
DBRH_SAVE_LAST
static final int DBRH_SAVE_LAST
- See Also:
- Constant Field Values
DBRH_SAVE_LAST_STOP
static final int DBRH_SAVE_LAST_STOP
- See Also:
- Constant Field Values
handleDBRecord
int handleDBRecord(RT rcd)
                   throws DBException
- Callback handler for DBRecords retrieved from a database select
 
- 
- Parameters:
- rcd- The DBRecord
- Returns:
- The implementation method should return one of the following values:
 DBRH_SKIP      - skip current record and continue
 DBRH_STOP      - skip current record and stop
 DBRH_SAVE      - save current record and continue
 DBRH_SAVE_STOP - save current record and stop
 DBRH_SAVE_LAST - save prior record and continue
 Any saved records will be returned in an array to the original calling thread.
- Throws:
- DBException