Package org.ehrbase.api.dto
Record Class AqlQueryRequest
java.lang.Object
java.lang.Record
org.ehrbase.api.dto.AqlQueryRequest
- Record Components:
aqlQuery- the actual aql queryparameters- additional query parametersfetch- query limit to applyoffset- query offset to apply
public record AqlQueryRequest(@Nonnull org.ehrbase.openehr.sdk.aql.dto.AqlQuery aqlQuery, @Nullable Map<String,Object> parameters, @Nullable Long fetch, @Nullable Long offset)
extends Record
The requested AQL to be executed by
AqlQueryService.query(AqlQueryRequest).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.ehrbase.openehr.sdk.aql.dto.AqlQueryaqlQuery()Returns the value of theaqlQueryrecord component.final booleanIndicates whether some other object is "equal to" this one.fetch()Returns the value of thefetchrecord component.final inthashCode()Returns a hash code value for this object.offset()Returns the value of theoffsetrecord component.Returns the value of theparametersrecord component.static AqlQueryRequestCreate a newAqlQueryRequestby parsing the given AQLqueryString.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AqlQueryRequest
public AqlQueryRequest(@Nonnull org.ehrbase.openehr.sdk.aql.dto.AqlQuery aqlQuery, @Nullable Map<String, Object> parameters, @Nullable Long fetch, @Nullable Long offset) Creates an instance of aAqlQueryRequestrecord class.- Parameters:
aqlQuery- the value for theaqlQueryrecord componentparameters- the value for theparametersrecord componentfetch- the value for thefetchrecord componentoffset- the value for theoffsetrecord component
-
-
Method Details
-
prepare
public static AqlQueryRequest prepare(@Nonnull String queryString, @Nullable Map<String, Object> parameters, @Nullable Long fetch, @Nullable Long offset) Create a newAqlQueryRequestby parsing the given AQLqueryString.- See Also:
-
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). -
aqlQuery
@Nonnull public org.ehrbase.openehr.sdk.aql.dto.AqlQuery aqlQuery()Returns the value of theaqlQueryrecord component.- Returns:
- the value of the
aqlQueryrecord component
-
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-
fetch
Returns the value of thefetchrecord component.- Returns:
- the value of the
fetchrecord component
-
offset
Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-