Interface TableListener
- All Known Implementing Classes:
AbstractTableListener
public interface TableListener
Listener which can provided to an API which "constructs" a table (for example in
ReportService
)
to allow for streaming management of table data, rather than bringing all into memory at once.-
Method Summary
Modifier and Type Method Description void
beginTable(TableMetaData tableMetaData)
This event is fired just after the TableMetaData is constructed and before TableRows are constructed.void
endTable()
This event is fired when all TableRows are constructed to allow implementors to perform cleanup operations.void
processRow(TableRow tableRow)
This event is fired sequentially as each TableRow is constructed; interested parties can listen to this method to process each row.
-
Method Details
-
beginTable
This event is fired just after the TableMetaData is constructed and before TableRows are constructed.- Parameters:
tableMetaData
- describes the table structure- Throws:
TableListenerException
- - processing will abort if this exception is thrown.
-
processRow
This event is fired sequentially as each TableRow is constructed; interested parties can listen to this method to process each row.- Parameters:
tableRow
- row being processed- Throws:
TableListenerException
- - processing will abort if this exception is thrown.
-
endTable
This event is fired when all TableRows are constructed to allow implementors to perform cleanup operations.- Throws:
TableListenerException
- - processing will abort if this exception is thrown.
-