IDataReader

All Implemented Interfaces: com.aspose.words.net.System.Data.IDataRecord

public interface IDataReader extends System.Data.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

MethodDescription
close()Closes the IDataReader Object.
getDepth()Gets a value indicating the depth of nesting for the current row.
getRecordsAffected()Gets the number of rows changed, inserted, or deleted by execution of the SQL statement.
getSchemaTable()Returns a DataTable that describes the column metadata of the IDataReader.
isClosed()Gets a value indicating whether the data reader is closed.
nextResult()Advances the data reader to the next result, when reading the results of batch SQL statements.
read()Advances the IDataReader to the next record.

close()

public abstract void close()

Closes the IDataReader Object.

getDepth()

public abstract int getDepth()

Gets a value indicating the depth of nesting for the current row.

Returns: int - The level of nesting.

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.

getSchemaTable()

public abstract System.Data.DataTable getSchemaTable()

Returns a DataTable that describes the column metadata of the IDataReader.

Returns: DataTable - A DataTable that describes the column metadata.

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.

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.

read()

public abstract boolean read()

Advances the IDataReader to the next record.

Returns: boolean - true if there are more rows; otherwise, false.