Class ExecSQL

    • Field Detail

      • m_SQL

        protected SQLStatement m_SQL
        the SQL statement to execute.
      • m_DryRun

        protected boolean m_DryRun
        whether to simulate the SQL statement.
    • Constructor Detail

      • ExecSQL

        public ExecSQL()
    • Method Detail

      • setSQL

        public void setSQL​(SQLStatement value)
        Sets the SQL statement to run.
        Parameters:
        value - the statement
      • getSQL

        public SQLStatement getSQL()
        Returns the SQL statement to run.
        Returns:
        the statement
      • SQLTipText

        public String SQLTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setDryRun

        public void setDryRun​(boolean value)
        Sets whether to merely simulate the statement.
        Specified by:
        setDryRun in interface DryRunSupporter
        Parameters:
        value - true if to simulate the statement
      • getDryRun

        public boolean getDryRun()
        Returns whether the statement is merely simulated.
        Specified by:
        getDryRun in interface DryRunSupporter
        Returns:
        true if only simulated
      • dryRunTipText

        public String dryRunTipText()
        Returns the tip text for this property.
        Specified by:
        dryRunTipText in interface DryRunSupporter
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • queryDatabase

        protected String queryDatabase()
        Performs the actual database query.
        Specified by:
        queryDatabase in class AbstractDbStandalone
        Returns:
        null if everything is fine, otherwise error message