The generic impl does not provide statement caching.
| Modifier and Type | Field and Description |
|---|---|
| private final ArrayList | |
| private ArrayList | |
| private ASTVisitor | |
| protected Authorizer | |
| private HashMap | |
| private HashMap | autoincrementHT
To support lastAutoincrementValue: This is a hashtable which maps schemaName,tableName,columnName to a Long value. |
| private boolean | autoincrementUpdate
whether to allow updates or not. |
| protected int | |
| private SchemaDescriptor | cachedInitialDefaultSchemaDescr
Used to hold the computed value of the initial default schema, cf logic in initDefaultSchemaDescriptor. |
| protected LanguageConnectionFactory | |
| private int | |
| protected DataValueFactory | |
| private Database | |
| private String | |
| private boolean | |
| private int | |
| private HashMap | deferredHashTables
The set of disk backed hash tables containing any index rows saved for deferred constraints in this transaction, keyed by the conglomerate id. Checked at commit time, then discarded. |
| private String | |
| private boolean | |
| private long | |
| private final int | |
| private StandardException | interruptedException
Interrupt status flag of this session's thread, in the form of an exception created where an interrupt was (last) detected during operation, null if no interrupt has been seen. |
| protected int | |
| private boolean | |
| private boolean | |
| private HeaderPrintWriter | |
| protected LanguageFactory | |
| private Object | |
| private int | |
| private boolean | |
| private boolean | |
| private int | maxActsSize
The maximum size of acts since the last time it was trimmed. |
| protected long | |
| protected int | |
| private static final int | |
| protected OptimizerFactory | |
| private OptTrace | |
| protected int | |
| protected int | |
| pack-priv Map | printedObjectsMap
This holds a map of AST nodes that have already been printed during a compiler phase, so as to be able to avoid printing a node more than once. |
| private int | queryNestingDepth
queryNestingDepth is a counter used to keep track of how many calls have been made to begin read-only nested transactions. |
| private TransactionController | readOnlyNestedTransaction
If non-null indicates that a read-only nested user transaction is in progress. |
| private WeakHashMap | referencedColumnMap
Connection local state for cached |
| private RunTimeStatistics | |
| private boolean | |
| private StringBuffer | |
| private String | sessionUser
In contrast to current user id, which may change (inside a routine executing with definer's rights), the sessionUser is constant in a session. |
| private final StatementContext[] | |
| private int | |
| private boolean | |
| private ArrayList | |
| protected TypeCompilerFactory | |
| private SQLSessionContext | topLevelSSC
The top SQL session context stack frame (SQL 2003, section 4.37.3), is kept in topLevelSSC. |
| private final TransactionController | tran
The transaction to use within this language connection context. |
| private ArrayList | |
| private ArrayList | |
| private volatile boolean | |
| protected String | |
| private static final int | |
| private static final int | |
| private String | xplain_schema
the current xplain schema. |
| private Map | xplain_statements
For each XPLAIN table, this map stores a SQL INSERT statement which can be prepared and used to insert rows into the table during the capturing of statistics data into the user XPLAIN tables. |
| private boolean | xplainOnlyMode
If xplainOnlyMode is set (via SYSCS_SET_XPLAIN_MODE), then the connection does not actually execute statements, but only compiles them, and emits the query plan information into the XPLAIN tables. |
| Access | Constructor and Description |
|---|---|
| public | GenericLanguageConnectionContext(ContextManager cm, TransactionController tranCtrl, LanguageFactory lf, LanguageConnectionFactory lcf, Database db, String userName, int instanceNumber, String drdaID, String dbname)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | addActivation(Activation a)
Implements org. Add the activation to those known about by this connection. |
| public void | addDeclaredGlobalTempTable(TableDescriptor
Corresponding to the temporary table td)Implements org. Add the declared global temporary table to the list of temporary tables known by this connection. |
| public StringBuffer | |
| public void | autoincrementCreateCounter(String
SchemaName s, String TableName t, String ColumnName c, Long initial value of the counter. initialValue, long increment for the counter. increment, int column position (1-based). position)Implements org. Create an autoincrement counter to be used on behalf of a SQL-J statement. |
| public void | autoincrementFlushCache(UUID
the table which is being flushed; we need this value to
identify the table for which the autoincrement counter is being
maintained. tableUUID)Implements org. Flush the cache of autoincrement values being kept by the lcc. |
| public void | beginNestedTransaction(boolean
The nested transaction would be read only if param value true readOnly)Implements org. Start a Nested User Transaction (NUT) with the store. |
| private boolean | Returns: boolean false if found no activationslook for any activations referencing this table name tableName)check if there are any activations that reference this temporary table |
| public boolean | checkIfAnyDeclaredGlobalTempTablesForThisConnection()
Implements org. Check if there are any global temporary tables declared for this connection. |
| public void | checkIntegrity()
Implements org. Check that deferred constraints are valid, if not roll back the transaction. |
| public void | cleanupOnError(Throwable
The original error error)Implements org. If worse than a transaction error, everything goes; we rely on other contexts to kill the context manager for this session. |
| private TableDescriptor | cleanupTempTableOnCommitOrRollback(TableDescriptor td, boolean dropAndRedeclare)
If dropAndRedeclare is true, that means we have come here for temp tables with on commit delete rows and no held curosr open on them. |
| private void | |
| public void | closeUnusedActivations()
Implements org. Close any unused activations in this connection context. |
| public void | commitNestedTransaction()
Implements org. commit a nested transaction. |
| private void | |
| public void | copyHashtableToAIHT(Map<String, Long> from)
Implements org. Copies an existing autoincrement mapping into autoincrementHT, the cache of autoincrement values kept in the languageconnectioncontext. |
| public SQLSessionContext | createSQLSessionContext()
Implements org. Create a fresh SQLSessionContext for this connection. |
| public final boolean | dataDictionaryInWriteMode()
Implements org. 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(). |
| public int | decrementBindCount()
Implements org. Decrement the DataDictionary bind count. |
| private void | |
| protected void | doCommit(boolean
true if we should commit the Store transaction commitStore, boolean true means do a synchronized commit,
false means do an unsynchronized commit sync, int if this is an unsynchronized commit, the flags to
pass to commitNoSync in the store's
TransactionController. If this is a synchronized
commit, this flag is overloaded for xacommit. commitflag, boolean False iff the commit is for internal use and
we should ignore the check to prevent commits
in an atomic statement. requestedByUser)This is where the work on internalCommit(), userCOmmit() and internalCommitNoSync() actually takes place. |
| private void | doRollback(boolean
true if this is an xa rollback xa, boolean true if requested by user requestedByUser)When a rollback happens, the language connection context will close all open activations and invalidate their prepared statements. |
| private void | dropAllDeclaredGlobalTempTables()
Drop all the declared global temporary tables associated with this connection. |
| public boolean | dropDeclaredGlobalTempTable(String
look for this table name in the saved list and drop it if found tableName)Implements org. Drop (mark the declared global temporary table for dropping) from the list of temporary tables known by this connection. |
| private void | endTransactionActivationHandling(boolean forRollback)
If we are called as part of rollback code path, then we will reset all the activations that have resultset returning rows associated with them. |
| private TempTableInfo | Returns: data structure defining the temporary table if found. Else, return nulllook for this table name in the saved list tableName)Find the declared global temporary table in the list of temporary tables known by this connection. |
| private void | |
| public int | getActivationCount()
Implements org. Return the number of activations known for this connection. |
| public ASTVisitor | getASTVisitor()
Implements org. Get the Visitor which should walk the AST. |
| public Authorizer | getAuthorizer()
Implements org. Get an Authorizer for this connection. |
| public boolean | getAutoincrementUpdate()
Implements org. Returns the current value of autoincrementUpdate. |
| public int | getBindCount()
Implements org. Get the DataDictionary bind count. |
| public int | getCurrentIsolationLevel()
Implements org. Get the current isolation level. |
| public String | getCurrentIsolationLevelStr()
Implements org. Get the current isolation level in DB2 format. |
| public String | getCurrentRoleId(Activation
activation of statement needing current role a)Implements org. Get the current role authorization identifier of the dynamic call context associated with this activation. |
| public String | getCurrentRoleIdDelimited(Activation
activation of statement needing current role a)Implements org. Get the current role authorization identifier in external delimited form (not case normal form) of the dynamic call context associated with this activation. |
| public String | getCurrentSchemaName()
Implements org. Get the current schema name (at compile-time, see explanations for getDefaultSchema overloads). |
| public String | getCurrentSchemaName(Activation a)
Implements org. Get the current schema name (at execution time, see explanations for getDefaultSchema overloads); This version is used by CURRENT SCHEMA. |
| public SQLSessionContext | getCurrentSQLSessionContext(Activation
the activation activation)Implements org. Return the current SQL session context of the activation |
| private SQLSessionContext | |
| public String | getCurrentUserId(Activation
activation a)Implements org. Get the Authorization Id of the current user |
| public Database | getDatabase()
Implements org. Returns the Database of this connection. |
| public DataDictionary | getDataDictionary()
Implements org. Get the data dictionary |
| public DataValueFactory | getDataValueFactory()
Implements org. Get the data value factory to use with this language connection context. |
| public String | getDbname()
Implements org. Get the database name of this LCC. |
| public SchemaDescriptor | getDefaultSchema()
Implements org. Get the default schema (used at compile-time when no activation is yet available, cf. the activation argument overload version. |
| public SchemaDescriptor | getDefaultSchema(Activation
current activation a)Implements org. Get the default schema (used at execution time). |
| public HashMap | getDeferredHashTables()
Implements org. Get the set of disk backed hash tables containing any index rows saved for deferred unique/PK constraints in this transaction, keyed by the conglomerate id, or rows saved containing row locations violating rows for deferred check constraints. |
| public String | getDrdaID()
Implements org. Get the DRDA ID of this LCC. |
| public Long | Returns: the generated identity column valueImplements org. Get the identity column value most recently generated. |
| private SchemaDescriptor | Returns: the schema descriptor of the computed initial default schemaGet the computed value for the initial default schema. |
| public int | getInstanceNumber()
Implements org. Get the instance number of this LCC. |
| public StandardException | getInterruptedException()
Implements org. Get exception created when we detected interruped status flag. |
| public LanguageConnectionFactory | getLanguageConnectionFactory()
Implements org. Get the language connection factory to use with this language connection context. |
| public LanguageFactory | getLanguageFactory()
Implements org. Get the language factory to use with this language connection context. |
| public Activation | getLastActivation()
Implements org. Return the last activation added This is used to find the drop activation in dropViewCascade so we can add warning messages to the activation |
| public Object | getLastQueryTree()
Implements org. Debug method for retrieving the last query tree. |
| public int | getLockEscalationThreshold()
Implements org. get the lock escalation threshold. |
| public boolean | getLogQueryPlan()
Implements org. Get value of logQueryPlan. |
| public boolean | getLogStatementText()
Implements org. Get value of logStatementText. |
| private String | Returns: A unique String for a statement name.The prefix for the statement name. prefix, long The number to append for uniqueness number)Build a String for a statement name. |
| public OptimizerFactory | getOptimizerFactory()
Implements org. get the optimizer factory to use with this language connection context. |
| public OptTrace | getOptimizerTracer()
Implements org. Get the optimizer tracer (could be null if we aren't tracing the optimizer). |
| public int | getPrepareIsolationLevel()
Implements org. Get the prepare isolation level. |
| public Map | getPrintedObjectsMap()
Implements org. Return a map of AST nodes that have already been printed during a compiler phase, so as to be able to avoid printing a node more than once. |
| public FormatableBitSet | getReferencedColumnMap(TableDescriptor td)
Implements org. Get the referenced column map for a table |
| public boolean | getRunTimeStatisticsMode()
Implements org. Get the RUNTIMESTATISTICS mode. |
| public RunTimeStatistics | getRunTimeStatisticsObject()
Implements org. Get the RUNTIMESTATISTICS object. |
| public String | Returns: String the authorization id of the session user.Implements org. Get the session user |
| public StatementContext | getStatementContext()
Implements org. Get the current StatementContext. |
| public int | Returns: a statement level >= OUTERMOST_STATEMENTImplements org. Reports how many statement levels deep we are. |
| public boolean | getStatisticsTiming()
Implements org. Get the STATISTICS TIMING mode. |
| public TableDescriptor | getTableDescriptorForDeclaredGlobalTempTable(String
Get table descriptor for the passed table name tableName)Implements org. Get table descriptor for the declared global temporary table from the list of temporary tables known by this connection. |
| public SQLSessionContext | getTopLevelSQLSessionContext()
Implements org. Get the value of top level session context of the top level connection. |
| public final TransactionController | getTransactionCompile()
Implements org. Get the transaction controller to use at compile time with this language connection context. |
| public TransactionController | getTransactionExecute()
Implements org. Get the transaction controller to use with this language connection context during execute time. |
| public TriggerExecutionContext | Returns: the tecImplements org. Get the topmost tec. |
| public TableDescriptor | Returns: the table descriptor, or null if we aren't in the middle of compiling a create trigger.Implements org. Get the topmost trigger table descriptor |
| public String | getUniqueCursorName()
Implements org. Get a connection unique system generated name for a cursor. |
| public int | getUniqueSavepointID()
Implements org. Get a connection unique system generated id for an unnamed savepoint. |
| public String | getUniqueSavepointName()
Implements org. Get a connection unique system generated name for an unnamed savepoint. |
| public boolean | getXplainOnlyMode()
Implements org. gets the current set XplainOnlyMode |
| public String | getXplainSchema()
Implements org. gets the current set XplainSchema |
| public Object | |
| public int | incrementBindCount()
Implements org. Increment the DataDictionary bind count. |
| private void | |
| protected SchemaDescriptor | Returns: computed initial default schema value for this sessionCompute the initial default schema and set cachedInitialDefaultSchemaDescr accordingly. |
| public void | initialize()
Implements org. Initialize. |
| public void | internalCommit(boolean
true if we should commit the Store transaction commitStore)Implements org. Do a commit as appropriate for an internally generated commit (e.g. as needed by sync, or autocommit). |
| public final void | internalCommitNoSync(int
the flags to pass to commitNoSync in the store's
TransactionController commitflag)Implements org. Commit the language transaction by doing a commitNoSync() on the store's TransactionController. |
| public void | internalRollback()
Implements org. Do a rollback as appropriate for an internally generated rollback (e.g. as needed by sync, or autocommit). |
| public void | internalRollbackToSavepoint(String
Name of the savepoint that needs to be rolled back savepointName, boolean boolean indicating whether or not the controller should close
open conglomerates and scans. Also used to determine if language should close
open activations. refreshStyle, Object A NULL value means it is an internal savepoint (ie not a user defined savepoint)
Non NULL value means it is a user defined savepoint which can be a SQL savepoint or a JDBC savepoint
A String value for kindOfSavepoint would mean it is SQL savepoint
A JDBC Savepoint object value for kindOfSavepoint would mean it is JDBC savepoint kindOfSavepoint)Implements org. Let the context deal with a rollback to savepoint |
| private void | |
| public boolean | isEffectivelyDeferred(SQLSessionContext
The SQL session context for which we are asking the status sc, UUID The constraint id we are inquiring about. constraintId)Implements org. Determines if a check or foreign key constraint has deferred mode. |
| public boolean | isInitialDefaultSchema(String schemaName)
Implements org. Return true if this schema name is the initial default schema for the current session. |
| public boolean | isIsolationLevelSetUsingSQLorJDBC()
Implements org. Returns true if isolation level has been set using JDBC/SQL. |
| public boolean | isLastHandler(int
The severity level severity)Overrides org. Implements org. Return whether or not this context is the "last" handler for a the specified severity level. |
| public boolean | isReadOnly()
Implements org. Get the readOnly status for the current connection. |
| public boolean | Returns: true if there is outstanding work in the transaction false otherwiseImplements org. Reports whether there is any outstanding work in the transaction. |
| public void | languageSetSavePoint(String
name of savepoint savepointName, Object A NULL value means it is an internal savepoint (ie not a user defined savepoint)
Non NULL value means it is a user defined savepoint which can be a SQL savepoint or a JDBC savepoint
A String value for kindOfSavepoint would mean it is SQL savepoint
A JDBC Savepoint object value for kindOfSavepoint would mean it is JDBC savepoint kindOfSavepoint)Implements org. Sets a savepoint. |
| public Long | lastAutoincrementValue(String schemaName, String tableName, String columnName)
Implements org. lastAutoincrementValue searches for the last autoincrement value inserted into a column specified by the user. |
| public CursorActivation | Returns: the activation for the given cursor, null if none was found.Implements org. See if a given cursor is available for use. |
| public PreparedStatement | Returns: the prepared statement for the given string, null if none was found.See if a given statement has already been compiled for this user, and if so use its prepared statement. |
| public void | markTempTableAsModifiedInUnitOfWork(String
Mark the passed temporary table name as modified tableName)Implements org. Mark the passed temporary table as modified in the current unit of work. |
| public long | nextAutoincrementValue(String schemaName, String tableName, String
identify the column uniquely in the system. columnName)Implements org. returns the next value to be inserted into an autoincrement col. |
| public void | notifyUnusedActivation()
Implements org. Make a note that some activations are marked unused |
| public boolean | optimizerTracingIsOn()
Implements org. Get whether or not optimizer trace is on. |
| public void | popCompilerContext(CompilerContext
The compiler context. cc)Implements org. Pop a CompilerContext off the context stack. |
| public void | popExecutionStmtValidator(ExecutionStmtValidator
the validator to remove validator)Implements org. Remove the validator. |
| public void | popNestedSessionContext(Activation
activation a)Implements org. If returning from a routine that can execute SQL, perform any actions needed when popping the SQL session context. |
| public void | popStatementContext(StatementContext
The statement context. statementContext, Throwable The error, if any (Only relevant for DEBUG) error)Implements org. Pop a StatementContext of the context stack. |
| public void | popTriggerExecutionContext(TriggerExecutionContext
the tec to remove tec)Implements org. Remove the tec. |
| public void | popTriggerTable(TableDescriptor
the table to remove from the stack. td)Implements org. Remove the trigger table descriptor. |
| public PreparedStatement | prepareInternalStatement(SchemaDescriptor
schema compilationSchema, String sql query string sqlText, boolean read only status for resultset. Set to true if the concurrency mode for the resultset
is CONCUR_READ_ONLY isForReadOnly, boolean If true, then this query is allowed to use internal
sql syntax. One instance where this will be true is if a
metadata query is getting executed. forMetaData)Implements org. Return a PreparedStatement object for the query. |
| public PreparedStatement | prepareInternalStatement(String
sql query string sqlText)Implements org. Return a PreparedStatement object for the query. |
| public final CompilerContext | Returns: the compiler contextImplements org. Push a CompilerContext on the context stack with the current default schema as the default schema which we compile against. |
| public CompilerContext | Returns: the compiler context For the parameter sd, there are 3 possible values(of interest) that can get passed into this method: a) A null SchemaDescriptor which indicates to the system to use the CURRENT SCHEMA as the compilation schema. b) A SchemaDescriptor with its UUID == null, this indicates that either the schema has not been physically created yet or that the LCC's getDefaultSchema() is not yet up-to-date with its actual UUID. The system will use the CURRENT SCHEMA as the compilation schema. c) A SchemaDescriptor with its UUID != null, this means that the schema has been physically created. The system will use this schema as the compilation schema (e.g.: for trigger or view recompilation cases, etc.). The compiler context's compilation schema will be set accordingly based on the given input above.the default schema sd)Implements org. Push a CompilerContext on the context stack with the passed in schema sd as the default schema we compile against. |
| public void | pushExecutionStmtValidator(ExecutionStmtValidator
the validator to add validator)Implements org. Push a new execution statement validator. |
| public void | pushNestedSessionContext(Activation
activation of the statement which performs the call. a, boolean if the method should run with definer's rights definersRights, String authorization id of the definer definer)Implements org. Create a new SQL session context for the current activation on the basis of the existing SQL session context. |
| public StatementContext | Returns: StatementContext The statement context.whether this statement is atomic or not isAtomic, boolean whether this statement is for a read only resultset isForReadOnly, String the text of the statement. Needed for any language
statement (currently, for any statement that can cause a trigger
to fire). Please set this unless you are some funky jdbc setXXX
method or something. stmtText, ParameterValueSet parameter value set, if it has one pvs, boolean True if 1) the statement context is
NOT a top-level context, AND 2) in the event of a statement-level
exception, the parent context needs to be rolled back, too. rollbackParentContext, long timeout value for this statement, in milliseconds.
The value 0 means that no timeout is set. timeoutMillis)Implements org. Push a StatementContext on the context stack. |
| public void | pushTriggerExecutionContext(TriggerExecutionContext
the trigger execution context tec)Implements org. Push a new trigger execution context. |
| public void | pushTriggerTable(TableDescriptor
the table that the trigger is
defined upon td)Implements org. Set the trigger table descriptor. |
| public void | releaseSavePoint(String
Name of the savepoint that needs to be released savepointName, Object A NULL value means it is an internal savepoint (ie not a user defined savepoint)
Non NULL value means it is a user defined savepoint which can be a SQL savepoint or a JDBC savepoint
A String value for kindOfSavepoint would mean it is SQL savepoint
A JDBC Savepoint object value for kindOfSavepoint would mean it is JDBC savepoint kindOfSavepoint)Implements org. Let the context deal with a release of a savepoint |
| public void | removeActivation(Activation a)
Implements org. Remove the activation to those known about by this connection. |
| public void | removeStatement(GenericStatement
Statement to remove statement)This method will remove a statement from the statement cache. |
| private void | replaceDeclaredGlobalTempTable(String
Temporary table name whose table descriptor is
getting changed tableName, TableDescriptor New table descriptor for the temporary table td)This is called at the commit time for temporary tables with ON COMMIT DELETE ROWS If a temp table with ON COMMIT DELETE ROWS doesn't have any held cursor open on them, we delete the data from them by dropping the conglomerate and recreating the conglomerate. |
| public void | resetFromPool()
Implements org. Reset the connection before it is returned (indirectly) by a PooledConnection object. |
| public void | resetIsolationLevelFlagUsedForSQLandJDBC()
Implements org. Reset the isolation level flag used to keep correct isolation level state in BrokeredConnection. |
| private void | |
| public void | resetSchemaUsages(Activation
current activation activation, String the schema name occurences of which is to be reset schemaName)Implements org. Reset any occurence of schemaName as current default schema in the SQLSessionContext stack to the initial default, because schemaName is no longer a valid schema. |
| protected void | |
| public boolean | roleIsSettable(Activation
activation a, String string containing role name role)Implements org. Checks whether the given role can be legally set for the current user. |
| public void | setASTVisitor(ASTVisitor
The Visitor which should walk the tree. Could be null. visitor)Implements org. Set a Visitor which walks the AST at various stages. |
| public void | setAutoincrementUpdate(boolean
the value for autoincrementUpdate (TRUE or FALSE) flag)Implements org. Sets autoincrementUpdate-- this variable allows updates to autoincrement columns if it is set to true. |
| public void | setConstraintDeferred(final Activation
activation a, ConstraintDescriptor the constraint descriptor cd, final boolean the constraint mode deferred)Implements org. Set the constraint mode to deferred for the specified constraint. |
| public void | setCurrentRole(Activation
activation of set role statement a, String the id of the role to be set to current role)Implements org. Set the current role |
| public final void | setDataDictionaryWriteMode()
Implements org. 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
the new default schema.
If null, then the default schema descriptor is used. sd)Implements org. Set the default schema (at compile-time, see explanations for getDefaultSchema overloads). |
| public void | setDefaultSchema(Activation
current activation a, SchemaDescriptor the new default schema.
If null, then the default schema descriptor is used. sd)Implements org. Set the default schema (at execution time, see explanations for getDefaultSchema overloads); This version is used by SET SCHEMA. |
| public void | setDeferredAll(final Activation
The activation a, final boolean The value which holds the constraint mode deferred)Implements org. Set the constraint mode of all deferrable constraints to the value of
|
| public void | setDrdaID(String
DRDA ID. drdaID)Implements org. Set the DRDA ID of this LCC. |
| public void | setIdentityValue(long
the generated identity column value val)Implements org. Set the field of most recently generated identity column value. |
| public void | setInterruptedException(StandardException
the created exception e)Implements org. Set the exception created and associated with the detected interruped status flag. |
| public void | setIsolationLevel(int
The new isolationLevel. isolationLevel)Implements org. Set current isolation level. |
| public void | setLastQueryTree(Object queryTree)
Implements org. Debug method for remembering the last query tree. |
| public void | setLogStatementText(boolean
Whether or not logStatementText property is set. logStatementText)Implements org. Set value of logStatementText (Whether or not to write info on currently executing statement to error log.) |
| public void | setOptimizerTracer(OptTrace
Null if tracing is being turned off, otherwise an optimizer tracer tracer)Implements org. Install an optimizer tracer (to enable tracing) or uninstall the current optimizer tracer (to disable tracing). |
| public void | |
| public void | setReadOnly(boolean
true sets the connection to be readOnly and
false sets it to readWrite. on)Implements org. Set the readOnly status for the current connection. |
| public void | setReferencedColumnMap(TableDescriptor
the table descriptor td, FormatableBitSet the map map)Implements org. Set the referenced column map for a table |
| public final void | setRunTimeStatisticsMode(boolean onOrOff)
Implements org. Turn RUNTIMESTATISTICS on or off. |
| public void | setRunTimeStatisticsObject(RunTimeStatistics runTimeStatisticsObject)
Implements org. Set the RUNTIMESTATISTICS object. |
| public void | setStatisticsTiming(boolean onOrOff)
Implements org. Turn STATISTICS TIMING on or off. |
| private void | |
| public void | setupSubStatementSessionContext(Activation a)
Implements org. Used when a statement as part of its operation executes an other statement. |
| public void | setXplainOnlyMode(boolean
true if statements are to be XPLAINed only. onOrOff)Implements org. sets the XplainOnlyMode. |
| public void | setXplainSchema(String
the schema to use for storing XPLAIN'd statements
null means don't store the xplain information
non-null means persistent style, use the indicated schema s)Implements org. sets the XplainSchema |
| public void | |
| private void | tempTablesAndCommit(boolean
if true, then transaction is an XA transaction,
and special nested transaction may be necessary
to cleanup internal containers supporting the
temp tables at commit time. in_xa_transaction)Do the necessary work at commit time for temporary tables 1)If a temporary table was marked as dropped in this transaction, then remove it from the list of temp tables for this connection 2)If a temporary table was not dropped in this transaction, then mark it's declared savepoint level and modified savepoint level as -1 3)After savepoint fix up, then handle all ON COMMIT DELETE ROWS with no open held cursor temp tables. |
| private void | tempTablesAndRollback()
do the necessary work at rollback time for temporary tables 1)If a temp table was declared in the UOW, then drop it and remove it from list of temporary tables. |
| private void | tempTablesReleaseSavepointLevels()
After a release of a savepoint, we need to go through our temp tables list. |
| private void | |
| public void | userCommit()
Implements org. Do a commmit as is appropriate for a user requested commit (e.g. a java.sql.Connection.commit() or a language 'COMMIT' statement. |
| public void | userRollback()
Implements org. Do a rollback as is appropriate for a user requested rollback (e.g. a java.sql.Connection.rollback() or a language 'ROLLBACk' statement. |
| public boolean | usesSqlAuthorization()
Implements org. Check if in SQL standard mode, with support for Grant and Revoke |
| private void | validateDeferredConstraint(ConstraintDescriptor
the descriptor of the constraint to validate cd)Validate a deferred constraint. |
| private void | |
| public void | validateStmtExecution(ConstantAction
the constantAction that is about to be executed (and
should be validated constantAction)Implements org. Validate a statement. |
| public boolean | Returns: boolean Found no open (held) resultsets.Implements org. Verify that there are no activations with open held result sets. |
| public boolean | Returns: Nothing.The prepared Statement pStmt, Provider The object precipitating a possible invalidation provider, int The action causing the possible invalidation action)Implements org. Verify that there are no activations with open result sets on the specified prepared statement. |
| public final void | xaCommit(boolean
if true, allow it to commit without first going thru a
prepared state. onePhase)Implements org. Same as userCommit except commit a distributed transaction. |
| public void | xaRollback()
Implements org. Same as userRollback() except rolls back a distrubuted transaction. |