Class ShowQuery

  • All Implemented Interfaces:
    Query

    public final class ShowQuery
    extends Object
    implements Query
    SHOW query - displays all matching items without filtering.
    • Constructor Detail

      • ShowQuery

        public ShowQuery​(Target target,
                         Scope scope,
                         Condition condition,
                         RunSpec runSpec,
                         Integer limit,
                         OrderBy orderBy)
        Creates a SHOW query.
        Parameters:
        target - the entity kind being displayed
        scope - the scope restricting the search, may be null
        condition - the WHERE condition, may be null
        runSpec - optional execution settings, may be null
        limit - optional result cap, may be null
        orderBy - optional result ordering, may be null
    • Method Detail

      • target

        public Target target()
        Specified by:
        target in interface Query
        Returns:
        the kind of entity the query returns
      • scope

        public Scope scope()
        Specified by:
        scope in interface Query
        Returns:
        the scope restricting what is searched, null when unrestricted
      • condition

        public Condition condition()
        Specified by:
        condition in interface Query
        Returns:
        the WHERE condition, null when there is none
      • runSpec

        public RunSpec runSpec()
        Specified by:
        runSpec in interface Query
        Returns:
        the execution budget and tracing settings, null when the query needs no run
      • limit

        public Integer limit()
        Specified by:
        limit in interface Query
        Returns:
        the maximum number of results, null when uncapped
      • orderBy

        public OrderBy orderBy()
        Specified by:
        orderBy in interface Query
        Returns:
        the result ordering, null when unordered
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object