Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.iapi.sql.execute
Interface ExecutionFactory  view ExecutionFactory download ExecutionFactory.java


public interface ExecutionFactory

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.


Field Summary
static java.lang.String MODULE
          Module name for the monitor's module locating system.
 
Method Summary
 ExecIndexRow getIndexableRow(ExecRow valueRow)
          This returns the value row as an indexable row
 ExecIndexRow getIndexableRow(int numColumns)
          This returns an indexable row
 java.lang.Object getJdbcCopyConstants(int[][] paramReferences, org.apache.derby.catalog.TypeDescriptor[][] columnTypes, int[][] publishedTableSchemaCounts)
          Packages up a clump of constants which the Plugin uses at execute() time for COPY PUBLICATION.
 java.lang.Object getJdbcCreateConstants(org.apache.derby.catalog.UUID[] publishedJarFileIDs, java.lang.Object publishedItems, int[][] tableSchemaCounts)
          Packages up a clump of constants which the Plugin uses at execute() time for CREATE PUBLICATION.
 org.apache.derby.iapi.store.access.Qualifier getQualifier(int columnId, int operator, org.apache.derby.iapi.services.loader.GeneratedMethod orderableGetter, org.apache.derby.iapi.sql.Activation activation, boolean orderedNulls, boolean unknownRV, boolean negateCompareResult, int variantType)
          Get a Qualifier to use with a scan of a conglomerate.
 org.apache.derby.iapi.sql.ResultColumnDescriptor getResultColumnDescriptor(org.apache.derby.iapi.sql.ResultColumnDescriptor compileRCD)
          Create an execution time ResultColumnDescriptor from a compile time RCD.
 org.apache.derby.iapi.sql.ResultDescription getResultDescription(org.apache.derby.iapi.sql.ResultColumnDescriptor[] columns, java.lang.String statementType)
          Create a result description given parameters for it.
 ResultSetFactory getResultSetFactory()
          Only one result set factory is needed for a database in the system.
 RowChanger getRowChanger(long heapConglom, org.apache.derby.iapi.store.access.StaticCompiledOpenConglomInfo heapSCOCI, org.apache.derby.iapi.store.access.DynamicCompiledOpenConglomInfo heapDCOCI, org.apache.derby.iapi.sql.dictionary.IndexRowGenerator[] irgs, long[] indexCIDS, org.apache.derby.iapi.store.access.StaticCompiledOpenConglomInfo[] indexSCOCIs, org.apache.derby.iapi.store.access.DynamicCompiledOpenConglomInfo[] indexDCOCIs, int numberOfColumns, org.apache.derby.iapi.store.access.TransactionController tc, int[] changedColumnIds, org.apache.derby.iapi.services.io.FormatableBitSet baseRowReadList, int[] baseRowReadMap, int[] streamStorableColIds, org.apache.derby.iapi.sql.Activation activation)
          Create a new RowChanger for doing insert update and delete operations based on partial before and after.
 RowChanger getRowChanger(long heapConglom, org.apache.derby.iapi.store.access.StaticCompiledOpenConglomInfo heapSCOCI, org.apache.derby.iapi.store.access.DynamicCompiledOpenConglomInfo heapDCOCI, org.apache.derby.iapi.sql.dictionary.IndexRowGenerator[] irgs, long[] indexCIDS, org.apache.derby.iapi.store.access.StaticCompiledOpenConglomInfo[] indexSCOCIs, org.apache.derby.iapi.store.access.DynamicCompiledOpenConglomInfo[] indexDCOCIs, int numberOfColumns, org.apache.derby.iapi.store.access.TransactionController tc, int[] changedColumnIds, int[] streamStorableHeapColIds, org.apache.derby.iapi.sql.Activation activation)
          Create a new RowChanger for performing update and delete operations based on full before and after rows.
 ScanQualifier[][] getScanQualifier(int numQualifiers)
          Get an array of ScanQualifiers for a scan.
 ExecRow getValueRow(int numColumns)
          This returns a new row that is storable but not indexable
 ExecutionContext newExecutionContext(org.apache.derby.iapi.services.context.ContextManager cm)
          We want an execution context so that we can push it onto the stack.
 void releaseScanQualifier(ScanQualifier[][] scanQualifiers)
          Release a ScanQualifier[] (back to the pool or free it).
 

Field Detail

MODULE

public static final java.lang.String MODULE
Module name for the monitor's module locating system.

See Also:
Constant Field Values
Method Detail

getResultSetFactory

public ResultSetFactory getResultSetFactory()
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.


newExecutionContext

public ExecutionContext newExecutionContext(org.apache.derby.iapi.services.context.ContextManager cm)
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.


getResultColumnDescriptor

public org.apache.derby.iapi.sql.ResultColumnDescriptor getResultColumnDescriptor(org.apache.derby.iapi.sql.ResultColumnDescriptor compileRCD)
Create an execution time ResultColumnDescriptor from a compile time RCD.


getResultDescription

public org.apache.derby.iapi.sql.ResultDescription getResultDescription(org.apache.derby.iapi.sql.ResultColumnDescriptor[] columns,
                                                                        java.lang.String statementType)
Create a result description given parameters for it.


getScanQualifier

public ScanQualifier[][] getScanQualifier(int numQualifiers)
Get an array of ScanQualifiers for a scan. ScanQualifiers are used with the DataDictionary.


releaseScanQualifier

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


getQualifier

public org.apache.derby.iapi.store.access.Qualifier getQualifier(int columnId,
                                                                 int operator,
                                                                 org.apache.derby.iapi.services.loader.GeneratedMethod orderableGetter,
                                                                 org.apache.derby.iapi.sql.Activation activation,
                                                                 boolean orderedNulls,
                                                                 boolean unknownRV,
                                                                 boolean negateCompareResult,
                                                                 int variantType)
Get a Qualifier to use with a scan of a conglomerate.


getRowChanger

public RowChanger getRowChanger(long heapConglom,
                                org.apache.derby.iapi.store.access.StaticCompiledOpenConglomInfo heapSCOCI,
                                org.apache.derby.iapi.store.access.DynamicCompiledOpenConglomInfo heapDCOCI,
                                org.apache.derby.iapi.sql.dictionary.IndexRowGenerator[] irgs,
                                long[] indexCIDS,
                                org.apache.derby.iapi.store.access.StaticCompiledOpenConglomInfo[] indexSCOCIs,
                                org.apache.derby.iapi.store.access.DynamicCompiledOpenConglomInfo[] indexDCOCIs,
                                int numberOfColumns,
                                org.apache.derby.iapi.store.access.TransactionController tc,
                                int[] changedColumnIds,
                                int[] streamStorableHeapColIds,
                                org.apache.derby.iapi.sql.Activation activation)
                         throws org.apache.derby.iapi.error.StandardException
Create a new RowChanger for performing update and delete operations based on full before and after rows.


getRowChanger

public RowChanger getRowChanger(long heapConglom,
                                org.apache.derby.iapi.store.access.StaticCompiledOpenConglomInfo heapSCOCI,
                                org.apache.derby.iapi.store.access.DynamicCompiledOpenConglomInfo heapDCOCI,
                                org.apache.derby.iapi.sql.dictionary.IndexRowGenerator[] irgs,
                                long[] indexCIDS,
                                org.apache.derby.iapi.store.access.StaticCompiledOpenConglomInfo[] indexSCOCIs,
                                org.apache.derby.iapi.store.access.DynamicCompiledOpenConglomInfo[] indexDCOCIs,
                                int numberOfColumns,
                                org.apache.derby.iapi.store.access.TransactionController tc,
                                int[] changedColumnIds,
                                org.apache.derby.iapi.services.io.FormatableBitSet baseRowReadList,
                                int[] baseRowReadMap,
                                int[] streamStorableColIds,
                                org.apache.derby.iapi.sql.Activation activation)
                         throws org.apache.derby.iapi.error.StandardException
Create a new RowChanger for doing insert update and delete operations based on partial before and after.


getValueRow

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


getIndexableRow

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


getIndexableRow

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


getJdbcCopyConstants

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


getJdbcCreateConstants

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