Class: Loader

Loader

new Loader(request) → {Loader}

Loader Class
Parameters:
Name Type Description
request object The body of the HTTP Post request from the client
Source:
Returns:
A new instance of Loader
Type
Loader

Methods

accumulateResult() → {null}

Push a result onto the result_list.
Source:
Returns:
Type
null

executeLoadRequest(Data) → {null}

Instantiate a new LoadRequest given load parameters and accumulate its result on result_list.
Parameters:
Name Type Description
Data object representing load request parameters
Source:
Returns:
Type
null

generateReply() → {object}

Generate and return Loader reply for the requestor.
Source:
Returns:
A formatted reply object from NetsuiteToolkit
Type
object

loadRecords() → {null}

Iterate through the supplied parameters and load their related records from NetSuite. Populate result_list or exception accordingly.
Source:
Returns:
Type
null