Interface IScriptedDataSetEventHandler
- All Superinterfaces:
IDataSetEventHandler
- All Known Implementing Classes:
ScriptedDataSetEventAdapter
Script event handler interface for a scripted data set
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close
(IDataSetInstance dataSet) Handle the close eventboolean
describe
(IDataSetInstance dataSet, IScriptedDataSetMetaData metaData) Method for Script Data Set to return dynamically generated data set metadata.boolean
fetch
(IDataSetInstance dataSet, IUpdatableDataSetRow row) Handle the fetch event.void
open
(IDataSetInstance dataSet) Handle the open eventMethods inherited from interface org.eclipse.birt.report.engine.api.script.eventhandler.IDataSetEventHandler
afterClose, afterOpen, beforeClose, beforeOpen, onFetch
-
Method Details
-
open
Handle the open event- Throws:
ScriptException
-
fetch
Handle the fetch event. Implementation should call methods on the row object to set data of the current row being fetched.- Returns:
- true if current data row has been populated. false if the last call to fetch has returned the last data row, and no more data is available.
- Throws:
ScriptException
-
close
Handle the close event- Throws:
ScriptException
-
describe
boolean describe(IDataSetInstance dataSet, IScriptedDataSetMetaData metaData) throws ScriptException Method for Script Data Set to return dynamically generated data set metadata. This method is called before the open event is fired. If the data set implementation has dynamically generated metadata, it should call the addColumn method on the metaData object to add all its column definition, then return true. If the data set implementation uses the static metadata defined in the data set design , it should return false.- Throws:
ScriptException
-