The AbstractRowset class holds the basic functionality of the rowset.


Methods

delete ()

This method will delete all the contained row objects.

Returned Value

Promise: A promise containing the current rowset object.


getData ()

This mehtod returns an array with all the data of the contained Row objects.

Returned Value

Array: The data in Array form.


getRow ()

This methods creates a new row object connected to this rowset.

Returned Value

AbstractRow | DefaultRow: The row object connected to this rowset.


getRow ()

This methods creates a new row object connected to this rowset.

Returned Value

AbstractRow | DefaultRow: The row object connected to this rowset.


isNew (state)

This method will set the isNew state on all containing Row objects.

Parameters

Name Type Description
state Boolean The is new state to set.

Returned Value

AbstractRowset: The current object for chaining.


save ()

This method will save all the contained row objects.

Returned Value

Promise: A promise containing the current rowset object.


setData (dataset)

This method will set the received array on individual Row objects, which are related to the current RowSet object.

If the dataset parameter isn't an array, the current Rowset is return without any row objects.

Parameters

Name Type Description
dataset Array The data to set.

Returned Value

Promise: A promise containing the current rowset object.