More stable items, like other factories, are accessible through the LanguageConnectionFactory or the LanguageFactory.
LanguageConnectionFactory, org.apache.derby.iapi.sql.LanguageFactory
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final String | CONTEXT_ID
this is the ID we expect these contexts to be stored into a context manager under. |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final String |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | addDeclaredGlobalTempTable(TableDescriptor
Corresponding to the temporary table td)Add the declared global temporary table to the list of temporary tables known by this connection. |
| 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)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)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)Begin a nested transaction. |
| public boolean | Returns: true if there are declared temp tables for this connectoin else falseCheck if there are any global temporary tables declared for this connection. |
| public void | |
| public void | |
| public void | |
| public void | copyHashtableToAIHT(Map<String, Long> from)
Copy a map of autoincrement key value pairs into the cache of ai values stored in the language connection context. |
| public SQLSessionContext | Returns: new SQLSessionContextCreate a fresh SQLSessionContext for this connection. |
| public 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(). |
| public int | |
| public boolean | Returns: true if dropped the temporary table. False if no such temporary table exists.look for this table name in the saved list and drop it if found tableName)Drop (mark the declared global temporary table for dropping) from the list of temporary tables known by this connection. |
| public int | |
| public ASTVisitor | Returns: The Visitor for that phase. Could be null.Get the Visitor which should walk the AST. |
| public Authorizer | |
| public boolean | Returns: true if updates to autoincrement columns is permitted.Returns the current value of autoincrementUpdate. |
| public int | |
| public int | |
| public String | Returns: The current isolation level as a 2 character string.Get the current isolation level in DB2 format. |
| public String | Returns: String the role idactivation of statement needing current role a)Get the current role authorization identifier of the dynamic call context associated with this activation. |
| public String | Returns: String the role id in delimited form (i.e. not internal case normal form)activation of statement needing current role a)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 | Returns: SchemaDescriptor the current schemaGet the current schema name (at compile-time, see explanations for getDefaultSchema overloads). |
| public String | Returns: SchemaDescriptor the current schemaGet the current schema name (at execution time, see explanations for getDefaultSchema overloads); This version is used by CURRENT SCHEMA. |
| public SQLSessionContext | Returns: The SQL session objectThe activation activation)Get the SQL session context of the given activation. |
| public String | Returns: String the authorization idactivation a)Get the Authorization Id of the current user |
| public Database | |
| public DataDictionary | |
| public DataValueFactory | |
| public String | |
| public SchemaDescriptor | Returns: SchemaDescriptor the default schemaGet the default schema (used at compile-time when no activation is yet available, cf. the activation argument overload version. |
| public SchemaDescriptor | Returns: SchemaDescriptor the default schemacurrent activation a)Get the default schema (used at execution time). |
| public HashMap | Returns: the setGet 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 | |
| public Long | Returns: the generated identity column valueGet the identity column value most recently generated. |
| public int | |
| public StandardException | Returns: saved exceptionGet exception created when we detected interruped status flag. |
| public LanguageConnectionFactory | getLanguageConnectionFactory()
Get the language connection factory to use with this language connection context. |
| public LanguageFactory | |
| public Activation | getLastActivation()
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 | |
| public int | |
| public boolean | |
| public boolean | |
| public OptimizerFactory | |
| public OptTrace | |
| public int | |
| public Map | Returns: the mapReturn 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 | |
| public boolean | |
| public RunTimeStatistics | |
| public String | |
| public StatementContext | |
| public int | Returns: a statement level >= OUTERMOST_STATEMENTReports how many statement levels deep we are. |
| public boolean | |
| public TableDescriptor | Returns: TableDescriptor if found the temporary table. Else return nullGet table descriptor for the passed table name tableName)Get table descriptor for the declared global temporary table from the list of temporary tables known by this connection. |
| public SQLSessionContext | Returns: the requested session contextGet the value of top level session context of the top level connection. |
| public TransactionController | getTransactionCompile()
Get the transaction controller to use with this language connection context at compile time. |
| public TransactionController | getTransactionExecute()
Get the transaction controller to use with this language connection context during execute time. |
| public TriggerExecutionContext | |
| public TableDescriptor | Returns: the table descriptor, or null if we aren't in the middle of compiling a create trigger.Get the topmost trigger table descriptor |
| public String | |
| public int | |
| public String | |
| public boolean | |
| public String | |
| public Object | |
| public int | |
| public void | |
| public void | internalCommit(boolean
true if we should commit the Store transaction commitStore)Do a commit, as internally needed by Derby. |
| public void | internalCommitNoSync(int
the flags to pass to commitNoSync in the store's
TransactionController commitflag)Similar to internalCommit() but has logic for an unsynchronized commit |
| public void | |
| 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)Let the context deal with a rollback to savepoint |
| public boolean | Returns: true if the constraint is deferredThe SQL session context for which we are asking the status sc, UUID The constraint id we are inquiring about. constraintId)Determines if a check or foreign key constraint has deferred mode. |
| public boolean | Returns: trueReturn true if this schema name is the initial default schema for the current session. |
| public boolean | |
| public boolean | |
| public boolean | Returns: true if there is outstanding work in the transaction false otherwiseReports 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)Sets a savepoint. |
| public Long | lastAutoincrementValue(String schemaName, String tableName, String columnName)
Returns the last autoincrement value inserted by this connection. |
| public CursorActivation | Returns: the activation for the given cursor, null if none exists.See if a given cursor is available for use. |
| public void | markTempTableAsModifiedInUnitOfWork(String
Mark the passed temporary table name as modified tableName)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)returns the next value to be inserted into an autoincrement col. |
| public void | |
| public boolean | Returns: Whether or not optimizer trace is on.Get whether or not optimizer trace is on. |
| public void | popCompilerContext(CompilerContext
The compiler context. compilerContext)Pop a CompilerContext off the context stack. |
| public void | popExecutionStmtValidator(ExecutionStmtValidator
the validator to remove validator)Remove the validator. |
| public void | popNestedSessionContext(Activation
activation a)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)Pop a StatementContext of the context stack. |
| public void | |
| public void | popTriggerTable(TableDescriptor
the table to remove from the stack. td)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. allowInternalSyntax)Return a PreparedStatement object for the query. |
| public PreparedStatement | prepareInternalStatement(String
sql query string sqlText)Return a PreparedStatement object for the query. |
| public CompilerContext | Returns: the compiler contextPush a CompilerContext on the context stack with the current default schema as the default schema which we compile against. |
| public CompilerContext | Returns: the compiler contextthe default schema 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
the validator to add validator)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)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 a commit/rollback is permitted
from a nested connection under this statement isAtomic, boolean 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.
Zero means no timeout. timeoutMillis)Push a StatementContext on the context stack. |
| public void | pushTriggerExecutionContext(TriggerExecutionContext
the trigger execution context tec)Push a new trigger execution context. |
| public void | pushTriggerTable(TableDescriptor
the table that the trigger is
defined upon td)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)Let the context deal with a release of a savepoint |
| public void | |
| 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 | resetSchemaUsages(Activation
current activation activation, String the schema name occurences of which is to be reset schemaName)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. |
| public boolean | Returns: true if the role can be setactivation a, String string containing role name role)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)Set a Visitor which walks the AST at various stages. |
| public void | setAutoincrementUpdate(boolean
the value for autoincrementUpdate (TRUE or FALSE) flag)Sets autoincrementUpdate-- this variable allows updates to autoincrement columns if it is set to true. |
| public void | setConstraintDeferred(Activation
Activation a, ConstraintDescriptor The descriptor of the constraint cd, boolean The new constraint mode deferred)Set the constraint mode for this constraint to |
| public void | setCurrentRole(Activation
activation of set role statement a, String the id of the role to be set to current role)Set the current role |
| public 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
the new default schema.
If null, then the default schema descriptor is used. sd)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)Set the default schema (at execution time, see explanations for getDefaultSchema overloads); This version is used by SET SCHEMA. |
| public void | setDeferredAll(Activation
The activation a, boolean The value which holds the constraint mode deferred)Set the constraint mode of all deferrable constraints to the value of
|
| public void | |
| public void | setIdentityValue(long
the generated identity column value val)Set the field of most recently generated identity column value. |
| public void | setInterruptedException(StandardException
the created exception e)Set the exception created and associated with the detected interruped status flag. |
| public void | |
| public void | |
| public void | setLogStatementText(boolean
Whether or not logStatementText property is set. logStatementText)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)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. onOrOff)Set the readOnly status for the current connection. |
| public void | setReferencedColumnMap(TableDescriptor
the table descriptor td, FormatableBitSet the map map)Set the referenced column map for a table |
| public void | |
| public void | setRunTimeStatisticsObject(RunTimeStatistics runTimeStatisticsObject)
Set the RUNTIMESTATISTICS object. |
| public void | |
| public void | setupSubStatementSessionContext(Activation a)
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)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 schema)sets the XplainSchema |
| public void | |
| public void | userCommit()
Do a commit, as issued directly by a user (e.g. via Connection.commit() or the JSQL 'COMMIT' statement. |
| public void | userRollback()
Do a rollback, as issued directly by a user (e.g. via Connection.rollback() or the JSQL 'ROLLBACK' statement. |
| public boolean | Returns: True if SQL standard permissions are being usedCheck if in SQL standard mode, with support for Grant and Revoke |
| public void | validateStmtExecution(ConstantAction
the constantAction that is about to be executed (and
should be validated constantAction)Validate a statement. |
| public boolean | Returns: boolean Found no open resultsets.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)Verify that there are no activations with open result sets on the specified prepared statement. |
| public void | xaCommit(boolean
if true, allow it to commit without first going thru a
prepared state. onePhase)Commit a distrubuted transaction. |
| public void |