Class AbstractQueryImpl

  • All Implemented Interfaces:
    Query
    Direct Known Subclasses:
    QueryImpl

    public abstract class AbstractQueryImpl
    extends Object
    implements Query
    Defines common initialisation methods for all query implementations.
    • Constructor Detail

      • AbstractQueryImpl

        public AbstractQueryImpl()
    • Method Detail

      • init

        public abstract void init​(SessionContext sessionContext,
                                  QueryHandler handler,
                                  String statement,
                                  String language,
                                  Node node)
                           throws InvalidQueryException
        Initialises a query instance from a query string.
        Parameters:
        sessionContext - component context of the current session
        handler - the query handler of the search index.
        statement - the query statement.
        language - the syntax of the query statement.
        node - a nt:query node where the query was read from or null if it is not a stored query.
        Throws:
        InvalidQueryException - if the query statement is invalid according to the specified language.