SQL/MX Programming Manual for Java
SQLJ Runtime Package
HP NonStop SQL/MX Programming Manual for Java—523726-003
B-14
ExecutionContext Method Details
getMaxRows()
Returns the maximum number of rows returned by a query using the specified
ExecutionContext object. When the limit is exceeded, excess rows are dropped.
By default, the maximum row limit is zero (unlimited).
Returns
•
The current limit of the maximum number of rows, with 0 (zero) representing
unlimited
getUpdateCount()
Returns the number of rows inserted, updated, or deleted by the last SQL statement
executed in the specified ExecutionContext object.
Returns
•
The number of rows inserted, updated, or deleted
•
0 (zero) if the last SQL operation was not a DML statement
getWarnings()
Returns the first warning reported by the last SQL statement executed in an execution
context. Subsequent warnings from the same SQL operation are chained to the
SQLWarning.
Warnings caused by the processing of iterators are chained to the iterator object. For
more information, see getWarnings() on page B-8.
Returns
•
Null if there are no errors; otherwise, returns the first SQLWarning
public synchronized int getMaxRows()
public synchronized int getUpdateCount()
public synchronized SQLWarning getWarnings()