IDataReader
Leave feedback
On this page
All Implemented Interfaces: com.groupdocs.assembly.system.data.IDataRecord
public interface IDataReader extends IDataRecord
Provides a means of reading one or more forward-only streams of result sets obtained by executing a command at a data source, and is implemented by .NET Framework data providers that access relational databases.
| Method | Description |
|---|---|
| read() | Advances the IDataReader to the next record. |
| getDepth() | Gets a value indicating the depth of nesting for the current row. |
| isClosed() | Gets a value indicating whether the data reader is closed. |
| getRecordsAffected() | Gets the number of rows changed, inserted, or deleted by execution of the SQL statement. |
| close() | Closes the IDataReader Object. |
| getSchemaTable() | Returns a DataTable that describes the column metadata of the IDataReader. |
| nextResult() | Advances the data reader to the next result, when reading the results of batch SQL statements. |
public abstract boolean read()
Advances the IDataReader to the next record.
Returns: boolean - true if there are more rows; otherwise, false.
public abstract int getDepth()
Gets a value indicating the depth of nesting for the current row.
Returns: int - The level of nesting.
public abstract boolean isClosed()
Gets a value indicating whether the data reader is closed.
Returns: boolean - true if the data reader is closed; otherwise, false.
public abstract int getRecordsAffected()
Gets the number of rows changed, inserted, or deleted by execution of the SQL statement.
Returns: int - The number of rows changed, inserted, or deleted; 0 if no rows were affected or the statement failed; and -1 for SELECT statements.
public abstract void close()
Closes the IDataReader Object.
public abstract DataTable getSchemaTable()
Returns a DataTable that describes the column metadata of the IDataReader.
Returns: DataTable - A DataTable that describes the column metadata.
public abstract boolean nextResult()
Advances the data reader to the next result, when reading the results of batch SQL statements.
Returns: boolean - true if there are more rows; otherwise, false.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.