Java Doc for LanguageConnectionContext.java in  » Database-DBMS » db-derby-10.2 » org » apache » derby » iapi » sql » conn » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database DBMS » db derby 10.2 » org.apache.derby.iapi.sql.conn 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.derby.iapi.sql.conn.LanguageConnectionContext

All known Subclasses:   org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext,
LanguageConnectionContext
public interface LanguageConnectionContext extends Context(Code)
LanguageConnectionContext keeps the result sets, and activations in use by the current connection.

More stable items, like other factories, are accessible through the LanguageConnectionFactory or the LanguageFactory.
See Also:   LanguageConnectionFactory
See Also:   org.apache.derby.iapi.sql.LanguageFactory



Field Summary
final public static  intANSI_CASING
    
final public static  intANTI_ANSI_CASING
    
final public static  StringCONTEXT_ID
     this is the ID we expect these contexts to be stored into a context manager under.
final public static  intMULTI_TRANSACTION_LOCK
    
final public static  intNO_SCHEMAS
    
final public static  intOUTERMOST_STATEMENT
    
final public static  intSINGLE_TRANSACTION_LOCK
    
final public static  intSQL92_SCHEMAS
    
final public static  intUNKNOWN_CASING
    
final public static  intUSER_NAME_SCHEMA
    
final public static  StringdbnameStr
    
final public static  StringdrdaStr
    
final public static  StringlccStr
    
final public static  StringxidStr
    


Method Summary
 voidaddActivation(Activation a)
     Add the activation to those known about by this connection.
public  voidaddDeclaredGlobalTempTable(TableDescriptor td)
     Add the declared global temporary table to the list of temporary tables known by this connection.
 booleananyoneBlocked()
    
public  voidappendOptimizerTraceOutput(String output)
     Append the latest output to the optimizer trace output.
public  voidautoincrementCreateCounter(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  voidautoincrementFlushCache(UUID tableUUID)
     Flush the cache of autoincrement values being kept by the lcc.
 voidbeginNestedTransaction(boolean readOnly)
     Begin a nested transaction.
public  booleancheckIfAnyDeclaredGlobalTempTablesForThisConnection()
     Check if there are any global temporary tables declared for this connection.
 voidcommitNestedTransaction()
     commit a nested transaction. We do not provide a abortNestedTransaction.
public  StringconvertIdentifierCase(String id)
     Convert an identifier to the proper case for this connection.
public  voidcopyHashtableToAIHT(Hashtable from)
     copy a hashtable of autoincrement key value pairs into the cache of ai values stored in the language connection context.
 booleandataDictionaryInWriteMode()
     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().
 intdecrementBindCount()
     Decrement the DataDictionary bind count.
public  booleandropDeclaredGlobalTempTable(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.
 AccessFactorygetAccessFactory()
    
 intgetActivationCount()
     Return the number of activation known for this connection.
public  StringgetAuthorizationId()
    
public  AuthorizergetAuthorizer()
     Get an Authorizer for this connection.
public  booleangetAutoincrementUpdate()
     Returns the current value of autoincrementUpdate.
 intgetBindCount()
     Get the DataDictionary bind count.
public  intgetCurrentIsolationLevel()
     Get the current isolation level.
public  StringgetCurrentIsolationLevelStr()
     Get the current isolation level in DB2 format.
public  StringgetCurrentSchemaName()
    
public  DataDictionarygetDataDictionary()
    
 DataValueFactorygetDataValueFactory()
     Get the data value factory to use with this language connection context.
public  DatabasegetDatabase()
     Returns the Database of this connection.
public  StringgetDbname()
     Get the database name of this LCC.
public  StringgetDeclaredGlobalTemporaryTablesSchemaName()
     Get the declared global temporary tables schema name.
public  SchemaDescriptorgetDefaultSchema()
    
public  StringgetDrdaID()
     Get the DRDA ID of this LCC.
 ExecutionContextgetExecutionContext()
     Get the current ExecutionContext.
public  intgetIdentifierCasing()
     Get casing for delimited identifiers.
public  LonggetIdentityValue()
     Get the identity column value most recently generated.
public  intgetInstanceNumber()
     Get the instance number of this LCC.
 LanguageConnectionFactorygetLanguageConnectionFactory()
     Get the language connection factory to use with this language connection context.
 LanguageFactorygetLanguageFactory()
     Get the language factory to use with this language connection context.
public  ActivationgetLastActivation()
    
 intgetLockEscalationThreshold()
     get the lock escalation threshold to use with this connection.
public  ObjectgetLockObject(int lockScope)
     Get the lock handle for the current transaction.
public  booleangetLogQueryPlan()
     Get value of logQueryPlan.
public  booleangetLogStatementText()
     Get value of logStatementText.
 OptimizerFactorygetOptimizerFactory()
     get the optimizer factory to use with this language connection context.
public  booleangetOptimizerTrace()
     Get whether or not optimizer trace is on.
public  booleangetOptimizerTraceHtml()
     Get whether or not optimizer trace html is on.
public  StringgetOptimizerTraceOutput()
     Get the optimizer trace output for the last optimized query as a String.
public  intgetPrepareIsolationLevel()
     Get the prepare isolation level.
public  booleangetRunTimeStatisticsMode()
     Get the RUNTIMESTATISTICS mode.
public  RunTimeStatisticsgetRunTimeStatisticsObject()
     Get the RUNTIMESTATISTICS object.
 StatementContextgetStatementContext()
     Get the current StatementContext.
public  intgetStatementDepth()
     Reports how many statement levels deep we are.
public  booleangetStatisticsTiming()
     Get the STATISTICS TIMING mode.
public  StringgetSysIBMSchemaName()
     Get the SYSIBM schema name.
public  StringgetSystemDiagSchemaName()
     Get the SYSCS_DIAG schema name.
public  StringgetSystemSchemaName()
     Get the system schema name.
public  StringgetSystemUtilSchemaName()
     Get the SYSCS_UTIL schema name.
public  TableDescriptorgetTableDescriptorForDeclaredGlobalTempTable(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.
 TransactionControllergetTransactionCompile()
     Get the transaction controller to use with this language connection context at compile time.
 TransactionControllergetTransactionExecute()
     Get the transaction controller to use with this language connection context during execute time.
public  TriggerExecutionContextgetTriggerExecutionContext()
     Get the topmost tec.
public  TableDescriptorgetTriggerTable()
    
public  StringgetUniqueCursorName()
     Get a connection unique system generated name for a cursor.
public  intgetUniqueSavepointID()
     Get a connection unique system generated id for an unnamed savepoint.
public  StringgetUniqueSavepointName()
     Get a connection unique system generated name for an unnamed savepoint.
 intincrementBindCount()
     Increment the DataDictionary bind count.
 voidinitialize(boolean sqlConnection)
     Initialize.
 voidinternalCommit(boolean commitStore)
     Do a commit, as internally needed by Cloudscape.
 voidinternalCommitNoSync(int commitflag)
    
 voidinternalRollback()
     Do a rollback, as internally needed by Cloudscape.
 voidinternalRollbackToSavepoint(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  booleanisIsolationLevelSetUsingSQLorJDBC()
     Returns true if isolation level has been set using JDBC/SQL.
public  booleanisReadOnly()
     Get the readOnly status for the current connection.
public  booleanisTransactionPristine()
     Reports whether there is any outstanding work in the transaction.
 voidlanguageSetSavePoint(String savepointName, Object kindOfSavepoint)
     Sets a savepoint.
public  LonglastAutoincrementValue(String schemaName, String tableName, String columnName)
     Returns the last autoincrement value inserted by this connection.
 CursorActivationlookupCursorActivation(String cursorName)
     See if a given cursor is available for use.
public  voidmarkTempTableAsModifiedInUnitOfWork(String tableName)
     Mark the passed temporary table as modified in the current unit of work.
public  longnextAutoincrementValue(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.
 voidnotifyUnusedActivation()
    
public  voidpopCompilerContext(CompilerContext compilerContext)
     Pop a CompilerContext off the context stack.
public  voidpopExecutionStmtValidator(ExecutionStmtValidator validator)
     Remove the validator.
public  voidpopStatementContext(StatementContext statementContext, Throwable error)
     Pop a StatementContext of the context stack.
public  voidpopTriggerExecutionContext(TriggerExecutionContext tec)
     Remove the tec.
public  voidpopTriggerTable(TableDescriptor td)
     Remove the trigger table descriptor.
public  PreparedStatementprepareInternalStatement(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  PreparedStatementprepareInternalStatement(String sqlText)
     Return a PreparedStatement object for the query. This method first tries to locate the PreparedStatement object from a statement cache.
public  CompilerContextpushCompilerContext()
     Push a CompilerContext on the context stack with the current default schema as the default schema which we compile against.
public  CompilerContextpushCompilerContext(SchemaDescriptor sd)
     Push a CompilerContext on the context stack with the passed in default schema as the default schema we compile against.
public  voidpushExecutionStmtValidator(ExecutionStmtValidator validator)
     Push a new execution statement validator.
 StatementContextpushStatementContext(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  voidpushTriggerExecutionContext(TriggerExecutionContext tec)
     Push a new trigger execution context.
public  voidpushTriggerTable(TableDescriptor td)
     Set the trigger table descriptor.
 voidreleaseSavePoint(String savepointName, Object kindOfSavepoint)
    
 voidremoveActivation(Activation a)
     Remove the activation from those known about by this connection.
public  voidresetFromPool()
     Reset the connection before it is returned (indirectly) by a PooledConnection object.
public  voidresetIsolationLevelFlagUsedForSQLandJDBC()
     Reset the isolation level flag used to keep correct isolation level state in BrokeredConnection.
public  voidsetAutoincrementUpdate(boolean flag)
     Sets autoincrementUpdate-- this variable allows updates to autoincrement columns if it is set to true.
 voidsetDataDictionaryWriteMode()
     Remember that the DataDictionary is in write mode, so we can take it out of write mode at the end of the transaction.
public  voidsetDefaultSchema(SchemaDescriptor sd)
    
public  voidsetDrdaID(String drdaID)
     Set the DRDA ID of this LCC.
public  voidsetIdentityValue(long val)
     Set the field of most recently generated identity column value.
public  voidsetIsolationLevel(int isolationLevel)
     Set current isolation level.
public  voidsetLogStatementText(boolean logStatementText)
    
public  booleansetOptimizerTrace(boolean onOrOff)
     Control whether or not optimizer trace is on.
Parameters:
  onOrOff - Whether to turn optimizer trace on (true) or off (false).
public  booleansetOptimizerTraceHtml(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  voidsetOptimizerTraceOutput(String startingText)
     Set the optimizer trace output to the specified String.
public  voidsetPrepareIsolationLevel(int isolationLevel)
    
public  voidsetReadOnly(boolean onOrOff)
     Set the readOnly status for the current connection.
public  voidsetRunTimeStatisticsMode(boolean onOrOff)
     Turn RUNTIMESTATISTICS on or off.
public  voidsetRunTimeStatisticsObject(RunTimeStatistics runTimeStatisticsObject)
     Set the RUNTIMESTATISTICS object.
public  voidsetStatisticsTiming(boolean onOrOff)
     Turn STATISTICS TIMING on or off.
 voidsetTransaction(TransactionController tran)
     Sets the transaction controller to use with this language connection context.
 voiduserCommit()
     Do a commit, as issued directly by a user (e.g.
 voiduserRollback()
     Do a rollback, as issued directly by a user (e.g.
public  booleanusesSqlAuthorization()
    
public  voidvalidateStmtExecution(ConstantAction constantAction)
     Validate a statement.
public  booleanverifyAllHeldResultSetsAreClosed()
     Verify that there are no activations with open held result sets.
 booleanverifyNoOpenResultSets(PreparedStatement pStmt, Provider provider, int action)
     Verify that there are no activations with open result sets on the specified prepared statement.
 voidxaCommit(boolean onePhase)
     Commit a distrubuted transaction.
 voidxaRollback()
     Roll back a distrubuted transaction.

Field Detail
ANSI_CASING
final public static int ANSI_CASING(Code)



ANTI_ANSI_CASING
final public static int ANTI_ANSI_CASING(Code)



CONTEXT_ID
final public static String CONTEXT_ID(Code)
this is the ID we expect these contexts to be stored into a context manager under.



MULTI_TRANSACTION_LOCK
final public static int MULTI_TRANSACTION_LOCK(Code)



NO_SCHEMAS
final public static int NO_SCHEMAS(Code)



OUTERMOST_STATEMENT
final public static int OUTERMOST_STATEMENT(Code)



SINGLE_TRANSACTION_LOCK
final public static int SINGLE_TRANSACTION_LOCK(Code)



SQL92_SCHEMAS
final public static int SQL92_SCHEMAS(Code)



UNKNOWN_CASING
final public static int UNKNOWN_CASING(Code)



USER_NAME_SCHEMA
final public static int USER_NAME_SCHEMA(Code)



dbnameStr
final public static String dbnameStr(Code)



drdaStr
final public static String drdaStr(Code)



lccStr
final public static String lccStr(Code)



xidStr
final public static String xidStr(Code)





Method Detail
addActivation
void addActivation(Activation a) throws StandardException(Code)
Add the activation to those known about by this connection.



addDeclaredGlobalTempTable
public void addDeclaredGlobalTempTable(TableDescriptor td) throws StandardException(Code)
Add the declared global temporary table to the list of temporary tables known by this connection.
Parameters:
  td - Corresponding to the temporary table



anyoneBlocked
boolean anyoneBlocked()(Code)
Returns true if any transaction is blocked (even if not by this one)



appendOptimizerTraceOutput
public void appendOptimizerTraceOutput(String output)(Code)
Append the latest output to the optimizer trace output.



autoincrementCreateCounter
public void autoincrementCreateCounter(String s, String t, String c, Long initialValue, long increment, int position)(Code)
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.
Parameters:
  s - SchemaName
Parameters:
  t - TableName
Parameters:
  c - ColumnName
Parameters:
  initialValue - initial value of the counter.
Parameters:
  increment - increment for the counter.
Parameters:
  position - column position (1-based).



autoincrementFlushCache
public void autoincrementFlushCache(UUID tableUUID) throws StandardException(Code)
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
Parameters:
  tableUUID - the table which is being flushed; we need this value toidentify the table for which the autoincrement counter is beingmaintained.
exception:
  StandardException - thrown on error.
See Also:   LanguageConnectionContext.lastAutoincrementValue
See Also:   org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.lastAutoincrementValue
See Also:   org.apache.derby.iapi.db.ConnectionInfo.lastAutoincrementValue



beginNestedTransaction
void beginNestedTransaction(boolean readOnly) throws StandardException(Code)
Begin a nested transaction.
Parameters:
  readOnly - The nested transaction would be read only if param value true
exception:
  StandardException - on error.
See Also:   TransactionController.startNestedUserTransaction



checkIfAnyDeclaredGlobalTempTablesForThisConnection
public boolean checkIfAnyDeclaredGlobalTempTablesForThisConnection()(Code)
Check if there are any global temporary tables declared for this connection. true if there are declared temp tables for this connectoin else false



commitNestedTransaction
void commitNestedTransaction() throws StandardException(Code)
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 Also:   TransactionController.startNestedUserTransaction



convertIdentifierCase
public String convertIdentifierCase(String id) throws StandardException(Code)
Convert an identifier to the proper case for this connection. This method is here to support the Plugin.
Parameters:
  id - an identifier string the string converted to upper or lower case, as appropriate
exception:
  StandardException - thrown if something goes wrong



copyHashtableToAIHT
public void copyHashtableToAIHT(Hashtable from)(Code)
copy a hashtable of autoincrement key value pairs into the cache of ai values stored in the language connection context.



dataDictionaryInWriteMode
boolean dataDictionaryInWriteMode()(Code)
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().



decrementBindCount
int decrementBindCount()(Code)
Decrement the DataDictionary bind count. The new bind count



dropDeclaredGlobalTempTable
public boolean dropDeclaredGlobalTempTable(String tableName)(Code)
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. False if no such temporary table exists.
See Also:   org.apache.derby.impl.sql.conn.TempTableInfo



getAccessFactory
AccessFactory getAccessFactory()(Code)
Get the AccessFactory cached in this LanguageConnectionContext



getActivationCount
int getActivationCount()(Code)
Return the number of activation known for this connection.



getAuthorizationId
public String getAuthorizationId()(Code)
Get the Authorization Id String the authorization id



getAuthorizer
public Authorizer getAuthorizer()(Code)
Get an Authorizer for this connection.



getAutoincrementUpdate
public boolean getAutoincrementUpdate()(Code)
Returns the current value of autoincrementUpdate. true if updates to autoincrement columns is permitted.



getBindCount
int getBindCount()(Code)
Get the DataDictionary bind count. The current bind count.



getCurrentIsolationLevel
public int getCurrentIsolationLevel()(Code)
Get the current isolation level. The current isolation level.



getCurrentIsolationLevelStr
public String getCurrentIsolationLevelStr()(Code)
Get the current isolation level in DB2 format. The current isolation level as a 2 character string.



getCurrentSchemaName
public String getCurrentSchemaName()(Code)
Get the current schema name SchemaDescriptor the current schema



getDataDictionary
public DataDictionary getDataDictionary()(Code)
Get the data dictionary the data dictionary



getDataValueFactory
DataValueFactory getDataValueFactory()(Code)
Get the data value factory to use with this language connection context.



getDatabase
public Database getDatabase()(Code)
Returns the Database of this connection.



getDbname
public String getDbname()(Code)
Get the database name of this LCC. database name of this LCC.



getDeclaredGlobalTemporaryTablesSchemaName
public String getDeclaredGlobalTemporaryTablesSchemaName() throws StandardException(Code)
Get the declared global temporary tables schema name. a String containing the declared global temporary tables schema name.



getDefaultSchema
public SchemaDescriptor getDefaultSchema()(Code)
Get the current default schema SchemaDescriptor the current schema



getDrdaID
public String getDrdaID()(Code)
Get the DRDA ID of this LCC. DRDA ID this LCC.



getExecutionContext
ExecutionContext getExecutionContext()(Code)
Get the current ExecutionContext.



getIdentifierCasing
public int getIdentifierCasing() throws StandardException(Code)
Get casing for delimited identifiers. This feature is here to support the Plugin. ANSI_CASING or ANTI_ANSI_CASING.
exception:
  StandardException - thrown if something goes wrong



getIdentityValue
public Long getIdentityValue()(Code)
Get the identity column value most recently generated. the generated identity column value



getInstanceNumber
public int getInstanceNumber()(Code)
Get the instance number of this LCC. instance number of this LCC.



getLanguageConnectionFactory
LanguageConnectionFactory getLanguageConnectionFactory()(Code)
Get the language connection factory to use with this language connection context.



getLanguageFactory
LanguageFactory getLanguageFactory()(Code)
Get the language factory to use with this language connection context.



getLastActivation
public Activation getLastActivation()(Code)
Return the last activation added This is used to find the drop activation in dropViewCascade so we can add warning messages to the activation



getLockEscalationThreshold
int getLockEscalationThreshold()(Code)
get the lock escalation threshold to use with this connection.



getLockObject
public Object getLockObject(int lockScope) throws StandardException(Code)
Get the lock handle for the current transaction.
Parameters:
  lockScope - SINGLE_TRANSACTION_LOCK or MULTI_TRANSACTION_LOCK the current lock handle
exception:
  StandardException - thrown if something goes wrong



getLogQueryPlan
public boolean getLogQueryPlan()(Code)
Get value of logQueryPlan. (Whether or not to write query plan info on currently executing statement to error log.) value of logQueryPlan



getLogStatementText
public boolean getLogStatementText()(Code)
Get value of logStatementText. (Whether or not to write info on currently executing statement to error log.) value of logStatementText



getOptimizerFactory
OptimizerFactory getOptimizerFactory()(Code)
get the optimizer factory to use with this language connection context.



getOptimizerTrace
public boolean getOptimizerTrace()(Code)
Get whether or not optimizer trace is on. Whether or not optimizer trace is on.



getOptimizerTraceHtml
public boolean getOptimizerTraceHtml()(Code)
Get whether or not optimizer trace html is on. Whether or not optimizer trace html is on.



getOptimizerTraceOutput
public String getOptimizerTraceOutput()(Code)
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. 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.



getPrepareIsolationLevel
public int getPrepareIsolationLevel()(Code)
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.



getRunTimeStatisticsMode
public boolean getRunTimeStatisticsMode()(Code)
Get the RUNTIMESTATISTICS mode.



getRunTimeStatisticsObject
public RunTimeStatistics getRunTimeStatisticsObject()(Code)
Get the RUNTIMESTATISTICS object.



getStatementContext
StatementContext getStatementContext()(Code)
Get the current StatementContext.



getStatementDepth
public int getStatementDepth()(Code)
Reports how many statement levels deep we are. a statement level >= OUTERMOST_STATEMENT



getStatisticsTiming
public boolean getStatisticsTiming()(Code)
Get the STATISTICS TIMING mode.



getSysIBMSchemaName
public String getSysIBMSchemaName() throws StandardException(Code)
Get the SYSIBM schema name. a String containing the SYSIBM schema name.



getSystemDiagSchemaName
public String getSystemDiagSchemaName() throws StandardException(Code)
Get the SYSCS_DIAG schema name. a String containing the SYSIBM schema name.



getSystemSchemaName
public String getSystemSchemaName() throws StandardException(Code)
Get the system schema name. a String containing the system schema name.



getSystemUtilSchemaName
public String getSystemUtilSchemaName() throws StandardException(Code)
Get the SYSCS_UTIL schema name. a String containing the SYSIBM schema name.



getTableDescriptorForDeclaredGlobalTempTable
public TableDescriptor getTableDescriptorForDeclaredGlobalTempTable(String tableName)(Code)
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. Else return null



getTransactionCompile
TransactionController getTransactionCompile()(Code)
Get the transaction controller to use with this language connection context at compile time.



getTransactionExecute
TransactionController getTransactionExecute()(Code)
Get the transaction controller to use with this language connection context during execute time.



getTriggerExecutionContext
public TriggerExecutionContext getTriggerExecutionContext()(Code)
Get the topmost tec. the tec



getTriggerTable
public TableDescriptor getTriggerTable()(Code)
Get the topmost trigger table descriptor the table descriptor, or null if wearen't in the middle of compiling a createtrigger.



getUniqueCursorName
public String getUniqueCursorName()(Code)
Get a connection unique system generated name for a cursor.



getUniqueSavepointID
public int getUniqueSavepointID()(Code)
Get a connection unique system generated id for an unnamed savepoint.



getUniqueSavepointName
public String getUniqueSavepointName()(Code)
Get a connection unique system generated name for an unnamed savepoint.



incrementBindCount
int incrementBindCount()(Code)
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. The new bind count



initialize
void initialize(boolean sqlConnection) throws StandardException(Code)
Initialize. For use after pushing the contexts that initialization needs.
Parameters:
  sqlConnection - Whether or not this is called from a sql connection.
exception:
  StandardException - thrown if something goes wrong



internalCommit
void internalCommit(boolean commitStore) throws StandardException(Code)
Do a commit, as internally needed by Cloudscape. E.g. a commit for sync, or a commit for autocommit. Skips checks that a user isn't doing something bad like issuing a commit in a nested xact.
Parameters:
  commitStore - true if we should commit the Store transaction
exception:
  StandardException - thrown if something goes wrong



internalCommitNoSync
void internalCommitNoSync(int commitflag) throws StandardException(Code)
Similar to internalCommit() but has logic for an unsynchronized commit
Parameters:
  commitflag - the flags to pass to commitNoSync in the store'sTransactionController
exception:
  StandardException - thrown if something goes wrong



internalRollback
void internalRollback() throws StandardException(Code)
Do a rollback, as internally needed by Cloudscape. E.g. a rollback for sync, or a rollback for an internal error. Skips checks that a user isn't doing something bad like issuing a rollback in a nested xact.
exception:
  StandardException - thrown if something goes wrong



internalRollbackToSavepoint
void internalRollbackToSavepoint(String savepointName, boolean refreshStyle, Object kindOfSavepoint) throws StandardException(Code)
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. Also used to determine if language should closeopen activations.
Parameters:
  kindOfSavepoint - 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 savepointA String value for kindOfSavepoint would mean it is SQL savepointA JDBC Savepoint object value for kindOfSavepoint would mean it is JDBC savepoint
exception:
  StandardException - thrown if something goes wrong



isIsolationLevelSetUsingSQLorJDBC
public boolean isIsolationLevelSetUsingSQLorJDBC()(Code)
Returns true if isolation level has been set using JDBC/SQL.



isReadOnly
public boolean isReadOnly()(Code)
Get the readOnly status for the current connection.



isTransactionPristine
public boolean isTransactionPristine()(Code)
Reports whether there is any outstanding work in the transaction. true if there is outstanding work in the transactionfalse otherwise



languageSetSavePoint
void languageSetSavePoint(String savepointName, Object kindOfSavepoint) throws StandardException(Code)
Sets a savepoint. Causes the Store to set a savepoint.
Parameters:
  savepointName - name of savepoint
Parameters:
  kindOfSavepoint - 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 savepointA String value for kindOfSavepoint would mean it is SQL savepointA JDBC Savepoint object value for kindOfSavepoint would mean it is JDBC savepoint
exception:
  StandardException - thrown if something goes wrong



lastAutoincrementValue
public Long lastAutoincrementValue(String schemaName, String tableName, String columnName)(Code)
Returns the last autoincrement value inserted by this connection. If no values have been inserted into the given column a NULL value is returned.
Parameters:
  schemaName -
Parameters:
  tableName -
Parameters:
  columnName -



lookupCursorActivation
CursorActivation lookupCursorActivation(String cursorName)(Code)
See if a given cursor is available for use. This is used to locate the cursor during its execution. the activation for the given cursor, null if none exists.



markTempTableAsModifiedInUnitOfWork
public void markTempTableAsModifiedInUnitOfWork(String tableName)(Code)
Mark the passed temporary table as modified in the current unit of work. That information will be used at rollback time The compile phase will generate code to call this method if the DML is on a temporary table
Parameters:
  tableName - Mark the passed temporary table name as modified



nextAutoincrementValue
public long nextAutoincrementValue(String schemaName, String tableName, String columnName) throws StandardException(Code)
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. This is used when as autoincrement column is added to a table by an alter table statemenet and during bulk insert.
Parameters:
  schemaName -
Parameters:
  tableName -
Parameters:
  columnName - identify the column uniquely in the system.
exception:
  StandardException - on error.



notifyUnusedActivation
void notifyUnusedActivation()(Code)
Make a note that some activations are marked unused



popCompilerContext
public void popCompilerContext(CompilerContext compilerContext)(Code)
Pop a CompilerContext off the context stack.
Parameters:
  compilerContext - The compiler context.
exception:
  StandardException - thrown on failure



popExecutionStmtValidator
public void popExecutionStmtValidator(ExecutionStmtValidator validator) throws StandardException(Code)
Remove the validator. Does an object identity (validator == validator) comparison. Asserts that the validator is found.
Parameters:
  validator - the validator to remove
exception:
  StandardException - on error



popStatementContext
public void popStatementContext(StatementContext statementContext, Throwable error)(Code)
Pop a StatementContext of the context stack.
Parameters:
  statementContext - The statement context.
Parameters:
  error - The error, if any (Only relevant for DEBUG)



popTriggerExecutionContext
public void popTriggerExecutionContext(TriggerExecutionContext tec) throws StandardException(Code)
Remove the tec. Does an object identity (tec == tec) comparison. Asserts that the tec is found.
Parameters:
  tec - the tec to remove
exception:
  StandardException - on error



popTriggerTable
public void popTriggerTable(TableDescriptor td)(Code)
Remove the trigger table descriptor.
Parameters:
  td - the table to remove from the stack.



prepareInternalStatement
public PreparedStatement prepareInternalStatement(SchemaDescriptor compilationSchema, String sqlText, boolean isForReadOnly, boolean allowInternalSyntax) throws StandardException(Code)
Return a PreparedStatement object for the query. This method first tries to locate the PreparedStatement object from a statement cache. If the statement is not found in the cache, the query will be compiled and put into the cache.
Parameters:
  compilationSchema - schema
Parameters:
  sqlText - sql query string
Parameters:
  isForReadOnly - read only status for resultset. Set to true if the concurrency mode for the resultset is CONCUR_READ_ONLY
Parameters:
  allowInternalSyntax - If true, then this query is allowed to use internal sql syntax. One instance where this will be true is if ametadata query is getting executed.



prepareInternalStatement
public PreparedStatement prepareInternalStatement(String sqlText) throws StandardException(Code)
Return a PreparedStatement object for the query. This method first tries to locate the PreparedStatement object from a statement cache. If the statement is not found in the cache, the query will be compiled and put into the cache. The schema used when compiling the statement is the same schema as returned by getDefaultSchema(). For internal statements, the read only status is set to true. Calling this method is equivalent to calling prepareExternalStatement(lcc.getDefaultSchema(), sqlText, true);
Parameters:
  sqlText - sql query string



pushCompilerContext
public CompilerContext pushCompilerContext()(Code)
Push a CompilerContext on the context stack with the current default schema as the default schema which we compile against. the compiler context
exception:
  StandardException - thrown on failure



pushCompilerContext
public CompilerContext pushCompilerContext(SchemaDescriptor sd)(Code)
Push a CompilerContext on the context stack with the passed in default schema as the default schema we compile against.
Parameters:
  sd - the default schema the compiler context
exception:
  StandardException - thrown on failure



pushExecutionStmtValidator
public void pushExecutionStmtValidator(ExecutionStmtValidator validator)(Code)
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.

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.
Parameters:
  validator - the validator to add




pushStatementContext
StatementContext pushStatementContext(boolean isAtomic, boolean isForReadOnly, String stmtText, ParameterValueSet pvs, boolean rollbackParentContext, long timeoutMillis)(Code)
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. Needed for any languagestatement (currently, for any statement that can cause a triggerto fire). Please set this unless you are some funky jdbc setXXXmethod or something.
Parameters:
  pvs - parameter value set, if it has one
Parameters:
  rollbackParentContext - True if 1) the statement context isNOT a top-level context, AND 2) in the event of a statement-levelexception, the parent context needs to be rolled back, too.
Parameters:
  timeoutMillis - Timeout value for this statement, in milliseconds.Zero means no timeout. StatementContext The statement context.



pushTriggerExecutionContext
public void pushTriggerExecutionContext(TriggerExecutionContext tec) throws StandardException(Code)
Push a new trigger execution context.

Multiple TriggerExecutionContexts may be active at any given time.
Parameters:
  tec - the trigger execution context
exception:
  StandardException - on trigger recursion error




pushTriggerTable
public void pushTriggerTable(TableDescriptor td)(Code)
Set the trigger table descriptor. Used to compile statements that may special trigger pseudo tables.
Parameters:
  td - the table that the trigger is defined upon



releaseSavePoint
void releaseSavePoint(String savepointName, Object kindOfSavepoint) throws StandardException(Code)
Let the context deal with a release of a savepoint
Parameters:
  savepointName - Name of the savepoint that needs to be released
Parameters:
  kindOfSavepoint - 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 savepointA String value for kindOfSavepoint would mean it is SQL savepointA JDBC Savepoint object value for kindOfSavepoint would mean it is JDBC savepoint
exception:
  StandardException - thrown if something goes wrong



removeActivation
void removeActivation(Activation a) throws StandardException(Code)
Remove the activation from those known about by this connection.
exception:
  StandardException - thrown if something goes wrong



resetFromPool
public void resetFromPool() throws StandardException(Code)
Reset the connection before it is returned (indirectly) by a PooledConnection object. See EmbeddedConnection.



resetIsolationLevelFlagUsedForSQLandJDBC
public void resetIsolationLevelFlagUsedForSQLandJDBC()(Code)
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.



setAutoincrementUpdate
public void setAutoincrementUpdate(boolean flag)(Code)
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.
Parameters:
  flag - the value for autoincrementUpdate (TRUE or FALSE)
See Also:   org.apache.derby.impl.sql.execute.AlterTableConstantAction.updateNewAutoincrementColumn



setDataDictionaryWriteMode
void setDataDictionaryWriteMode()(Code)
Remember that the DataDictionary is in write mode, so we can take it out of write mode at the end of the transaction.



setDefaultSchema
public void setDefaultSchema(SchemaDescriptor sd) throws StandardException(Code)
Set the current default schema
Parameters:
  sd - the new default schema
exception:
  StandardException - thrown on failure



setDrdaID
public void setDrdaID(String drdaID)(Code)
Set the DRDA ID of this LCC.
Parameters:
  drdaID - DRDA ID.



setIdentityValue
public void setIdentityValue(long val)(Code)
Set the field of most recently generated identity column value.
Parameters:
  val - the generated identity column value



setIsolationLevel
public void setIsolationLevel(int isolationLevel) throws StandardException(Code)
Set current isolation level.
Parameters:
  isolationLevel - The new isolationLevel.



setLogStatementText
public void setLogStatementText(boolean logStatementText)(Code)
Set value of logStatementText (Whether or not to write info on currently executing statement to error log.)
Parameters:
  logStatementText - Whether or not logStatementText property is set.



setOptimizerTrace
public boolean setOptimizerTrace(boolean onOrOff)(Code)
Control whether or not optimizer trace is on.
Parameters:
  onOrOff - Whether to turn optimizer trace on (true) or off (false). Whether or not the call was successful. (false will be returned when optimizer tracing is not supported.)



setOptimizerTraceHtml
public boolean setOptimizerTraceHtml(boolean onOrOff)(Code)
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). Whether or not the call was successful. (false will be returned when optimizer tracing is not supported.)



setOptimizerTraceOutput
public void setOptimizerTraceOutput(String startingText)(Code)
Set the optimizer trace output to the specified String. (Done at the beginning of each statement.)



setPrepareIsolationLevel
public void setPrepareIsolationLevel(int isolationLevel)(Code)



setReadOnly
public void setReadOnly(boolean onOrOff) throws StandardException(Code)
Set the readOnly status for the current connection. This can only be called when the current transaction has not done any work.
Parameters:
  onOrOff - true sets the connection to be readOnly andfalse sets it to readWrite.
exception:
  StandardException - The call failed and the readOnlystatus has not changed.



setRunTimeStatisticsMode
public void setRunTimeStatisticsMode(boolean onOrOff)(Code)
Turn RUNTIMESTATISTICS on or off.



setRunTimeStatisticsObject
public void setRunTimeStatisticsObject(RunTimeStatistics runTimeStatisticsObject)(Code)
Set the RUNTIMESTATISTICS object.



setStatisticsTiming
public void setStatisticsTiming(boolean onOrOff)(Code)
Turn STATISTICS TIMING on or off.



setTransaction
void setTransaction(TransactionController tran)(Code)
Sets the transaction controller to use with this language connection context.
Parameters:
  tran - the transaction to use with this language connection context



userCommit
void userCommit() throws StandardException(Code)
Do a commit, as issued directly by a user (e.g. via Connection.commit() or the JSQL 'COMMIT' statement.
exception:
  StandardException - thrown if something goes wrong



userRollback
void userRollback() throws StandardException(Code)
Do a rollback, as issued directly by a user (e.g. via Connection.rollback() or the JSQL 'ROLLBACK' statement.
exception:
  StandardException - thrown if something goes wrong



usesSqlAuthorization
public boolean usesSqlAuthorization()(Code)
Check if in SQL standard mode, with support for Grant & Revoke True if SQL standard permissions are being used



validateStmtExecution
public void validateStmtExecution(ConstantAction constantAction) throws StandardException(Code)
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.
Parameters:
  constantAction - the constantAction that is about to be executed (andshould be validated
exception:
  StandardException - on validation failure



verifyAllHeldResultSetsAreClosed
public boolean verifyAllHeldResultSetsAreClosed() throws StandardException(Code)
Verify that there are no activations with open held result sets. boolean Found no open resultsets.
exception:
  StandardException - thrown on failure



verifyNoOpenResultSets
boolean verifyNoOpenResultSets(PreparedStatement pStmt, Provider provider, int action) throws StandardException(Code)
Verify that there are no activations with open result sets on the specified prepared statement.
Parameters:
  pStmt - The prepared Statement
Parameters:
  provider - The object precipitating a possible invalidation
Parameters:
  action - The action causing the possible invalidation Nothing.
exception:
  StandardException - thrown on failure



xaCommit
void xaCommit(boolean onePhase) throws StandardException(Code)
Commit a distrubuted transaction.
Parameters:
  onePhase - if true, allow it to commit without first going thru aprepared state.
exception:
  StandardException - thrown if something goes wrong



xaRollback
void xaRollback() throws StandardException(Code)
Roll back a distrubuted transaction.
exception:
  StandardException - thrown if something goes wrong



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.