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>
     
    • Constructor Detail

      • Query

        public Query()
    • Method Detail

      • getSource

        public java.util.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 java.util.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 java.util.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
      • 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
      • withLet

        public Query withLet​(java.util.Collection<LetClause> values)
      • equals

        public boolean equals​(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator,
                              org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator,
                              java.lang.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​(java.lang.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
      • append

        public java.lang.StringBuilder append​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                                              java.lang.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 java.lang.StringBuilder appendFields​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                                                    java.lang.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