isBatching
Format:
public synchronized boolean isBatching()
Returns true if batching is enabled for the execution context. Returns false if
batching is disabled.
registerStatement
Format:
public RTStatement registerStatement(ConnectionContext connCtx,
Object profileKey, int stmtNdx)
throws SQLException
This method is used by code that is generated by the SQLJ translator. It is not
intended for direct use by application programs.
releaseStatement
Format:
public void releaseStatement() throws SQLException
This method is used by code that is generated by the SQLJ translator. It is not
intended for direct use by application programs.
setBatching
Format:
public synchronized void setBatching(boolean batching)
Parameters:
batching
Indicates whether batchable statements that are registered with the given
execution context can be added to a statement batch:
true
Statements can be added to a statement batch.
false
Statements are executed individually.
setBatching affects only statements that occur in the program after setBatching
is called. It does not affect previous statements or an existing statement batch.
setBatchLimit
Format:
public synchronized void setBatchLimit(int batch-size)
Sets the maximum number of statements that are added to a batch before the
batch is implicitly executed.
Parameters:
batch-size
One of the following values:
ExecutionContext.UNLIMITED_BATCH
Indicates that implicit execution occurs only when SQLJ encounters a
statement that is batchable but incompatible, or not batchable. Setting
this value is the same as not invoking setBatchLimit.
312 Application Programming Guide and Reference for Java
â„¢