TIB_DataPump Object
Properties Methods Events

Unit
IB_DataPump

Declaration
TIB_DataPump = class(TIB_DataScan)

Description
This component is used to move data from a query into a prepared statement with input parameters where each input parameter is handled as a data pump item.

There are four modes of item handling:


1) Direct binding to the same point as the source fetching buffers.
2) Assigning using default type conversion.
3) Customized item handling.
4) AfterFetchRow event processing.

Use the AfterFetchRow event to finish assigning values to the input parameters that need customized attention. Be sure to NOT refer to the Dataset SrcDataset since it is NOT the actual dataset being used to feed the process. It is using an internal cursor that is passed in as a parameter the the event. You should refer to the Statement though.

Introduced Public Properties
DPItemActions  This property tells how the column assignments were made upon preparing the process.
DPItemAttributes  Special flags to create custom data handling like trimming the strings, etc.
DstLinks  This stores the input parameter names and the corresponding field names from the output dataset that line up field to field.
DstRow  Row used to receive the stream of data.
DstStatement  Reference to the Statement that is to be DataPumped into.
SrcDataset  SrcDataset dataset to get the input data from.
SrcRow  Row used to generate the stream of data.

Introduced Public Methods
Create
Destroy
GetDPItemClasses   This method will populate a TStrings with the names of the classes that are available to the data pump component.

Introduced Public Events
OnGetDPItem  This event allows a custom designed class to be passed in in order to process a data pump item.
OnGetDPItemClasses  This event is used to supply the names of classes available to the datapump.