company logo

Property :: repairBaseCollection - Repair superset (base collection) hierarchy

For some reason, elements of a subset have not been added to its superset. This might happen, when an application terminates abnormally while writing a transaction to the database.

The function adds the selected instance to the superset (when not existing). The function returns 0, when everything was ok (no elements missed in the superset), 1 when one the selected instance had been added to the superset and -1 in case of error (e.g. no instance selected).

Return value:  Number of items ( int32  )

The value contains the number of items to be processed or stored in a collection.

Implementation details

int32 Property  :: repairBaseCollection (  )

The function checks, whether the selected instance is also element of its superset. If not, it will be added to the superset and next superset in the hierarchy (when existing) will be checked.