Record Class QueryResult.Rows

java.lang.Object
java.lang.Record
com.axelor.meta.query.QueryResult.Rows
All Implemented Interfaces:
QueryResult
Enclosing interface:
QueryResult

public static record QueryResult.Rows(List<Map<String,Object>> records, Integer limit, Integer offset, Long total, Completeness completeness, Map<String,Object> appliedParameters, Map<String,Object> summary) extends Record implements QueryResult
Tabular results, for a query selecting individual columns.
  • Constructor Details

    • Rows

      public Rows(List<Map<String,Object>> records, Integer limit, Integer offset, Long total, Completeness completeness, Map<String,Object> appliedParameters, Map<String,Object> summary)
      Creates an instance of a Rows record class.
      Parameters:
      records - the value for the records record component
      limit - the value for the limit record component
      offset - the value for the offset record component
      total - the value for the total record component
      completeness - the value for the completeness record component
      appliedParameters - the value for the appliedParameters record component
      summary - the value for the summary record component
  • Method Details

    • 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.
    • records

      public List<Map<String,Object>> records()
      Returns the value of the records record component.
      Specified by:
      records in interface QueryResult
      Returns:
      the value of the records record component
    • limit

      public Integer limit()
      Returns the value of the limit record component.
      Specified by:
      limit in interface QueryResult
      Returns:
      the value of the limit record component
    • offset

      public Integer offset()
      Returns the value of the offset record component.
      Specified by:
      offset in interface QueryResult
      Returns:
      the value of the offset record component
    • total

      public Long total()
      Returns the value of the total record component.
      Specified by:
      total in interface QueryResult
      Returns:
      the value of the total record component
    • completeness

      public Completeness completeness()
      Returns the value of the completeness record component.
      Specified by:
      completeness in interface QueryResult
      Returns:
      the value of the completeness record component
    • appliedParameters

      public Map<String,Object> appliedParameters()
      Returns the value of the appliedParameters record component.
      Specified by:
      appliedParameters in interface QueryResult
      Returns:
      the value of the appliedParameters record component
    • summary

      public Map<String,Object> summary()
      Returns the value of the summary record component.
      Specified by:
      summary in interface QueryResult
      Returns:
      the value of the summary record component