com.simba.dsi.dataengine.interfaces
Interface IRowCountResult

All Known Implementing Classes:
DSISimpleRowCountResult

public interface IRowCountResult

An IRowCountResult provides information about a non-result set-generating query, such as DML. The method getRowCount() is used to indicate how many rows were affected by the query.


Method Summary
 void close()
          Closes the RowCountResult and releases any resources held by it.
 long getRowCount()
          Returns the number of rows affected by query execution.
 boolean hasRowCount()
          Returns true if the RowCountResult has a known row count.
 

Method Detail

hasRowCount

boolean hasRowCount()
Returns true if the RowCountResult has a known row count. Returns false if the number of affected rows is unknown.

Returns:
true if the number of rows is known, false otherwise.

getRowCount

long getRowCount()
                 throws com.simba.support.exceptions.ErrorException
Returns the number of rows affected by query execution. The value returned is undefined if the row count is unknown, in which case hasRowCount() should return false.

The value returned must fit into a 32-bit integer when targeting a 32-bit platform, or a 64-bit integer for a 64-bit platform. The value must be non-negative, except if the row count is unknown.

This method will not be called until IQueryExecutor.execute() has been called on the corresponding IQueryExecutor.

Returns:
Number of rows affected by query execution, or ROWCOUNT_UNKNOWN.
Throws:
com.simba.support.exceptions.ErrorException - If an error occurs.

close

void close()
Closes the RowCountResult and releases any resources held by it.

An IRowCountResult is closed: - just before the parent IQueryExecutor is closed



Copyright © 2006-2014 Simba Technologies Incorporated. All Rights Reserved.