public class Insert extends RequestSingle
Insert: { $query: query, $data : data , $filter: filter} // No query in
  • Field Details

    • data

      protected com.fasterxml.jackson.databind.node.ArrayNode data
  • Constructor Details

    • Insert

      public Insert()
  • Method Details

    • resetData

      public final Insert resetData()
      Returns:
      this Insert
    • reset

      public final Insert reset()
      Overrides:
      reset in class RequestSingle
      Returns:
      this Insert
    • addData

      public final Insert addData(com.fasterxml.jackson.databind.node.ObjectNode... data)
      Note that if previous attributes have the same name, they will be replaced.
      Parameters:
      data - list of json data
      Returns:
      this Insert
    • setData

      public final Insert setData(com.fasterxml.jackson.databind.JsonNode dataContent) throws InvalidParseOperationException
      Parameters:
      dataContent - json data
      Returns:
      this Insert
      Throws:
      InvalidParseOperationException - when query is invalid
    • parseData

      public final Insert parseData(String data) throws InvalidParseOperationException
      Parameters:
      data - string data
      Returns:
      this Insert
      Throws:
      InvalidParseOperationException - when query is invalid
    • getFinalInsert

      public final com.fasterxml.jackson.databind.node.ObjectNode getFinalInsert()
      Returns:
      the Final Insert containing all 3 parts: query filter and data
    • getData

      public final com.fasterxml.jackson.databind.node.ObjectNode getData()
      Overrides:
      getData in class RequestSingle
      Returns:
      the data
    • getDatas

      public final com.fasterxml.jackson.databind.node.ArrayNode getDatas()
      Overrides:
      getDatas in class RequestSingle
      Returns:
      the datas
    • toString

      public String toString()
      Overrides:
      toString in class RequestSingle