Package org.ehrbase.api.dto
Record Class AqlQueryRequest
java.lang.Object
java.lang.Record
org.ehrbase.api.dto.AqlQueryRequest
- Record Components:
queryString- the actual aql query stringparameters- additional query parametersfetch- query limit to applyoffset- query offset to apply
public record AqlQueryRequest(@Nonnull String queryString, @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 TypeMethodDescriptionfinal 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.Returns the value of thequeryStringrecord component.rewriteExplicitParameterTypes(Map<String, Object> parameters) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AqlQueryRequest
public AqlQueryRequest(@Nonnull String queryString, @Nullable Map<String, Object> parameters, @Nullable Long fetch, @Nullable Long offset) Creates an instance of aAqlQueryRequestrecord class.- Parameters:
queryString- the value for thequeryStringrecord componentparameters- the value for theparametersrecord componentfetch- the value for thefetchrecord componentoffset- the value for theoffsetrecord component
-
-
Method Details
-
rewriteExplicitParameterTypes
-
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). -
queryString
Returns the value of thequeryStringrecord component.- Returns:
- the value of the
queryStringrecord 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
-