BBjRecordSetMappingSource
Description
In BBj 8.0 and higher, BBjRecordSetMappingSource maps values to and from the presentation field.
Implemented Interfaces
Creation
BBjAPI > BBjRecordSet > BBjRecordSetMappingSource
A BBjRecordSetMappingSource object is created through the following BBjRecordSet method method:
Return Value |
Method |
---|---|
BBjRecordSetMappingSource |
createRecordSetMappingSource(BBjRecord p_source, string backField, string frontField) |
Methods of BBjRecordSetMappingSource
Return Value |
Method |
---|---|
string |
|
string |
|
Methods of BBjRecordSetMappingSource implemented for BBjMappingAction
Return Value | Method |
---|---|
int | getType() |
Remarks
The BBjRecordSetMappingSource uses two fields, frontField and backField.
Whenmapping from disk->presentation: The BBjRecordSetMappingSource will provide the value in frontField if it finds ONE row in the underlying recordset whose backField value is equal to the diskValue. Otherwise, the mapping is handled by the secondary mapping action.
When mapping from presentation->disk: The BBjRecordSetMappingSource will provide the value in backField if it finds ONE row in the underlying recordset whose frontField value is equal to the presentationValue. Otherwise, the mapping is handled by the secondary mapping action.
Constants
None.
Example
See Also
Working with RecordSet Mappings
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.