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


org.apache.derby.iapi.sql.execute.ExecutionFactory

All known Subclasses:   org.apache.derby.impl.sql.execute.GenericExecutionFactory,
ExecutionFactory
public interface ExecutionFactory (Code)
This is the factory for creating a factories needed by execution per connection, and the context to hold them.

There is expected to be one of these configured per database.

If a factory is needed outside of execution (say, data dictionary or compilation), then it belongs in the LanguageConnectionContext.
See Also:   org.apache.derby.iapi.sql.conn.LanguageConnectionContext
author:
   ames



Field Summary
 StringMODULE
     Module name for the monitor's module locating system.


Method Summary
public  ExecIndexRowgetIndexableRow(int numColumns)
    
public  ExecIndexRowgetIndexableRow(ExecRow valueRow)
    
public  ObjectgetJdbcCopyConstants(int[][] paramReferences, TypeDescriptor[][] columnTypes, int[][] publishedTableSchemaCounts)
     Packages up a clump of constants which the Plugin uses at execute() time for COPY PUBLICATION.
public  ObjectgetJdbcCreateConstants(UUID[] publishedJarFileIDs, Object publishedItems, int[][] tableSchemaCounts)
     Packages up a clump of constants which the Plugin uses at execute() time for CREATE PUBLICATION.
 QualifiergetQualifier(int columnId, int operator, GeneratedMethod orderableGetter, Activation activation, boolean orderedNulls, boolean unknownRV, boolean negateCompareResult, int variantType)
     Get a Qualifier to use with a scan of a conglomerate.
 ResultColumnDescriptorgetResultColumnDescriptor(ResultColumnDescriptor compileRCD)
     Create an execution time ResultColumnDescriptor from a compile time RCD.
Parameters:
  compileRCD - The compile time RCD.
 ResultDescriptiongetResultDescription(ResultColumnDescriptor[] columns, String statementType)
     Create a result description given parameters for it.
 ResultSetFactorygetResultSetFactory()
     Only one result set factory is needed for a database in the system. We require that an execution factory be configured for each database.
public  RowChangergetRowChanger(long heapConglom, StaticCompiledOpenConglomInfo heapSCOCI, DynamicCompiledOpenConglomInfo heapDCOCI, IndexRowGenerator[] irgs, long[] indexCIDS, StaticCompiledOpenConglomInfo[] indexSCOCIs, DynamicCompiledOpenConglomInfo[] indexDCOCIs, int numberOfColumns, TransactionController tc, int[] changedColumnIds, int[] streamStorableHeapColIds, Activation activation)
     Create a new RowChanger for performing update and delete operations based on full before and after rows.
Parameters:
  heapConglom - Conglomerate # for the heap
Parameters:
  heapSCOCI - The SCOCI for the heap.
Parameters:
  heapDCOCI - The DCOCI for the heap.
Parameters:
  irgs - the IndexRowGenerators for the table's indexes.
public  RowChangergetRowChanger(long heapConglom, StaticCompiledOpenConglomInfo heapSCOCI, DynamicCompiledOpenConglomInfo heapDCOCI, IndexRowGenerator[] irgs, long[] indexCIDS, StaticCompiledOpenConglomInfo[] indexSCOCIs, DynamicCompiledOpenConglomInfo[] indexDCOCIs, int numberOfColumns, TransactionController tc, int[] changedColumnIds, FormatableBitSet baseRowReadList, int[] baseRowReadMap, int[] streamStorableColIds, Activation activation)
     Create a new RowChanger for doing insert update and delete operations based on partial before and after.
 ScanQualifier[][]getScanQualifier(int numQualifiers)
     Get an array of ScanQualifiers for a scan.
public  ExecRowgetValueRow(int numColumns)
    
 ExecutionContextnewExecutionContext(ContextManager cm)
     We want an execution context so that we can push it onto the stack.
 voidreleaseScanQualifier(ScanQualifier[][] scanQualifiers)
     Release a ScanQualifier[] (back to the pool or free it).

Field Detail
MODULE
String MODULE(Code)
Module name for the monitor's module locating system.





Method Detail
getIndexableRow
public ExecIndexRow getIndexableRow(int numColumns)(Code)
This returns an indexable row



getIndexableRow
public ExecIndexRow getIndexableRow(ExecRow valueRow)(Code)
This returns the value row as an indexable row



getJdbcCopyConstants
public Object getJdbcCopyConstants(int[][] paramReferences, TypeDescriptor[][] columnTypes, int[][] publishedTableSchemaCounts)(Code)
Packages up a clump of constants which the Plugin uses at execute() time for COPY PUBLICATION.



getJdbcCreateConstants
public Object getJdbcCreateConstants(UUID[] publishedJarFileIDs, Object publishedItems, int[][] tableSchemaCounts)(Code)
Packages up a clump of constants which the Plugin uses at execute() time for CREATE PUBLICATION.



getQualifier
Qualifier getQualifier(int columnId, int operator, GeneratedMethod orderableGetter, Activation activation, boolean orderedNulls, boolean unknownRV, boolean negateCompareResult, int variantType)(Code)
Get a Qualifier to use with a scan of a conglomerate.
Parameters:
  columnId - The store id of the column to qualify
Parameters:
  operator - One of Orderable.ORDER_OP_EQUALS,Orderable.ORDER_OP_LESSTHAN,or Orderable.ORDER_OP_LESSOREQUALS
Parameters:
  orderableGetter - A generated method that returns theOrderable to be compared with the column
Parameters:
  activation - The Activation that acts as the receiver for thegenerated method
Parameters:
  orderedNulls - True means that null == null for the sake ofthis Qualifier
Parameters:
  unknownRV - The value to return if the comparison betweenthe column and the Orderable value returns theunknown truth value
Parameters:
  negateCompareResult - True means to negate the result of the comparison.So, for example, to do a > comparison, you wouldpass ORDER_OP_LESSOREQUALS and set negate to true.
Parameters:
  variantType - The variantType for the qualifier's orderable.(Determines whether or not to cache the value.) A new Qualifier



getResultColumnDescriptor
ResultColumnDescriptor getResultColumnDescriptor(ResultColumnDescriptor compileRCD)(Code)
Create an execution time ResultColumnDescriptor from a compile time RCD.
Parameters:
  compileRCD - The compile time RCD. The execution time ResultColumnDescriptor



getResultDescription
ResultDescription getResultDescription(ResultColumnDescriptor[] columns, String statementType)(Code)
Create a result description given parameters for it.



getResultSetFactory
ResultSetFactory getResultSetFactory()(Code)
Only one result set factory is needed for a database in the system. We require that an execution factory be configured for each database. Each execution factory then needs to know about the result set factory it is maintaining for its database, so that it can provide it through calls to this method. So, we reuse the result set factory by making it available to each connection in that connection's execution context. the result set factory for this database.



getRowChanger
public RowChanger getRowChanger(long heapConglom, StaticCompiledOpenConglomInfo heapSCOCI, DynamicCompiledOpenConglomInfo heapDCOCI, IndexRowGenerator[] irgs, long[] indexCIDS, StaticCompiledOpenConglomInfo[] indexSCOCIs, DynamicCompiledOpenConglomInfo[] indexDCOCIs, int numberOfColumns, TransactionController tc, int[] changedColumnIds, int[] streamStorableHeapColIds, Activation activation) throws StandardException(Code)
Create a new RowChanger for performing update and delete operations based on full before and after rows.
Parameters:
  heapConglom - Conglomerate # for the heap
Parameters:
  heapSCOCI - The SCOCI for the heap.
Parameters:
  heapDCOCI - The DCOCI for the heap.
Parameters:
  irgs - the IndexRowGenerators for the table's indexes. We usepositions in this array as local id's for indexes. To support updates,only indexes that change need be included.
Parameters:
  indexCIDS - the conglomerateids for the table's idexes. indexCIDS[ix] corresponds to the same index as irgs[ix].
Parameters:
  indexSCOCIs - the SCOCIs for the table's idexes. indexSCOCIs[ix] corresponds to the same index as irgs[ix].
Parameters:
  indexDCOCIs - the DCOCIs for the table's idexes. indexDCOCIs[ix] corresponds to the same index as irgs[ix].
Parameters:
  numberOfColumns - Number of columns in a full row.
Parameters:
  tc - the transaction controller
Parameters:
  streamStorableHeapColIds - Column ids of stream storablecolumns. (0 based, Only needed for sync. null if none ornot needed).
Parameters:
  activation - The Activation.
exception:
  StandardException - Thrown on error



getRowChanger
public RowChanger getRowChanger(long heapConglom, StaticCompiledOpenConglomInfo heapSCOCI, DynamicCompiledOpenConglomInfo heapDCOCI, IndexRowGenerator[] irgs, long[] indexCIDS, StaticCompiledOpenConglomInfo[] indexSCOCIs, DynamicCompiledOpenConglomInfo[] indexDCOCIs, int numberOfColumns, TransactionController tc, int[] changedColumnIds, FormatableBitSet baseRowReadList, int[] baseRowReadMap, int[] streamStorableColIds, Activation activation) throws StandardException(Code)
Create a new RowChanger for doing insert update and delete operations based on partial before and after.
Parameters:
  heapConglom - Conglomerate # for the heap
Parameters:
  heapSCOCI - The SCOCI for the heap.
Parameters:
  heapDCOCI - The DCOCI for the heap.
Parameters:
  irgs - the IndexRowGenerators for the table's indexes. We usepositions in this array as local id's for indexes. To support updates,only indexes that change need be included.
Parameters:
  indexCIDS - the conglomerateids for the table's idexes. indexCIDS[ix] corresponds to the same index as irgs[ix].
Parameters:
  indexSCOCIs - the SCOCIs for the table's idexes. indexSCOCIs[ix] corresponds to the same index as irgs[ix].
Parameters:
  indexDCOCIs - the DCOCIs for the table's idexes. indexDCOCIs[ix] corresponds to the same index as irgs[ix].
Parameters:
  numberOfColumns - Number of columns in partial row.
Parameters:
  tc - the transaction controller
Parameters:
  changedColumnIds - array of 1 based ints of columnsto be updated. Used by update only.
Parameters:
  baseRowReadList - the columns in the base row that wereread (1 based)
Parameters:
  baseRowReadMap - baseRowReadMap[heapColId]->readRowColId(0 based)
Parameters:
  streamStorableColIds - Column ids of stream storablecolumns. (0 based, Only needed for sync. null if none ornot needed).
Parameters:
  activation - The Activation.
exception:
  StandardException - Thrown on error



getScanQualifier
ScanQualifier[][] getScanQualifier(int numQualifiers)(Code)
Get an array of ScanQualifiers for a scan. ScanQualifiers are used with the DataDictionary.
Parameters:
  numQualifiers - The number of ScanQualifiers to get.



getValueRow
public ExecRow getValueRow(int numColumns)(Code)
This returns a new row that is storable but not indexable



newExecutionContext
ExecutionContext newExecutionContext(ContextManager cm)(Code)
We want an execution context so that we can push it onto the stack. We could instead require the implementation push it onto the stack for us, but this way we know which context object exactly was pushed onto the stack.
Parameters:
  cm - the context manager



releaseScanQualifier
void releaseScanQualifier(ScanQualifier[][] scanQualifiers)(Code)
Release a ScanQualifier[] (back to the pool or free it).



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