Java Doc for GenericActivationHolder.java in  » Database-DBMS » db-derby-10.2 » org » apache » derby » impl » sql » 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.impl.sql 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.derby.impl.sql.GenericActivationHolder

GenericActivationHolder
final class GenericActivationHolder implements Activation(Code)
This class holds an Activation, and passes through most of the calls to the activation. The purpose of this class is to allow a PreparedStatement to be recompiled without the caller having to detect this and get a new activation. In addition to the Activation, this class holds a reference to the PreparedStatement that created it, along with a reference to the GeneratedClass that was associated with the PreparedStatement at the time this holder was created. These references are used to validate the Activation, to ensure that an activation is used only with the PreparedStatement that created it, and to detect when recompilation has happened. We detect recompilation by checking whether the GeneratedClass has changed. If it has, we try to let the caller continue to use this ActivationHolder. We create a new instance of the new GeneratedClass (that is, we create a new Activation), and we compare the number and type of parameters. If these are compatible, we copy the parameters from the old to the new Activation. If they are not compatible, we throw an exception telling the user that the Activation is out of date, and they need to get a new one.
author:
   Jeff Lichtman


Field Summary
 BaseActivationac
    
 GeneratedClassgc
    
 DataTypeDescriptor[]paramTypes
    
 ExecPreparedStatementps
    

Constructor Summary
 GenericActivationHolder(LanguageConnectionContext lcc, GeneratedClass gc, ExecPreparedStatement ps, boolean scrollable)
    

Method Summary
public  voidaddWarning(SQLWarning w)
    
public  booleancheckIfThisActivationHasHoldCursor(String tableName)
     Temporary tables can be declared with ON COMMIT DELETE ROWS.
public  voidcheckStatementValidity()
    
public  voidclearCurrentRow(int resultSetNumber)
    
public  voidclearHeapConglomerateController()
    
public  voidclearIndexScanInfo()
    
public  voidclearParentResultSets()
    
public  voidclearResultSet()
    
public  voidclearWarnings()
    
public  voidclose()
    
public  ResultSetexecute()
    
public  int[]getAutoGeneratedKeysColumnIndexes()
    
public  String[]getAutoGeneratedKeysColumnNames()
    
public  booleangetAutoGeneratedKeysResultsetMode()
    
public  ConstantActiongetConstantAction()
    
public  StringgetCursorName()
    
public  TableDescriptorgetDDLTableDescriptor()
    
public  DataValueFactorygetDataValueFactory()
    
public  java.sql.ResultSet[][]getDynamicResults()
    
public  ExecutionFactorygetExecutionFactory()
    
public  booleangetForCreateTable()
    
public  CursorResultSetgetForUpdateIndexScan()
    
public  ConglomerateControllergetHeapConglomerateController()
    
public  longgetIndexConglomerateNumber()
    
public  ScanControllergetIndexScanController()
    
public  LanguageConnectionContextgetLanguageConnectionContext()
    
public  intgetMaxDynamicResults()
    
public  intgetMaxRows()
    
public  intgetNumSubqueries()
     Get the number of subqueries in the entire query.
public  ParameterValueSetgetParameterValueSet()
    
public  VectorgetParentResultSet(String resultSetId)
    
public  HashtablegetParentResultSets()
    
public  ExecPreparedStatementgetPreparedStatement()
    
public  ResultDescriptiongetResultDescription()
    
public  ResultSetgetResultSet()
    
public  booleangetResultSetHoldability()
    
public  RowLocationgetRowLocationTemplate(int itemNumber)
    
public  java.sql.ResultSetgetTargetVTI()
    
public  TransactionControllergetTransactionController()
    
public  SQLWarninggetWarnings()
    
public  voidinformOfRowCount(NoPutResultSet resultSet, long rowCount)
    
public  booleanisClosed()
    
public  booleanisCursorActivation()
    
public  booleanisInUse()
    
public  booleanisSingleExecution()
     Is the activation set up for a single execution.
public  voidmarkUnused()
     Mark the activation as unused.
public  voidreset()
    
public  voidsetAutoGeneratedKeysResultsetInfo(int[] columnIndexes, String[] columnNames)
    
public  voidsetCurrentRow(ExecRow currentRow, int resultSetNumber)
    
public  voidsetCursorName(String cursorName)
    
public  voidsetDDLTableDescriptor(TableDescriptor td)
    
public  voidsetForCreateTable()
    
public  voidsetForUpdateIndexScan(CursorResultSet forUpdateResultSet)
    
public  voidsetHeapConglomerateController(ConglomerateController updateHeapCC)
    
public  voidsetIndexConglomerateNumber(long indexConglomerateNumber)
    
public  voidsetIndexScanController(ScanController indexSC)
    
public  voidsetMaxRows(int maxRows)
    
public  voidsetParameters(ParameterValueSet parameterValues, DataTypeDescriptor[] parameterTypes)
    
public  voidsetParentResultSet(TemporaryRowHolder rs, String resultSetId)
    
public  voidsetResultSetHoldability(boolean resultSetHoldability)
    
public  voidsetSingleExecution()
     Set the activation for a single execution.
public  voidsetTargetVTI(java.sql.ResultSet targetVTI)
    

Field Detail
ac
BaseActivation ac(Code)



gc
GeneratedClass gc(Code)



paramTypes
DataTypeDescriptor[] paramTypes(Code)



ps
ExecPreparedStatement ps(Code)




Constructor Detail
GenericActivationHolder
GenericActivationHolder(LanguageConnectionContext lcc, GeneratedClass gc, ExecPreparedStatement ps, boolean scrollable) throws StandardException(Code)
Constructor for an ActivationHolder
Parameters:
  gc - The GeneratedClass of the Activation
Parameters:
  ps - The PreparedStatement this ActivationHolder is associatedwith
exception:
  StandardException - Thrown on error




Method Detail
addWarning
public void addWarning(SQLWarning w)(Code)

See Also:   org.apache.derby.iapi.sql.Activation.addWarning



checkIfThisActivationHasHoldCursor
public boolean checkIfThisActivationHasHoldCursor(String tableName)(Code)
Temporary tables can be declared with ON COMMIT DELETE ROWS. But if the table has a held curosr open at commit time, data should not be deleted from the table. This method, (gets called at commit time) checks if this activation held cursor and if so, does that cursor reference the passed temp table name. true if this activation has held cursor and if it references the passed temp table name



checkStatementValidity
public void checkStatementValidity() throws StandardException(Code)



clearCurrentRow
public void clearCurrentRow(int resultSetNumber)(Code)

See Also:   Activation.clearCurrentRow



clearHeapConglomerateController
public void clearHeapConglomerateController()(Code)

See Also:   Activation.clearHeapConglomerateController



clearIndexScanInfo
public void clearIndexScanInfo()(Code)

See Also:   Activation.clearIndexScanInfo



clearParentResultSets
public void clearParentResultSets()(Code)



clearResultSet
public void clearResultSet()(Code)

See Also:   Activation.clearResultSet



clearWarnings
public void clearWarnings()(Code)

See Also:   org.apache.derby.iapi.sql.Activation.clearWarnings



close
public void close() throws StandardException(Code)

See Also:   Activation.close
exception:
  StandardException - Thrown on error



execute
public ResultSet execute() throws StandardException(Code)

See Also:   Activation.execute
exception:
  StandardException - Thrown on failure



getAutoGeneratedKeysColumnIndexes
public int[] getAutoGeneratedKeysColumnIndexes()(Code)

See Also:   Activation.getAutoGeneratedKeysColumnIndexes
See Also:   



getAutoGeneratedKeysColumnNames
public String[] getAutoGeneratedKeysColumnNames()(Code)

See Also:   Activation.getAutoGeneratedKeysColumnNames
See Also:   



getAutoGeneratedKeysResultsetMode
public boolean getAutoGeneratedKeysResultsetMode()(Code)

See Also:   Activation.getAutoGeneratedKeysResultsetMode
See Also:   



getConstantAction
public ConstantAction getConstantAction()(Code)



getCursorName
public String getCursorName()(Code)

See Also:   Activation.getCursorName



getDDLTableDescriptor
public TableDescriptor getDDLTableDescriptor()(Code)

See Also:   Activation.getDDLTableDescriptor



getDataValueFactory
public DataValueFactory getDataValueFactory()(Code)

See Also:   Activation.getDataValueFactory



getDynamicResults
public java.sql.ResultSet[][] getDynamicResults()(Code)



getExecutionFactory
public ExecutionFactory getExecutionFactory()(Code)

See Also:   Activation.getExecutionFactory
See Also:   



getForCreateTable
public boolean getForCreateTable()(Code)

See Also:   Activation.getForCreateTable



getForUpdateIndexScan
public CursorResultSet getForUpdateIndexScan()(Code)



getHeapConglomerateController
public ConglomerateController getHeapConglomerateController()(Code)

See Also:   Activation.getHeapConglomerateController



getIndexConglomerateNumber
public long getIndexConglomerateNumber()(Code)

See Also:   Activation.getIndexConglomerateNumber



getIndexScanController
public ScanController getIndexScanController()(Code)

See Also:   Activation.getIndexScanController



getLanguageConnectionContext
public LanguageConnectionContext getLanguageConnectionContext()(Code)

See Also:   org.apache.derby.iapi.sql.Activation.getLanguageConnectionContext
See Also:   



getMaxDynamicResults
public int getMaxDynamicResults()(Code)



getMaxRows
public int getMaxRows()(Code)

See Also:   Activation.getMaxRows



getNumSubqueries
public int getNumSubqueries()(Code)
Get the number of subqueries in the entire query. int The number of subqueries in the entire query.



getParameterValueSet
public ParameterValueSet getParameterValueSet()(Code)

See Also:   Activation.getParameterValueSet



getParentResultSet
public Vector getParentResultSet(String resultSetId)(Code)



getParentResultSets
public Hashtable getParentResultSets()(Code)



getPreparedStatement
public ExecPreparedStatement getPreparedStatement()(Code)

See Also:   Activation.getPreparedStatement



getResultDescription
public ResultDescription getResultDescription()(Code)

See Also:   Activation.getResultDescription



getResultSet
public ResultSet getResultSet()(Code)

See Also:   Activation.getResultSet the current ResultSet of this activation.



getResultSetHoldability
public boolean getResultSetHoldability()(Code)

See Also:   Activation.getResultSetHoldability



getRowLocationTemplate
public RowLocation getRowLocationTemplate(int itemNumber)(Code)

See Also:   Activation.getRowLocationTemplate



getTargetVTI
public java.sql.ResultSet getTargetVTI()(Code)



getTransactionController
public TransactionController getTransactionController()(Code)



getWarnings
public SQLWarning getWarnings()(Code)

See Also:   org.apache.derby.iapi.sql.Activation.getWarnings



informOfRowCount
public void informOfRowCount(NoPutResultSet resultSet, long rowCount) throws StandardException(Code)

See Also:   Activation.informOfRowCount
exception:
  StandardException - Thrown on error



isClosed
public boolean isClosed()(Code)

See Also:   Activation.isClosed



isCursorActivation
public boolean isCursorActivation()(Code)

See Also:   Activation.isCursorActivation



isInUse
public boolean isInUse()(Code)
Is the activation in use? true/false



isSingleExecution
public boolean isSingleExecution()(Code)
Is the activation set up for a single execution.
See Also:   Activation.isSingleExecution



markUnused
public void markUnused()(Code)
Mark the activation as unused.



reset
public void reset() throws StandardException(Code)

See Also:   Activation.reset
exception:
  StandardException - thrown on failure



setAutoGeneratedKeysResultsetInfo
public void setAutoGeneratedKeysResultsetInfo(int[] columnIndexes, String[] columnNames)(Code)

See Also:   Activation.setAutoGeneratedKeysResultsetInfo
See Also:   



setCurrentRow
public void setCurrentRow(ExecRow currentRow, int resultSetNumber)(Code)

See Also:   Activation.setCurrentRow



setCursorName
public void setCursorName(String cursorName)(Code)

See Also:   Activation.setCursorName



setDDLTableDescriptor
public void setDDLTableDescriptor(TableDescriptor td)(Code)

See Also:   Activation.setDDLTableDescriptor



setForCreateTable
public void setForCreateTable()(Code)

See Also:   Activation.setForCreateTable



setForUpdateIndexScan
public void setForUpdateIndexScan(CursorResultSet forUpdateResultSet)(Code)



setHeapConglomerateController
public void setHeapConglomerateController(ConglomerateController updateHeapCC)(Code)

See Also:   Activation.setHeapConglomerateController



setIndexConglomerateNumber
public void setIndexConglomerateNumber(long indexConglomerateNumber)(Code)

See Also:   Activation.setIndexConglomerateNumber



setIndexScanController
public void setIndexScanController(ScanController indexSC)(Code)

See Also:   Activation.setIndexScanController



setMaxRows
public void setMaxRows(int maxRows)(Code)

See Also:   Activation.setMaxRows



setParameters
public void setParameters(ParameterValueSet parameterValues, DataTypeDescriptor[] parameterTypes) throws StandardException(Code)

See Also:   Activation.setParameters



setParentResultSet
public void setParentResultSet(TemporaryRowHolder rs, String resultSetId)(Code)



setResultSetHoldability
public void setResultSetHoldability(boolean resultSetHoldability)(Code)

See Also:   Activation.setResultSetHoldability



setSingleExecution
public void setSingleExecution()(Code)
Set the activation for a single execution.
See Also:   Activation.setSingleExecution



setTargetVTI
public void setTargetVTI(java.sql.ResultSet targetVTI)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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