Class ApiScriptUtils
java.lang.Object
com.kingsrook.qqq.api.utils.ApiScriptUtils
- All Implemented Interfaces:
QCodeExecutorAware
,Serializable
Object injected into script context, for interfacing with a QQQ API.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbulkDelete
(String tableApiName, Object body) bulkInsert
(String tableApiName, Object body) bulkUpdate
(String tableApiName, Object body) void
getProcessStatus
(String processApiName, String jobId) static ArrayList
<Map<String, Serializable>> qRecordListToApiRecordList
(List<QRecord> qRecordList, String tableName, String apiName, String apiVersion) runProcess
(String processApiName) runProcess
(String processApiName, Object params) void
setApiName
(String apiName) Setter for apiNamevoid
setApiVersion
(String apiVersion) Setter for apiVersionvoid
setQCodeExecutor
(QCodeExecutor qCodeExecutor) void
-
Constructor Details
-
ApiScriptUtils
-
-
Method Details
-
qRecordListToApiRecordList
public static ArrayList<Map<String,Serializable>> qRecordListToApiRecordList(List<QRecord> qRecordList, String tableName, String apiName, String apiVersion) throws QException - Throws:
QException
-
setApiName
Setter for apiName -
setApiVersion
Setter for apiVersion -
get
- Throws:
QException
-
query
- Throws:
QException
-
insert
- Throws:
QException
-
bulkInsert
public List<Map<String,Serializable>> bulkInsert(String tableApiName, Object body) throws QException - Throws:
QException
-
update
- Throws:
QException
-
bulkUpdate
public List<Map<String,Serializable>> bulkUpdate(String tableApiName, Object body) throws QException - Throws:
QException
-
delete
- Throws:
QException
-
bulkDelete
public List<Map<String,Serializable>> bulkDelete(String tableApiName, Object body) throws QException - Throws:
QException
-
runProcess
- Throws:
QException
-
runProcess
- Throws:
QException
-
getProcessStatus
- Throws:
QException
-
setQCodeExecutor
- Specified by:
setQCodeExecutor
in interfaceQCodeExecutorAware
-