SQL/MX Programming Manual for Java
SQLJ Programming
HP NonStop SQL/MX Programming Manual for Java—523726-003
3-22
Execution Context Methods
Execution Context Methods
Use these methods to retrieve information about the results of executing an SQL
statement in an implicit or explicit execution context, or use these methods to set
attributes of an implicit or explicit execution context:
Currently, SQLJ does not support the getQueryTimeout() and
setQueryTimeout() methods.
For more information, see the sqlj.runtime.ExecutionContext Class on page B-12.
cancel() Causes one thread to cancel an SQL operation being
executed by another thread within the specified execution
context instance.
getMaxFieldSize() Returns the maximum Java field size, in bytes, returned for
any column or output argument.
getMaxRows() Returns the maximum number of rows returned by a query.
getUpdateCount() Returns the number of rows inserted, updated, or deleted
by the last SQL statement executed in an execution
context.
getWarnings() Returns the first warning reported by the last SQL
statement executed in an execution context.
setMaxFieldSize(byte) Sets the maximum number of bytes to be returned for any
column or output argument. byte is an integer
representing the number of bytes.
setMaxRows(num) Sets the maximum number of rows to be returned by a
query. num is an integer representing the number of rows.