wwCollectionList::SaveToCursor

Saves each of the items in the array to disk using individual item Save() calls. Loads the oData member for each operation then performs a .Save() for each if the object is a business object.

o.SaveToCursor(llCollectionHoldsClass, llUseTransaction)

Return Value

.T. or .F.

Parameters

llCollectionHoldsClass
If .T. the collection contains a full wwBusiness object class and this method will call the .Save() method to write the object to the database.

If .F. the data is copied from the array element to the oData member and then the base object's Save() method is called for each item.

llUseTransaction
If .T. wraps the entire method operation into a BEGIN TRANSACTION block

Remarks

This method will update any changed records or add new records, but not handle removed records. This mechanism does not detect any removed records and makes no attempts of fixing those up. It's up to your code to deal with delete operations against the Database explicitly.

This method loops through all Db records and calls .Save() on a business object to write each item to the table.


See also:

Class wwCollectionList

© West Wind Technologies, 1996-2018 • Updated: 11/09/18
Comment or report problem with topic