📄 languageconnectioncontext.java
字号:
int getBindCount(); /** * Remember that the DataDictionary is in write mode, so we can take * it out of write mode at the end of the transaction. */ void setDataDictionaryWriteMode(); /** * 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(). */ boolean dataDictionaryInWriteMode(); /** * Turn RUNTIMESTATISTICS on or off. */ public void setRunTimeStatisticsMode(boolean onOrOff); /** * Get the RUNTIMESTATISTICS mode. */ public boolean getRunTimeStatisticsMode(); /** * Turn STATISTICS TIMING on or off. */ public void setStatisticsTiming(boolean onOrOff); /** * Get the STATISTICS TIMING mode. */ public boolean getStatisticsTiming(); /** * Set the RUNTIMESTATISTICS object. */ public void setRunTimeStatisticsObject(RunTimeStatistics runTimeStatisticsObject); /** * Get the RUNTIMESTATISTICS object. */ public RunTimeStatistics getRunTimeStatisticsObject(); /** * Reports how many statement levels deep we are. * * @return a statement level >= OUTERMOST_STATEMENT */ public int getStatementDepth(); /** Returns the Database of this connection. */ public Database getDatabase(); /** * Returns true if isolation level has been set using JDBC/SQL. */ public boolean isIsolationLevelSetUsingSQLorJDBC(); /** * Reset the isolation level flag used to keep correct isolation level * state in BrokeredConnection. This resetting will happen at the start * and end of a global transaction, after the BrokeredConection's * isolation level state is brought upto date with the EmbedConnection's * isolation state. * The flag gets set to true when isolation level is set using JDBC/SQL. */ public void resetIsolationLevelFlagUsedForSQLandJDBC(); /** * Set current isolation level. * * @param isolationLevel The new isolationLevel. * * @return Nothing. */ public void setIsolationLevel(int isolationLevel) throws StandardException; /** * Get the current isolation level. * * @return The current isolation level. */ public int getCurrentIsolationLevel(); /** * Get the current isolation level in DB2 format. * * @return The current isolation level as a 2 character string. */ public String getCurrentIsolationLevelStr(); public void setPrepareIsolationLevel(int isolationLevel) ; /** * Get the prepare isolation level. * If the isolation level has been explicitly set with a SQL statement or * embedded call to setTransactionIsolation, this will return * ExecutionContext.UNSPECIFIED_ISOLATION_LEVEL * SET ISOLATION always takes priority. * */ public int getPrepareIsolationLevel(); /** * Set the readOnly status for the current connection. This can * only be called when the current transaction has not done * any work. * * @param onOrOff true sets the connection to be readOnly and * false sets it to readWrite. * * @exception StandardException The call failed and the readOnly * status has not changed. */ public void setReadOnly(boolean onOrOff) throws StandardException; /** * Get the readOnly status for the current connection. */ public boolean isReadOnly(); /** * Get an Authorizer for this connection. */ public Authorizer getAuthorizer(); /** * Get the current ExecutionContext. */ ExecutionContext getExecutionContext(); /** * Get the current StatementContext. */ StatementContext getStatementContext(); /** Get the AccessFactory cached in this LanguageConnectionContext */ AccessFactory getAccessFactory(); /** Return a compiled Statement object. The schema and unicode setting fo the returned statement are that of this connection. */ public PreparedStatement prepareInternalStatement(String sqlText) throws StandardException; public PreparedStatement prepareInternalStatement(SchemaDescriptor compilationSchema, String sqlText) throws StandardException; /** * Control whether or not optimizer trace is on. * * @param onOrOff Whether to turn optimizer trace on (true) or off (false). * * @return Whether or not the call was successful. (false will be returned when optimizer tracing is not supported.) */ public boolean setOptimizerTrace(boolean onOrOff); /** * Get whether or not optimizer trace is on. * * @return Whether or not optimizer trace is on. */ public boolean getOptimizerTrace(); /** * Control whether or not optimizer trace is generated in html. * * @param onOrOff Whether or not optimizer trace will be in html (true) or not (false). * * @return Whether or not the call was successful. (false will be returned when optimizer tracing is not supported.) */ public boolean setOptimizerTraceHtml(boolean onOrOff); /** * Get whether or not optimizer trace html is on. * * @return Whether or not optimizer trace html is on. */ public boolean getOptimizerTraceHtml(); /** * Get the optimizer trace output for the last optimized query as a String. If optimizer trace * html is on, then the String will contain the html tags. * * @return The optimizer trace output for the last optimized query as a String. * Null will be returned if optimizer trace output is off or not supported * or no trace output was found or an exception occurred. */ public String getOptimizerTraceOutput(); /** * Set the optimizer trace output to the specified String. * (Done at the beginning of each statement.) */ public void setOptimizerTraceOutput(String startingText); /** * Append the latest output to the optimizer trace output. */ public void appendOptimizerTraceOutput(String output); /** * Reports whether there is any outstanding work in the transaction. * * @return true if there is outstanding work in the transaction * false otherwise */ public boolean isTransactionPristine(); /** * Get the lock handle for the current transaction. * * @param lockScope SINGLE_TRANSACTION_LOCK or MULTI_TRANSACTION_LOCK * * @return the current lock handle * * @exception StandardException thrown if something goes wrong */ public Object getLockObject( int lockScope ) throws StandardException; /** * Get casing for delimited identifiers. This feature is here to * support the Plugin. * * @return ANSI_CASING or ANTI_ANSI_CASING. * * @exception StandardException thrown if something goes wrong */ public int getIdentifierCasing() throws StandardException; /** * Convert an identifier to the proper case for this connection. This method * is here to support the Plugin. * * @param an identifier string * @return the string converted to upper or lower case, as appropriate * * @exception StandardException thrown if something goes wrong */ public String convertIdentifierCase( String id) throws StandardException; /** * Returns the last autoincrement value inserted by this connection. * If no values have been inserted into the given column a NULL value * is returned. * * @param schemaName * @param tableName * @param columnName */ public Long lastAutoincrementValue(String schemaName, String tableName, String columnName); /** * Sets autoincrementUpdate-- this variable allows updates to autoincrement * columns if it is set to true. The default is ofcourse false; i.e * ai columns cannot be directly modified by the user. This is set to * true by AlterTableConstantAction, when a new ai column is being added * to an existing table. * * @param flag the value for autoincrementUpdate (TRUE or FALSE) * @see org.apache.derby.impl.sql.execute.AlterTableConstantAction#updateNewAutoincrementColumn * */ public void setAutoincrementUpdate(boolean flag); /** * Returns the current value of autoincrementUpdate. * * @return true if updates to autoincrement columns is permitted. */ public boolean getAutoincrementUpdate(); /** * copy a hashtable of autoincrement key value pairs into the cache of * ai values stored in the language connection context. */ public void copyHashtableToAIHT(Hashtable from); /** * returns the <b>next</b> 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. This is * used when as autoincrement column is added to a table by an alter * table statemenet and during bulk insert. * * @param schemaName * @param tableName * @param columnName identify the column uniquely in the system. * * @exception StandardException on error. */ public long nextAutoincrementValue(String schemaName, String tableName, String columnName) throws StandardException; /** * Flush the cache of autoincrement values being kept by the lcc. * This will result in the autoincrement values being written to the * SYSCOLUMNS table as well as the mapping used by lastAutoincrementValue * * @param tableUUID the table which is being flushed; we need this value to * identify the table for which the autoincrement counter is being * maintained. * * @exception StandardException thrown on error. * * @see LanguageConnectionContext#lastAutoincrementValue * @see org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext#lastAutoincrementValue * @see org.apache.derby.iapi.db.ConnectionInfo#lastAutoincrementValue */ public void autoincrementFlushCache(UUID tableUUID) throws StandardException; /** * Create an autoincrement counter to be used on behalf of a SQL-J * statement. The counter is identified by (schemaName, tableName, * columnName). The counter must be freed up by calling * autoincrementFlushCache at the end of the statement. It is expected * that a ai-counter with the same signaure doesn't exist when the * method is called. * * @param s SchemaName * @param t TableName * @param c ColumnName * @param initialValue initial value of the counter. * @param increment increment for the counter. * @param position column position (1-based). */ public void autoincrementCreateCounter(String s, String t, String c, Long initialValue, long increment, int position); /** * Get the instance number of this LCC. * * @return instance number of this LCC. */ public int getInstanceNumber(); /** * Get the DRDA ID of this LCC. * * @return DRDA ID this LCC. */ public String getDrdaID(); /** * Set the DRDA ID of this LCC. * * @param DRDA ID. */ public void setDrdaID(String drdaID); /** * Get the database name of this LCC. * * @return database name of this LCC. */ public String getDbname();}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -