Class QueryImpl

    • Method Detail

      • getName

        public String getName()
        Returns the name of the query.
        Specified by:
        getName in interface Query
      • getType

        public Query.Type getType()
        Returns the type of the query.
        Specified by:
        getType in interface Query
      • isHidden

        public boolean isHidden()
        Description copied from interface: Query
        Whether or not this query has been marked as hidden.
        Specified by:
        isHidden in interface Query
      • getObjectId

        public int getObjectId()
        Returns the unique object id of the query.
        Specified by:
        getObjectId in interface Query
      • getObjectFlag

        public int getObjectFlag()
        Specified by:
        getObjectFlag in interface Query
      • getRows

        public List<QueryImpl.Row> getRows()
        Returns the rows from the system query table from which the query information was derived.
      • getParameters

        public List<String> getParameters()
        Description copied from interface: Query
        Returns the rows from the system query table from which the query information was derived.
        Specified by:
        getParameters in interface Query
      • toSQLString

        public String toSQLString()
        Returns the actual SQL string which this query data represents.
        Specified by:
        toSQLString in interface Query
      • create

        public static QueryImpl create​(int objectFlag,
                                       String name,
                                       List<QueryImpl.Row> rows,
                                       int objectId)
        Creates a concrete Query instance from the given query data.
        Parameters:
        objectFlag - the flag indicating the type of the query
        name - the name of the query
        rows - the rows from the system query table containing the data describing this query
        objectId - the unique object id of this query
        Returns:
        a Query instance for the given query data