org.opengts.dbtools
Interface DBRecordHandler<RT extends DBRecord>

All Known Implementing Classes:
DailySummaryReport, DigitalIOReport, EntityReport, GeozoneDepartReport, GeozoneReport, MotionReport, TripReport, UnassignedDevicesReport

public interface DBRecordHandler<RT extends DBRecord>

DBRecordHandler is the interface for a callback SQL record handler.


Field Summary
static int DBRH_SAVE
           
static int DBRH_SKIP
           
static int DBRH_STOP
           
 
Method Summary
 int handleDBRecord(RT rcd)
          Callback handler for DBRecords retrieved from a database select
 

Field Detail

DBRH_STOP

static final int DBRH_STOP
See Also:
Constant Field Values

DBRH_SKIP

static final int DBRH_SKIP
See Also:
Constant Field Values

DBRH_SAVE

static final int DBRH_SAVE
See Also:
Constant Field Values
Method Detail

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 'DBRH_STOP' to stop the DBRecord selection/processing loop, or 'DBRH_SKIP' to skip the current record, or 'DBRH_SAVE' to save the current record to be return by the select method in an array of DBRecord's.
Throws:
DBException