📄 languageconnectioncontext.java
字号:
@param tran the transaction to use with this language connection context */ void setTransaction( TransactionController tran ); /** * Begin a nested transaction. * * @param readOnly The nested transaction would be read only if param value true * * @exception StandardException on error. * @see TransactionController#startNestedUserTransaction */ void beginNestedTransaction(boolean readOnly) throws StandardException; /** * commit a nested transaction. * We do not provide a abortNestedTransaction. * If a nested xaction is aborted, then this results in the parent xaction * also being aborted. This is not what we need for releasing * compile time locks or autoincrement-- hence we do not provide * abortNestedTransaction. * * @exception StandardException thrown on erro * * @see TransactionController#startNestedUserTransaction */ void commitNestedTransaction() throws StandardException; /** Get the transaction controller to use with this language connection context at compile time. */ TransactionController getTransactionCompile(); /** Get the transaction controller to use with this language connection context during execute time. */ TransactionController getTransactionExecute(); /** * Get the system schema name. * * @return a String containing the system schema name. */ public String getSystemSchemaName() throws StandardException; /** * Get the SYSIBM schema name. * * @return a String containing the SYSIBM schema name. */ public String getSysIBMSchemaName() throws StandardException; /** * Get the SYSCS_DIAG schema name. * * @return a String containing the SYSIBM schema name. */ public String getSystemDiagSchemaName() throws StandardException; /** * Get the SYSCS_UTIL schema name. * * @return a String containing the SYSIBM schema name. */ public String getSystemUtilSchemaName() throws StandardException; /** Get the data dictionary @return the data dictionary */ public DataDictionary getDataDictionary(); /** Get the data value factory to use with this language connection context. */ DataValueFactory getDataValueFactory(); /** Get the language factory to use with this language connection context. */ LanguageFactory getLanguageFactory(); /** * get the optimizer factory to use with this language connection context. */ OptimizerFactory getOptimizerFactory(); /** Get the language connection factory to use with this language connection context. */ LanguageConnectionFactory getLanguageConnectionFactory(); /** * Get the Authorization Id * * @return String the authorization id */ public String getAuthorizationId(); /** * Get the declared global temporary tables schema name. * * @return a String containing the declared global temporary tables schema name. */ public String getDeclaredGlobalTemporaryTablesSchemaName() throws StandardException; /** * Get the current default schema * * @return SchemaDescriptor the current schema */ public SchemaDescriptor getDefaultSchema(); /** * Set the current default schema * * @param SchemaDescriptor the new default schema * * @exception StandardException thrown on failure */ public void setDefaultSchema(SchemaDescriptor sd) throws StandardException; /** * Get the current schema name * * @return SchemaDescriptor the current schema */ public String getCurrentSchemaName(); /** * Get the identity column value most recently generated. * * @return the generated identity column value */ public Long getIdentityValue(); /** * Set the field of most recently generated identity column value. * * @param the generated identity column value */ public void setIdentityValue(long val); /** * Verify that there are no activations with open result sets * on the specified prepared statement. * * @param pStmt The prepared Statement * @param provider The object precipitating a possible invalidation * @param action The action causing the possible invalidation * * @return Nothing. * * @exception StandardException thrown on failure */ boolean verifyNoOpenResultSets(PreparedStatement pStmt, Provider provider, int action) throws StandardException; /** * Verify that there are no activations with open held result sets. * * @return boolean Found no open resultsets. * * @exception StandardException thrown on failure */ public boolean verifyAllHeldResultSetsAreClosed() throws StandardException; /** * Push a CompilerContext on the context stack with * the current default schema as the default schema * which we compile against. * * @return the compiler context * * @exception StandardException thrown on failure */ public CompilerContext pushCompilerContext(); /** * Push a CompilerContext on the context stack with * the passed in default schema as the default schema * we compile against. * * @param sd the default schema * * @return the compiler context * * @exception StandardException thrown on failure */ public CompilerContext pushCompilerContext(SchemaDescriptor sd); /** * Pop a CompilerContext off the context stack. * * @param compilerContext The compiler context. * * @return Nothing. * * @exception StandardException thrown on failure */ public void popCompilerContext(CompilerContext compilerContext); /** * Push a StatementContext on the context stack. * * @param isAtomic whether a commit/rollback is permitted * from a nested connection under this statement * * @param stmtText 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. * * @param pvs parameter value set, if it has one * * @param rollbackParentContext 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. * * @return StatementContext The statement context. * */ StatementContext pushStatementContext(boolean isAtomic, String stmtText, ParameterValueSet pvs, boolean rollbackParentContext); /** * Pop a StatementContext of the context stack. * * @param statementContext The statement context. * @param error The error, if any (Only relevant for DEBUG) * * @return Nothing. * */ public void popStatementContext(StatementContext statementContext, Throwable error); /** * Push a new execution statement validator. An execution statement * validator is an object that validates the current statement to * ensure that it is permitted given the current execution context. * An example of a validator a trigger ExecutionStmtValidator that * doesn't allow ddl on the trigger target table. * <p> * Multiple ExecutionStmtValidators may be active at any given time. * This mirrors the way there can be multiple connection nestings * at a single time. The validation is performed by calling each * validator's validateStatement() method. This yields the union * of all validations. * * @param validator the validator to add */ public void pushExecutionStmtValidator(ExecutionStmtValidator validator); /** * Remove the validator. Does an object identity (validator == validator) * comparison. Asserts that the validator is found. * * @param validator the validator to remove * * @exception StandardException on error */ public void popExecutionStmtValidator(ExecutionStmtValidator validator) throws StandardException; /** * Validate a statement. Does so by stepping through all the validators * and executing them. If a validator throws and exception, then the * checking is stopped and the exception is passed up. * * @param constantAction the constantAction that is about to be executed (and * should be validated * * @exception StandardException on validation failure */ public void validateStmtExecution(ConstantAction constantAction) throws StandardException; /** * Push a new trigger execution context. * <p> * Multiple TriggerExecutionContexts may be active at any given time. * * @param tec the trigger execution context * * @exception StandardException on trigger recursion error */ public void pushTriggerExecutionContext(TriggerExecutionContext tec) throws StandardException; /** * Remove the tec. Does an object identity (tec == tec) * comparison. Asserts that the tec is found. * * @param tec the tec to remove * * @exception StandardException on error */ public void popTriggerExecutionContext(TriggerExecutionContext tec) throws StandardException; /** * Get the topmost tec. * * @return the tec */ public TriggerExecutionContext getTriggerExecutionContext(); /** * Set the trigger table descriptor. Used to compile * statements that may special trigger pseudo tables. * * @param td the table that the trigger is * defined upon * */ public void pushTriggerTable(TableDescriptor td); /** * Remove the trigger table descriptor. * * @param td the table to remove from the stack. */ public void popTriggerTable(TableDescriptor td); /** * Get the topmost trigger table descriptor * * @return the table descriptor, or null if we * aren't in the middle of compiling a create * trigger. */ public TableDescriptor getTriggerTable(); /** * Increment the DataDictionary bind count. This is for keeping track * of nested binding, which can happen if SQL statements are bound from * within static initializers. * * @return The new bind count */ int incrementBindCount(); /** * Decrement the DataDictionary bind count. * * @return The new bind count */ int decrementBindCount(); /** * Get the DataDictionary bind count. * * @return The current bind count. */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -