Class QRecordApiAdapter
java.lang.Object
com.kingsrook.qqq.api.actions.QRecordApiAdapter
Methods for going back and forth from QRecords to API-versions of objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic QRecord
apiJsonObjectToQRecord
(org.json.JSONObject jsonObject, String tableName, String apiName, String apiVersion, boolean includeNonEditableFields) static ArrayList
<Map<String, Serializable>> bulk-version of the qRecordToApiMap - will use ApiFieldCustomValueMapperBulkSupportInterface's in the bulky way.static Map
<String, Serializable> qRecordToApiMap
(QRecord record, String tableName, String apiName, String apiVersion) Simple/short form of convert a QRecord to a map for the API - e.g., meant for public consumption.
-
Constructor Details
-
QRecordApiAdapter
public QRecordApiAdapter()
-
-
Method Details
-
qRecordToApiMap
public static Map<String,Serializable> qRecordToApiMap(QRecord record, String tableName, String apiName, String apiVersion) throws QException Simple/short form of convert a QRecord to a map for the API - e.g., meant for public consumption.- Throws:
QException
-
qRecordsToApiMapList
public static ArrayList<Map<String,Serializable>> qRecordsToApiMapList(List<QRecord> records, String tableName, String apiName, String apiVersion) throws QException bulk-version of the qRecordToApiMap - will use ApiFieldCustomValueMapperBulkSupportInterface's in the bulky way.- Throws:
QException
-
apiJsonObjectToQRecord
public static QRecord apiJsonObjectToQRecord(org.json.JSONObject jsonObject, String tableName, String apiName, String apiVersion, boolean includeNonEditableFields) throws QException - Throws:
QException
-