SQL/MX Programming Manual for Java
SQLJ Runtime Package
HP NonStop SQL/MX Programming Manual for Java—523726-003
B-12
sqlj.runtime.ExecutionContext Class
sqlj.runtime.ExecutionContext Class
The ExecutionContext class includes a constructor to instantiate an
ExecutionContext object, which you can associate with specific SQL operations.
This class also provides methods to set the attributes of the execution context and to
retrieve information about the results of executing an SQL statement. For more
information, see Execution Contexts on page 3-20.
java.lang.Object
|
+----sqlj.runtime.ExecutionContext
public class ExecutionContext
extends Object
Table B-6. ExecutionContext Constructor Summary
Constructor Description
ExecutionContext()
Creates an ExecutionContext object.
Table B-7. ExecutionContext Methods Summary
Method Description
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(int)
Sets the maximum number of bytes to be returned
for any column or output argument.
setMaxRows(int)
Sets the maximum number of rows to be returned by
a query.