AbstractRowset
The AbstractRowset class holds the basic functionality of the rowset.
lib/database/rowset/abstract.js:5
Methods
delete ()
Defined in
lib/database/rowset/abstract.js:76
This method will delete all the contained row objects.
Returned Value
Promise: A promise containing the current rowset object.
getData ()
Defined in
lib/database/rowset/abstract.js:122
This mehtod returns an array with all the data of the contained Row objects.
Returned Value
Array: The data in Array form.
getRow ()
Defined in
lib/database/rowset/abstract.js:17
This methods creates a new row object connected to this rowset.
Returned Value
AbstractRow | DefaultRow: The row object connected to this rowset.
getRow ()
Defined in
lib/database/rowset/abstract.js:31
This methods creates a new row object connected to this rowset.
Returned Value
AbstractRow | DefaultRow: The row object connected to this rowset.
isNew (state)
Defined in
lib/database/rowset/abstract.js:45
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 ()
Defined in
lib/database/rowset/abstract.js:60
This method will save all the contained row objects.
Returned Value
Promise: A promise containing the current rowset object.
setData (dataset)
Defined in
lib/database/rowset/abstract.js:92
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.