BBjRecordSetMappingSource

Creation Path


BBjAPI

|

+-- BBjRecordSet

    |

+-- BBjRecordSetMappingSource

   

Description

In BBj 8.0 and higher, BBjRecordSetMappingSource maps values to and from the presentation field.

Implemented Interfaces

BBjMappingSource

Creation

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

getBackField()

string

getFrontField()

BBjRecordSet

getRecordSet()

Methods of BBjRecordSetMappingSource implemented for BBjMappingAction

Return Value

Method

int

getType()

Remarks

The BBjRecordSetMappingSource uses two fields, frontField and backField.

When mapping 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

BBjAPI

BBjSysGui

BBjRecordSet

   BBjRecordSet::addMapping

BBjMappingSource

Working with RecordSet Mappings

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.



______________________________________________________________________________________

Copyright BASIS International Ltd. BBj®, Visual PRO/5®, PRO/5®, and BBx® are registered trademarks.