Class AbstractSpreadSheetDbReader

    • Field Detail

      • m_Query

        protected SQLStatement m_Query
        the SQL query to execute.
      • m_DataRowType

        protected DataRow m_DataRowType
        the data row type to use.
      • m_ChunkSize

        protected int m_ChunkSize
        the chunk size to use.
      • m_OutputToken

        protected Token m_OutputToken
        the generated output token.
      • m_Reader

        protected Reader m_Reader
        for reading the data.
      • m_ResultSet

        protected transient ResultSet m_ResultSet
        the current result set.
    • Constructor Detail

      • AbstractSpreadSheetDbReader

        public AbstractSpreadSheetDbReader()
    • Method Detail

      • reset

        protected void reset()
        Resets the scheme.
        Overrides:
        reset in class AbstractActor
      • setTypeMapper

        public void setTypeMapper​(AbstractTypeMapper value)
        Sets the type mapper to use.
        Parameters:
        value - the mapper
      • getTypeMapper

        public AbstractTypeMapper getTypeMapper()
        Returns the type mapper in use.
        Returns:
        the mapper
      • typeMapperTipText

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

        public void setQuery​(SQLStatement value)
        Sets the SQL query.
        Parameters:
        value - the query
      • getQuery

        public SQLStatement getQuery()
        Returns the SQL query.
        Returns:
        the query
      • queryTipText

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

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

        public void setChunkSize​(int value)
        Sets the maximum chunk size.
        Parameters:
        value - the size of the chunks, < 1 denotes infinity
      • getChunkSize

        public int getChunkSize()
        Returns the current chunk size.
        Returns:
        the size of the chunks, < 1 denotes infinity
      • chunkSizeTipText

        public String chunkSizeTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui
      • generates

        public Class[] generates()
        Returns the class of objects that it generates.
        Specified by:
        generates in interface OutputProducer
        Returns:
        the Class of the generated tokens
      • queryDatabase

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

        public boolean hasPendingOutput()
        Checks whether there is pending output to be collected after executing the flow item.
        Specified by:
        hasPendingOutput in interface OutputProducer
        Returns:
        true if there is pending output
      • output

        public Token output()
        Returns the generated token.
        Specified by:
        output in interface OutputProducer
        Returns:
        the generated token
      • wrapUp

        public void wrapUp()
        Cleans up after the execution has finished. Graphical output is left untouched.
        Specified by:
        wrapUp in interface Actor
        Overrides:
        wrapUp in class AbstractDbSource