Class QRecordApiAdapterToApiInput
java.lang.Object
com.kingsrook.qqq.api.actions.io.QRecordApiAdapterToApiInput
- All Implemented Interfaces:
Serializable
Input wrapper for the methods in
QRecordApiAdapter
that adapt from
QRecords To API objects.
Originally, the methods in that class just took records and table/apiName/version
- but - when we wanted to start adding optional behaviors (e.g., whether to
includeExposedJoins), then this class was introduced.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for apiNameGetter for apiVersionboolean
Getter for includeExposedJoinsGetter for inputRecordsGetter for tableNamevoid
setApiName
(String apiName) Setter for apiNamevoid
setApiVersion
(String apiVersion) Setter for apiVersionvoid
setIncludeExposedJoins
(boolean includeExposedJoins) Setter for includeExposedJoinsvoid
setInputRecords
(List<QRecord> inputRecords) Setter for inputRecordsvoid
setTableName
(String tableName) Setter for tableNamewithApiName
(String apiName) Fluent setter for apiNamewithApiVersion
(String apiVersion) Fluent setter for apiVersionwithIncludeExposedJoins
(boolean includeExposedJoins) Fluent setter for includeExposedJoinswithInputRecords
(List<QRecord> inputRecords) Fluent setter for inputRecordswithTableName
(String tableName) Fluent setter for tableName
-
Constructor Details
-
QRecordApiAdapterToApiInput
public QRecordApiAdapterToApiInput()
-
-
Method Details
-
getInputRecords
-
setInputRecords
-
withInputRecords
Fluent setter for inputRecords- Parameters:
inputRecords
- list of records to be adapted to api objects- Returns:
- this
-
getTableName
-
setTableName
-
withTableName
Fluent setter for tableName- Parameters:
tableName
- name of the table that input records are from (main table, in the case joined records)- Returns:
- this
-
getApiName
-
setApiName
-
withApiName
Fluent setter for apiName- Parameters:
apiName
- api name of the output records- Returns:
- this
-
getApiVersion
-
setApiVersion
-
withApiVersion
Fluent setter for apiVersion- Parameters:
apiVersion
- api version for the output records- Returns:
- this
-
getIncludeExposedJoins
public boolean getIncludeExposedJoins()Getter for includeExposedJoins- See Also:
-
setIncludeExposedJoins
public void setIncludeExposedJoins(boolean includeExposedJoins) Setter for includeExposedJoins- See Also:
-
withIncludeExposedJoins
Fluent setter for includeExposedJoins- Parameters:
includeExposedJoins
- boolean to control if exposedJoins should be supported. By default, they are not - but a QQQ middleware implementation may want them, so it can set this flag to true to get them- Returns:
- this
-