IDataReader
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.
Methods
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. |
read()
public abstract boolean read()
Advances the IDataReader to the next record.
Returns: boolean - true if there are more rows; otherwise, false.
getDepth()
public abstract int getDepth()
Gets a value indicating the depth of nesting for the current row.
Returns: int - The level of nesting.
isClosed()
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.
getRecordsAffected()
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.
close()
public abstract void close()
Closes the IDataReader Object.
getSchemaTable()
public abstract DataTable getSchemaTable()
Returns a DataTable that describes the column metadata of the IDataReader.
Returns: DataTable - A DataTable that describes the column metadata.
nextResult()
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.