Class AbstractQuery

  • All Implemented Interfaces:
    org.apache.commons.chain.Command
    Direct Known Subclasses:
    SQLQuery, XPathQuery

    public abstract class AbstractQuery
    extends Object
    implements org.apache.commons.chain.Command
    Query the Repository through either SQL or XPATH language.
    • Constructor Detail

      • AbstractQuery

        public AbstractQuery()
    • Method Detail

      • execute

        public final boolean execute​(org.apache.commons.chain.Context ctx)
                              throws Exception
        Specified by:
        execute in interface org.apache.commons.chain.Command
        Throws:
        Exception
      • getLanguage

        protected abstract String getLanguage()
        Returns:
        the query language
      • getStatementKey

        public String getStatementKey()
        Returns:
        the statement key
      • setStatementKey

        public void setStatementKey​(String statementKey)
        Parameters:
        statementKey - the statement key to set
      • getDestKey

        public String getDestKey()
        Returns:
        the destination key
      • setDestKey

        public void setDestKey​(String toKey)
        Parameters:
        toKey - the destination key to set