com.groupdocs.parser

Interfaces

Classes

Exceptions

com.groupdocs.parser

Class DbTableReader



  • public final class DbTableReader
    extends Object

    Provides a reader for the database table.

    • Constructor Detail

      • DbTableReader

        public DbTableReader(Connection connection,
                     String tableName)

        Initializes a new instance of the DbTableReader class.

        Parameters:
        connection - An instance of database connection.
        tableName - A name of the database table.
    • Method Detail

      • getColumns

        public List<String> getColumns()

        Gets a collection of the table column names.

        Returns:
        A collection of the table column names.
      • getColumnsFilter

        public String[] getColumnsFilter()

        Gets a collection of columns names which are returned by Read and ReadLine methods.

        Returns:
        A collection of columns names which are returned by Read and ReadLine methods; null if all table columns are returned.
      • setColumnsFilter

        public void setColumnsFilter(String[] value)

        Sets a collection of columns names which are returned by Read and ReadLine methods.

        Parameters:
        value - A collection of columns names which are returned by Read and ReadLine methods; null if all table columns are returned.
      • read

        public String[] read()

        Reads a row from the table.

        Returns:
        An array with cells of the row; null if the end of the table is reached.
      • readLine

        public String readLine()

        Reads a row from the table.

        Returns:
        A string with cells of the row; null if the end of the table is reached.
      • dispose

        public void dispose()

        Releases the unmanaged resources used by the extractor.