Interface AdhocQueryExpression

  • All Superinterfaces:
    QueryExpression

    @XmlElement("AdhocQueryExpression")
    public interface AdhocQueryExpression
    extends QueryExpression
    A fundamental type of query expression is the ad hoc query expression. It is ad hoc in the sense that the query is not known before the time it is being executed as, for example, a stored query would be.

    An ad hoc query expression is a query expression that contains the names of one or more resource types to query, an optional projection clause enumerating the properties of the resource to present in the response, an option selection clause that constraints the properties of those resources types in order to define a result set and an optional sorting clause specifying the order in which the result set is presented.

    Since:
    GeoAPI 3.1
    • Method Detail

      • getPropertyNames

        @XmlElement("typeNames")
        List<? extends GenericName> getPropertyNames()
        The mandatory typeNames parameter shall be used within an ad hoc query expression to encode the names of one or more correlated resource types to be queried.
        Returns:
        List of names, never null.
      • getAliases

        @XmlElement("aliases")
        List<? extends GenericName> getAliases()
        The optional aliases parameter may be used within an ad hoc query expression to specify alternate names for the resource type names specified as the value of the typeNames parameter.

        A resource type alias may be used anywhere; the resource type name may be used within the context of the query expression.

        The number of list elements in the value of the aliases parameter shall match the number of corresponding resource type names in the value of the typeNames parameter and shall be correlated 1:1.

        Returns:
        List of names, never null.
      • getProjectionClause

        @XmlElement("AbstractProjectionClause")
        List<Object> getProjectionClause()
        A projection clause encodes a list of optional resource properties that shall be available in a query response. While it can be any type of objects, the common case is list of PropertyName.
      • getSelectionClause

        @XmlElement("AbstractSelectionClause")
        Object getSelectionClause()
        The selection clause defines a set of query predicates that shall be applied to a dataset in order to define a subset of data to be operated upon. While it can be any type of objects, the common case is a Filter.