Package tilda.db.processors
Interface RecordProcessor
-
- All Known Implementing Classes:
BooleanRP
,DoubleArrayRP
,ExporterObjectProcessor
,ExporterObjectProcessorCSV
,ExporterObjectProcessorJSON
,ExporterRecordProcessor
,ExporterRecordProcessorCSVJSON
,JSONRecordProcessor
,LocalDateRP
,LongArrayRP
,RegexMatchingRP
,ScalarRP
,StringDateDateListRP
,StringListRP
,StringLongListRP
,StringMapRP
,StringRP
,StringStringListRP
,ZonedDateTimeRP
public interface RecordProcessor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
end(boolean hasMore, int maxCount)
Called after the last record has been processed successfullyboolean
process(int count, java.sql.ResultSet RS)
Called for each recorddefault void
start()
Called before the first record is processed
-
-
-
Method Detail
-
start
default void start() throws java.lang.Exception
Called before the first record is processed- Throws:
java.lang.Exception
-
process
boolean process(int count, java.sql.ResultSet RS) throws java.lang.Exception
Called for each record- Parameters:
count
- the count of the record being processed starting at 0 for the first recordRS
- the result set to be processed- Returns:
- whether this was successful or not. If false is returned, the process will be aborted.
- Throws:
java.lang.Exception
-
end
default void end(boolean hasMore, int maxCount) throws java.lang.Exception
Called after the last record has been processed successfully- Parameters:
hasMore
- whether there are more records to be processedmaxCount
- the max count originally supplied to the query handler- Throws:
java.lang.Exception
-
-