public final class DbTableReader extends Object
Provides a reader for the database table.
Constructor and Description |
---|
DbTableReader(Connection connection,
String tableName)
Initializes a new instance of the
DbTableReader class. |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Releases the unmanaged resources used by the extractor.
|
List<String> |
getColumns()
Gets a collection of the table column names.
|
String[] |
getColumnsFilter()
Gets a collection of columns names which are returned by Read and ReadLine methods.
|
String[] |
read()
Reads a row from the table.
|
String |
readLine()
Reads a row from the table.
|
void |
setColumnsFilter(String[] value)
Sets a collection of columns names which are returned by Read and ReadLine methods.
|
public DbTableReader(Connection connection, String tableName)
Initializes a new instance of the DbTableReader
class.
connection
- An instance of database connection.tableName
- A name of the database table.public List<String> getColumns()
Gets a collection of the table column names.
public String[] getColumnsFilter()
Gets a collection of columns names which are returned by Read and ReadLine methods.
public void setColumnsFilter(String[] value)
Sets a collection of columns names which are returned by Read and ReadLine methods.
value
- A collection of columns names which are returned by Read and ReadLine methods; null if all table columns are returned.public String[] read()
Reads a row from the table.
public String readLine()
Reads a row from the table.
public void dispose()
Releases the unmanaged resources used by the extractor.
Copyright © 2018. All rights reserved.