Record Class AqlQueryRequest

java.lang.Object
java.lang.Record
org.ehrbase.api.dto.AqlQueryRequest
Record Components:
aqlQuery - the actual aql query
parameters - additional query parameters
fetch - query limit to apply
offset - query offset to apply

public record AqlQueryRequest(String aqlString, org.ehrbase.openehr.sdk.aql.dto.AqlQuery aqlQuery, Map<String,Object> parameters, Long fetch, Long offset) extends Record
The requested AQL to be executed by AqlQueryService.query(AqlQueryRequest).
  • Constructor Details

    • AqlQueryRequest

      public AqlQueryRequest(String aqlString, org.ehrbase.openehr.sdk.aql.dto.AqlQuery aqlQuery, Map<String,Object> parameters, Long fetch, Long offset)
      Creates an instance of a AqlQueryRequest record class.
      Parameters:
      aqlString - the value for the aqlString record component
      aqlQuery - the value for the aqlQuery record component
      parameters - the value for the parameters record component
      fetch - the value for the fetch record component
      offset - the value for the offset record component
  • Method Details

    • prepare

      public static AqlQueryRequest prepare(String queryString, Map<String,Object> parameters, Long fetch, Long offset)
      Create a new AqlQueryRequest by parsing the given AQL queryString.
      See Also:
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • aqlString

      public String aqlString()
      Returns the value of the aqlString record component.
      Returns:
      the value of the aqlString record component
    • aqlQuery

      public org.ehrbase.openehr.sdk.aql.dto.AqlQuery aqlQuery()
      Returns the value of the aqlQuery record component.
      Returns:
      the value of the aqlQuery record component
    • parameters

      public Map<String,Object> parameters()
      Returns the value of the parameters record component.
      Returns:
      the value of the parameters record component
    • fetch

      public Long fetch()
      Returns the value of the fetch record component.
      Returns:
      the value of the fetch record component
    • offset

      public Long offset()
      Returns the value of the offset record component.
      Returns:
      the value of the offset record component