Package com.axelor.meta.query
Record Class QueryResult.Entities
java.lang.Object
java.lang.Record
com.axelor.meta.query.QueryResult.Entities
- All Implemented Interfaces:
QueryResult
- Enclosing interface:
QueryResult
public static record QueryResult.Entities(List<?> records, Integer limit, Integer offset, Long total, Completeness completeness, Map<String,Object> appliedParameters, Map<String,Object> summary)
extends Record
implements QueryResult
Entity results, for a query selecting whole records.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.axelor.meta.query.QueryResult
QueryResult.Entities, QueryResult.Rows -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theappliedParametersrecord component.Returns the value of thecompletenessrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.limit()Returns the value of thelimitrecord component.offset()Returns the value of theoffsetrecord component.List<?> records()Returns the value of therecordsrecord component.summary()Returns the value of thesummaryrecord component.final StringtoString()Returns a string representation of this record class.total()Returns the value of thetotalrecord component.
-
Constructor Details
-
Entities
public Entities(List<?> records, Integer limit, Integer offset, Long total, Completeness completeness, Map<String, Object> appliedParameters, Map<String, Object> summary) Creates an instance of aEntitiesrecord class.- Parameters:
records- the value for therecordsrecord componentlimit- the value for thelimitrecord componentoffset- the value for theoffsetrecord componenttotal- the value for thetotalrecord componentcompleteness- the value for thecompletenessrecord componentappliedParameters- the value for theappliedParametersrecord componentsummary- the value for thesummaryrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
records
Returns the value of therecordsrecord component.- Specified by:
recordsin interfaceQueryResult- Returns:
- the value of the
recordsrecord component
-
limit
Returns the value of thelimitrecord component.- Specified by:
limitin interfaceQueryResult- Returns:
- the value of the
limitrecord component
-
offset
Returns the value of theoffsetrecord component.- Specified by:
offsetin interfaceQueryResult- Returns:
- the value of the
offsetrecord component
-
total
Returns the value of thetotalrecord component.- Specified by:
totalin interfaceQueryResult- Returns:
- the value of the
totalrecord component
-
completeness
Returns the value of thecompletenessrecord component.- Specified by:
completenessin interfaceQueryResult- Returns:
- the value of the
completenessrecord component
-
appliedParameters
Returns the value of theappliedParametersrecord component.- Specified by:
appliedParametersin interfaceQueryResult- Returns:
- the value of the
appliedParametersrecord component
-
summary
Returns the value of thesummaryrecord component.- Specified by:
summaryin interfaceQueryResult- Returns:
- the value of the
summaryrecord component
-