Class ApiFieldCustomValueMapper

java.lang.Object
com.kingsrook.qqq.api.model.actions.ApiFieldCustomValueMapper

public abstract class ApiFieldCustomValueMapper extends Object
  • Constructor Details

    • ApiFieldCustomValueMapper

      public ApiFieldCustomValueMapper()
  • Method Details

    • produceApiValue

      public Serializable produceApiValue(QRecord record, String apiFieldName)
      When producing a JSON Object to send over the API (e.g., for a GET), this method can run to customize the value that is produced, for the input QRecord's specified fieldName
    • consumeApiValue

      public void consumeApiValue(QRecord record, Object value, org.json.JSONObject fullApiJsonObject, String apiFieldName)
      When producing a QRecord (the first parameter) from a JSON Object that was received from the API (e.g., a POST or PATCH) - this method can run to allow customization of the incoming value.
    • customizeFilterCriteria

      public void customizeFilterCriteria(QueryInput queryInput, QQueryFilter filter, QFilterCriteria criteria, String apiFieldName, ApiFieldMetaData apiFieldMetaData)
    • customizeFilterOrderBy

      public void customizeFilterOrderBy(QueryInput queryInput, QFilterOrderBy orderBy, String apiFieldName, ApiFieldMetaData apiFieldMetaData)