Class AbstractReportDbUpdater

    • Field Detail

      • m_SQL

        protected SQLStatement m_SQL
        the SQL statement to execute.
      • m_ColumnKey

        protected String m_ColumnKey
        the key column.
      • m_ColumnValue

        protected String m_ColumnValue
        the value column.
      • m_Lenient

        protected boolean m_Lenient
        whether to be lenient, ie accept empyt resultsets.
    • Constructor Detail

      • AbstractReportDbUpdater

        public AbstractReportDbUpdater()
    • Method Detail

      • reset

        protected void reset()
        Resets the scheme.
        Overrides:
        reset in class AbstractActor
      • 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.
      • queryTypeTipText

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

        public void setColumnKey​(String value)
        Sets the name of the key column.
        Parameters:
        value - the column name
      • getColumnKey

        public String getColumnKey()
        Returns the name of the key column.
        Returns:
        the column name
      • columnKeyTipText

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

        public void setColumnValue​(String value)
        Sets the name of the value column.
        Parameters:
        value - the column name
      • getColumnValue

        public String getColumnValue()
        Returns the name of the value column.
        Returns:
        the column name
      • columnValueTipText

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

        public void setLenient​(boolean value)
        Sets whether to be lenient, i.e., quietly handle empty resultsets.
        Specified by:
        setLenient in interface LenientModeSupporter
        Parameters:
        value - true if lenient
      • getLenient

        public boolean getLenient()
        Returns whether to be lenient, i.e., quietly handle empty resultsets.
        Specified by:
        getLenient in interface LenientModeSupporter
        Returns:
        true if lenient
      • lenientTipText

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

        public Class[] accepts()
        Returns the class of objects that it accepts.
        Specified by:
        accepts in interface InputConsumer
        Returns:
        the data type
      • generates

        public Class[] generates()
        Returns the class of objects that it generates.
        Specified by:
        generates in interface OutputProducer
        Returns:
        the data type
      • getDatabaseConnection

        protected AbstractDatabaseConnection getDatabaseConnection()
        Determines the database connection in the flow.
        Returns:
        the database connection to use
      • addToReport

        protected void addToReport​(Report report,
                                   String key,
                                   Object value)
        Adds the specified value to the report.
        Parameters:
        report - the report to modify
        key - the key for the value
        value - the value to add
      • doExecute

        protected String doExecute()
        Executes the flow item.
        Specified by:
        doExecute in class AbstractActor
        Returns:
        null if everything is fine, otherwise error message