Class SqlDumpSpreadSheetReader

    • Field Detail

      • m_CustomColumnHeaders

        protected String m_CustomColumnHeaders
        the comma-separated list of column header names.
      • m_TimeZone

        protected TimeZone m_TimeZone
        the timezone to use.
      • m_ChunkSize

        protected int m_ChunkSize
        the chunk size to use.
      • m_UseBackslashes

        protected boolean m_UseBackslashes
        whether to use backslashes for escaping.
    • Constructor Detail

      • SqlDumpSpreadSheetReader

        public SqlDumpSpreadSheetReader()
    • Method Detail

      • setCustomColumnHeaders

        public void setCustomColumnHeaders​(String value)
        Sets the custom headers to use.
        Parameters:
        value - the comma-separated list
      • getCustomColumnHeaders

        public String getCustomColumnHeaders()
        Returns whether the file contains a header row or not.
        Returns:
        the comma-separated list
      • customColumnHeadersTipText

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

        public void setTimeZone​(TimeZone value)
        Sets the time zone to use.
        Parameters:
        value - the time zone
      • getTimeZone

        public TimeZone getTimeZone()
        Returns the time zone in use.
        Returns:
        the time zone
      • timeZoneTipText

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

        public void setUseBackslashes​(boolean value)
        Sets whether to use backslashes for escaping quotes rather than doubling them.
        Parameters:
        value - if true then backslashes are used
      • getUseBackslashes

        public boolean getUseBackslashes()
        Returns whether to use backslashes for escaping quotes rather than doubling them.
        Returns:
        true if backslashes are used
      • useBackslashesTipText

        public String useBackslashesTipText()
        Returns the tip text for this property.
        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.
        Specified by:
        setChunkSize in interface ChunkedSpreadSheetReader
        Parameters:
        value - the size of the chunks, < 1 denotes infinity
      • getChunkSize

        public int getChunkSize()
        Returns the current chunk size.
        Specified by:
        getChunkSize in interface ChunkedSpreadSheetReader
        Parameters:
        value - the size of the chunks, < 1 denotes infinity
        Returns:
        the size of the chunks, < 1 denotes infinity
      • chunkSizeTipText

        public String chunkSizeTipText()
        Returns the tip text for this property.
        Specified by:
        chunkSizeTipText in interface ChunkedSpreadSheetReader
        Returns:
        tip text for this property suitable for displaying in the gui
      • hasMoreChunks

        public boolean hasMoreChunks()
        Checks whether there is more data to read.
        Specified by:
        hasMoreChunks in interface ChunkedSpreadSheetReader
        Returns:
        true if there is more data available