Class Query

All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
Direct Known Subclasses:
QueryEvaluator

public class Query extends Expression implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
The Query operator represents a clause-based query. The result of the query is determined by the type of sources included, as well as the clauses used in the query.

Java class for Query complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="Query">
   <complexContent>
     <extension base="{urn:hl7-org:elm:r1}Expression">
       <sequence>
         <element name="source" type="{urn:hl7-org:elm:r1}AliasedQuerySource" maxOccurs="unbounded"/>
         <element name="let" type="{urn:hl7-org:elm:r1}LetClause" maxOccurs="unbounded" minOccurs="0"/>
         <element name="relationship" type="{urn:hl7-org:elm:r1}RelationshipClause" maxOccurs="unbounded" minOccurs="0"/>
         <element name="where" type="{urn:hl7-org:elm:r1}Expression" minOccurs="0"/>
         <element name="return" type="{urn:hl7-org:elm:r1}ReturnClause" minOccurs="0"/>
         <element name="aggregate" type="{urn:hl7-org:elm:r1}AggregateClause" minOccurs="0"/>
         <element name="sort" type="{urn:hl7-org:elm:r1}SortClause" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
  • Field Details

  • Constructor Details

    • Query

      public Query()
  • Method Details

    • getSource

      public List<AliasedQuerySource> getSource()
      Gets the value of the source property.

      This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the source property.

      For example, to add a new item, do as follows:

          getSource().add(newItem);
       

      Objects of the following type(s) are allowed in the list AliasedQuerySource

    • getLet

      public List<LetClause> getLet()
      Gets the value of the let property.

      This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the let property.

      For example, to add a new item, do as follows:

          getLet().add(newItem);
       

      Objects of the following type(s) are allowed in the list LetClause

    • getRelationship

      public List<RelationshipClause> getRelationship()
      Gets the value of the relationship property.

      This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the relationship property.

      For example, to add a new item, do as follows:

          getRelationship().add(newItem);
       

      Objects of the following type(s) are allowed in the list RelationshipClause

    • getWhere

      public Expression getWhere()
      Gets the value of the where property.
      Returns:
      possible object is Expression
    • setWhere

      public void setWhere(Expression value)
      Sets the value of the where property.
      Parameters:
      value - allowed object is Expression
    • getReturn

      public ReturnClause getReturn()
      Gets the value of the return property.
      Returns:
      possible object is ReturnClause
    • setReturn

      public void setReturn(ReturnClause value)
      Sets the value of the return property.
      Parameters:
      value - allowed object is ReturnClause
    • getAggregate

      public AggregateClause getAggregate()
      Gets the value of the aggregate property.
      Returns:
      possible object is AggregateClause
    • setAggregate

      public void setAggregate(AggregateClause value)
      Sets the value of the aggregate property.
      Parameters:
      value - allowed object is AggregateClause
    • getSort

      public SortClause getSort()
      Gets the value of the sort property.
      Returns:
      possible object is SortClause
    • setSort

      public void setSort(SortClause value)
      Sets the value of the sort property.
      Parameters:
      value - allowed object is SortClause
    • withSource

      public Query withSource(AliasedQuerySource... values)
    • withSource

      public Query withSource(Collection<AliasedQuerySource> values)
    • withLet

      public Query withLet(LetClause... values)
    • withLet

      public Query withLet(Collection<LetClause> values)
    • withRelationship

      public Query withRelationship(RelationshipClause... values)
    • withRelationship

      public Query withRelationship(Collection<RelationshipClause> values)
    • withWhere

      public Query withWhere(Expression value)
    • withReturn

      public Query withReturn(ReturnClause value)
    • withAggregate

      public Query withAggregate(AggregateClause value)
    • withSort

      public Query withSort(SortClause value)
    • withAnnotation

      public Query withAnnotation(CqlToElmBase... values)
      Overrides:
      withAnnotation in class Expression
    • withAnnotation

      public Query withAnnotation(Collection<CqlToElmBase> values)
      Overrides:
      withAnnotation in class Expression
    • withResultTypeSpecifier

      public Query withResultTypeSpecifier(TypeSpecifier value)
      Overrides:
      withResultTypeSpecifier in class Expression
    • withLocalId

      public Query withLocalId(String value)
      Overrides:
      withLocalId in class Expression
    • withLocator

      public Query withLocator(String value)
      Overrides:
      withLocator in class Expression
    • withResultTypeName

      public Query withResultTypeName(QName value)
      Overrides:
      withResultTypeName in class Expression
    • equals

      public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)
      Specified by:
      equals in interface org.jvnet.jaxb2_commons.lang.Equals2
      Overrides:
      equals in class Expression
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Expression
    • hashCode

      public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)
      Specified by:
      hashCode in interface org.jvnet.jaxb2_commons.lang.HashCode2
      Overrides:
      hashCode in class Expression
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Expression
    • toString

      public String toString()
      Overrides:
      toString in class Expression
    • append

      public StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
      Specified by:
      append in interface org.jvnet.jaxb2_commons.lang.ToString2
      Overrides:
      append in class Expression
    • appendFields

      public StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
      Specified by:
      appendFields in interface org.jvnet.jaxb2_commons.lang.ToString2
      Overrides:
      appendFields in class Expression