Method Summary |
|
void | addActivation(Activation a) Add the activation to those known about by this connection. |
public void | addDeclaredGlobalTempTable(TableDescriptor td) Add the declared global temporary table to the list of temporary tables known by this connection. |
boolean | anyoneBlocked() |
public void | appendOptimizerTraceOutput(String output) Append the latest output to the optimizer trace output. |
public void | autoincrementCreateCounter(String s, String t, String c, Long initialValue, long increment, int position) Create an autoincrement counter to be used on behalf of a SQL-J
statement. |
public void | autoincrementFlushCache(UUID tableUUID) Flush the cache of autoincrement values being kept by the lcc. |
void | beginNestedTransaction(boolean readOnly) Begin a nested transaction. |
public boolean | checkIfAnyDeclaredGlobalTempTablesForThisConnection() Check if there are any global temporary tables declared for this connection. |
void | commitNestedTransaction() commit a nested transaction.
We do not provide a abortNestedTransaction. |
public String | convertIdentifierCase(String id) Convert an identifier to the proper case for this connection. |
public void | copyHashtableToAIHT(Hashtable from) copy a hashtable of autoincrement key value pairs into the cache of
ai values stored in the language connection context. |
boolean | dataDictionaryInWriteMode() Return true if the data dictionary is in write mode (that is, this
context was informed that is is in write mode by the method call
setDataDictionaryWriteMode(). |
int | decrementBindCount() Decrement the DataDictionary bind count. |
public boolean | dropDeclaredGlobalTempTable(String tableName) Drop (mark the declared global temporary table for dropping) from the list of temporary tables known by this connection.
Parameters: tableName - look for this table name in the saved list and drop it if found true if dropped the temporary table. |
AccessFactory | getAccessFactory() |
int | getActivationCount() Return the number of activation known for this connection. |
public String | getAuthorizationId() |
public Authorizer | getAuthorizer() Get an Authorizer for this connection. |
public boolean | getAutoincrementUpdate() Returns the current value of autoincrementUpdate. |
int | getBindCount() Get the DataDictionary bind count. |
public int | getCurrentIsolationLevel() Get the current isolation level. |
public String | getCurrentIsolationLevelStr() Get the current isolation level in DB2 format. |
public String | getCurrentSchemaName() |
public DataDictionary | getDataDictionary() |
DataValueFactory | getDataValueFactory() Get the data value factory to use with this language connection
context. |
public Database | getDatabase() Returns the Database of this connection. |
public String | getDbname() Get the database name of this LCC. |
public String | getDeclaredGlobalTemporaryTablesSchemaName() Get the declared global temporary tables schema name. |
public SchemaDescriptor | getDefaultSchema() |
public String | getDrdaID() Get the DRDA ID of this LCC. |
ExecutionContext | getExecutionContext() Get the current ExecutionContext. |
public int | getIdentifierCasing() Get casing for delimited identifiers. |
public Long | getIdentityValue() Get the identity column value most recently generated. |
public int | getInstanceNumber() Get the instance number of this LCC. |
LanguageConnectionFactory | getLanguageConnectionFactory() Get the language connection factory to use with this language connection
context. |
LanguageFactory | getLanguageFactory() Get the language factory to use with this language connection
context. |
public Activation | getLastActivation() |
int | getLockEscalationThreshold() get the lock escalation threshold to use with this connection. |
public Object | getLockObject(int lockScope) Get the lock handle for the current transaction. |
public boolean | getLogQueryPlan() Get value of logQueryPlan. |
public boolean | getLogStatementText() Get value of logStatementText. |
OptimizerFactory | getOptimizerFactory() get the optimizer factory to use with this language connection context. |
public boolean | getOptimizerTrace() Get whether or not optimizer trace is on. |
public boolean | getOptimizerTraceHtml() Get whether or not optimizer trace html is on. |
public String | getOptimizerTraceOutput() Get the optimizer trace output for the last optimized query as a String. |
public int | getPrepareIsolationLevel() Get the prepare isolation level. |
public boolean | getRunTimeStatisticsMode() Get the RUNTIMESTATISTICS mode. |
public RunTimeStatistics | getRunTimeStatisticsObject() Get the RUNTIMESTATISTICS object. |
StatementContext | getStatementContext() Get the current StatementContext. |
public int | getStatementDepth() Reports how many statement levels deep we are. |
public boolean | getStatisticsTiming() Get the STATISTICS TIMING mode. |
public String | getSysIBMSchemaName() Get the SYSIBM schema name. |
public String | getSystemDiagSchemaName() Get the SYSCS_DIAG schema name. |
public String | getSystemSchemaName() Get the system schema name. |
public String | getSystemUtilSchemaName() Get the SYSCS_UTIL schema name. |
public TableDescriptor | getTableDescriptorForDeclaredGlobalTempTable(String tableName) Get table descriptor for the declared global temporary table from the list of temporary
tables known by this connection.
Parameters: tableName - Get table descriptor for the passed table name TableDescriptor if found the temporary table. |
TransactionController | getTransactionCompile() Get the transaction controller to use with this language connection
context at compile time. |
TransactionController | getTransactionExecute() Get the transaction controller to use with this language connection
context during execute time. |
public TriggerExecutionContext | getTriggerExecutionContext() Get the topmost tec. |
public TableDescriptor | getTriggerTable() |
public String | getUniqueCursorName() Get a connection unique system generated name for a cursor. |
public int | getUniqueSavepointID() Get a connection unique system generated id for an unnamed savepoint. |
public String | getUniqueSavepointName() Get a connection unique system generated name for an unnamed savepoint. |
int | incrementBindCount() Increment the DataDictionary bind count. |
void | initialize(boolean sqlConnection) Initialize. |
void | internalCommit(boolean commitStore) Do a commit, as internally needed by Cloudscape. |
void | internalCommitNoSync(int commitflag) |
void | internalRollback() Do a rollback, as internally needed by Cloudscape. |
void | internalRollbackToSavepoint(String savepointName, boolean refreshStyle, Object kindOfSavepoint) Let the context deal with a rollback to savepoint
Parameters: savepointName - Name of the savepoint that needs to be rolled back Parameters: refreshStyle - boolean indicating whether or not the controller should closeopen conglomerates and scans. |
public boolean | isIsolationLevelSetUsingSQLorJDBC() Returns true if isolation level has been set using JDBC/SQL. |
public boolean | isReadOnly() Get the readOnly status for the current connection. |
public boolean | isTransactionPristine() Reports whether there is any outstanding work in the transaction. |
void | languageSetSavePoint(String savepointName, Object kindOfSavepoint) Sets a savepoint. |
public Long | lastAutoincrementValue(String schemaName, String tableName, String columnName) Returns the last autoincrement value inserted by this connection. |
CursorActivation | lookupCursorActivation(String cursorName) See if a given cursor is available for use. |
public void | markTempTableAsModifiedInUnitOfWork(String tableName) Mark the passed temporary table as modified in the current unit of work. |
public long | nextAutoincrementValue(String schemaName, String tableName, String columnName) returns the next value to be inserted into an autoincrement col.
This is used internally by the system to generate autoincrement values
which are going to be inserted into a autoincrement column. |
void | notifyUnusedActivation() |
public void | popCompilerContext(CompilerContext compilerContext) Pop a CompilerContext off the context stack. |
public void | popExecutionStmtValidator(ExecutionStmtValidator validator) Remove the validator. |
public void | popStatementContext(StatementContext statementContext, Throwable error) Pop a StatementContext of the context stack. |
public void | popTriggerExecutionContext(TriggerExecutionContext tec) Remove the tec. |
public void | popTriggerTable(TableDescriptor td) Remove the trigger table descriptor. |
public PreparedStatement | prepareInternalStatement(SchemaDescriptor compilationSchema, String sqlText, boolean isForReadOnly, boolean allowInternalSyntax) Return a PreparedStatement object for the query.
This method first tries to locate the PreparedStatement object from a statement
cache. |
public PreparedStatement | prepareInternalStatement(String sqlText) Return a PreparedStatement object for the query.
This method first tries to locate the PreparedStatement object from a statement
cache. |
public CompilerContext | pushCompilerContext() Push a CompilerContext on the context stack with
the current default schema as the default schema
which we compile against. |
public CompilerContext | pushCompilerContext(SchemaDescriptor sd) Push a CompilerContext on the context stack with
the passed in default schema as the default schema
we compile against. |
public void | pushExecutionStmtValidator(ExecutionStmtValidator validator) Push a new execution statement validator. |
StatementContext | pushStatementContext(boolean isAtomic, boolean isForReadOnly, String stmtText, ParameterValueSet pvs, boolean rollbackParentContext, long timeoutMillis) Push a StatementContext on the context stack.
Parameters: isAtomic - whether a commit/rollback is permittedfrom a nested connection under this statement Parameters: stmtText - the text of the statement. |
public void | pushTriggerExecutionContext(TriggerExecutionContext tec) Push a new trigger execution context. |
public void | pushTriggerTable(TableDescriptor td) Set the trigger table descriptor. |
void | releaseSavePoint(String savepointName, Object kindOfSavepoint) |
void | removeActivation(Activation a) Remove the activation from those known about by this connection. |
public void | resetFromPool() Reset the connection before it is returned (indirectly) by
a PooledConnection object. |
public void | resetIsolationLevelFlagUsedForSQLandJDBC() Reset the isolation level flag used to keep correct isolation level
state in BrokeredConnection. |
public void | setAutoincrementUpdate(boolean flag) Sets autoincrementUpdate-- this variable allows updates to autoincrement
columns if it is set to true. |
void | setDataDictionaryWriteMode() Remember that the DataDictionary is in write mode, so we can take
it out of write mode at the end of the transaction. |
public void | setDefaultSchema(SchemaDescriptor sd) |
public void | setDrdaID(String drdaID) Set the DRDA ID of this LCC. |
public void | setIdentityValue(long val) Set the field of most recently generated identity column value. |
public void | setIsolationLevel(int isolationLevel) Set current isolation level. |
public void | setLogStatementText(boolean logStatementText) |
public boolean | setOptimizerTrace(boolean onOrOff) Control whether or not optimizer trace is on.
Parameters: onOrOff - Whether to turn optimizer trace on (true) or off (false). |
public boolean | setOptimizerTraceHtml(boolean onOrOff) Control whether or not optimizer trace is generated in html.
Parameters: onOrOff - Whether or not optimizer trace will be in html (true) or not (false). |
public void | setOptimizerTraceOutput(String startingText) Set the optimizer trace output to the specified String. |
public void | setPrepareIsolationLevel(int isolationLevel) |
public void | setReadOnly(boolean onOrOff) Set the readOnly status for the current connection. |
public void | setRunTimeStatisticsMode(boolean onOrOff) Turn RUNTIMESTATISTICS on or off. |
public void | setRunTimeStatisticsObject(RunTimeStatistics runTimeStatisticsObject) Set the RUNTIMESTATISTICS object. |
public void | setStatisticsTiming(boolean onOrOff) Turn STATISTICS TIMING on or off. |
void | setTransaction(TransactionController tran) Sets the transaction controller to use with this language connection
context. |
void | userCommit() Do a commit, as issued directly by a user (e.g. |
void | userRollback() Do a rollback, as issued directly by a user (e.g. |
public boolean | usesSqlAuthorization() |
public void | validateStmtExecution(ConstantAction constantAction) Validate a statement. |
public boolean | verifyAllHeldResultSetsAreClosed() Verify that there are no activations with open held result sets. |
boolean | verifyNoOpenResultSets(PreparedStatement pStmt, Provider provider, int action) Verify that there are no activations with open result sets
on the specified prepared statement. |
void | xaCommit(boolean onePhase) Commit a distrubuted transaction. |
void | xaRollback() Roll back a distrubuted transaction. |