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

Quick Search    Search Deep

org.apache.derby.impl.sql.execute
Class GenericResultSetFactory  view GenericResultSetFactory download GenericResultSetFactory.java

java.lang.Object
  extended byorg.apache.derby.impl.sql.execute.GenericResultSetFactory
All Implemented Interfaces:
org.apache.derby.iapi.sql.execute.ResultSetFactory

public class GenericResultSetFactory
extends java.lang.Object
implements org.apache.derby.iapi.sql.execute.ResultSetFactory

ResultSetFactory provides a wrapper around all of the result sets used in this execution implementation. This removes the need of generated classes to do a new and of the generator to know about all of the result sets. Both simply know about this interface to getting them.

In terms of modularizing, we can create just an interface to this class and invoke the interface. Different implementations would get the same information provided but could potentially massage/ignore it in different ways to satisfy their implementations. The practicality of this is to be seen.

The cost of this type of factory is that once you touch it, you touch *all* of the possible result sets, not just the ones you need. So the first time you touch it could be painful ... that might be a problem for execution.


Field Summary
 
Fields inherited from interface org.apache.derby.iapi.sql.execute.ResultSetFactory
MODULE
 
Constructor Summary
GenericResultSetFactory()
           
 
Method Summary
 org.apache.derby.iapi.sql.execute.NoPutResultSet getAnyResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet source, org.apache.derby.iapi.sql.Activation activation, org.apache.derby.iapi.services.loader.GeneratedMethod emptyRowFun, int resultSetNumber, int subqueryNumber, int pointOfAttachment, double optimizerEstimatedRowCount, double optimizerEstimatedCost)
          An any result set iterates over its source, returning a row with all columns set to nulls if the source returns no rows.
private static org.apache.derby.iapi.sql.conn.Authorizer getAuthorizer(org.apache.derby.iapi.sql.Activation activation)
           
 org.apache.derby.iapi.sql.execute.NoPutResultSet getBulkTableScanResultSet(long conglomId, int scociItem, org.apache.derby.iapi.sql.Activation activation, org.apache.derby.iapi.services.loader.GeneratedMethod resultRowAllocator, int resultSetNumber, org.apache.derby.iapi.services.loader.GeneratedMethod startKeyGetter, int startSearchOperator, org.apache.derby.iapi.services.loader.GeneratedMethod stopKeyGetter, int stopSearchOperator, boolean sameStartStopPosition, org.apache.derby.iapi.store.access.Qualifier[][] qualifiers, java.lang.String tableName, java.lang.String indexName, boolean isConstraint, boolean forUpdate, int colRefItem, int indexColItem, int lockMode, boolean tableLocked, int isolationLevel, int rowsPerRead, boolean oneRowScan, double optimizerEstimatedRowCount, double optimizerEstimatedCost, org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup)
          Table/Index scan where rows are read in bulk
 org.apache.derby.iapi.sql.ResultSet getCallStatementResultSet(org.apache.derby.iapi.services.loader.GeneratedMethod methodCall, org.apache.derby.iapi.sql.Activation activation)
          A call statement result set simply reports that it completed.
 org.apache.derby.iapi.sql.execute.NoPutResultSet getCurrentOfResultSet(java.lang.String cursorName, org.apache.derby.iapi.sql.Activation activation, int resultSetNumber, java.lang.String psName)
          A current of result set forms a result set on the current row of an open cursor.
 org.apache.derby.iapi.sql.ResultSet getDDLResultSet(org.apache.derby.iapi.sql.Activation activation)
          Generic DDL result set creation.
 org.apache.derby.iapi.sql.ResultSet getDeleteCascadeResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet source, org.apache.derby.iapi.sql.Activation activation, int constantActionItem, org.apache.derby.iapi.sql.ResultSet[] dependentResultSets, java.lang.String resultSetId)
          A delete Cascade result set simply reports that it completed, and the number of rows deleted.
 org.apache.derby.iapi.sql.ResultSet getDeleteCascadeUpdateResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet source, org.apache.derby.iapi.services.loader.GeneratedMethod checkGM, org.apache.derby.iapi.sql.Activation activation, int constantActionItem, int rsdItem)
          An update result set simply reports that it completed, and the number of rows updated.
 org.apache.derby.iapi.sql.ResultSet getDeleteResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet source, org.apache.derby.iapi.sql.Activation activation)
          A delete result set simply reports that it completed, and the number of rows deleted.
 org.apache.derby.iapi.sql.ResultSet getDeleteVTIResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet source, org.apache.derby.iapi.sql.Activation activation)
          A delete VTI result set simply reports that it completed, and the number of rows deleted.
 org.apache.derby.iapi.sql.execute.NoPutResultSet getDistinctGroupedAggregateResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet source, boolean isInSortedOrder, int aggregateItem, int orderItem, org.apache.derby.iapi.sql.Activation activation, org.apache.derby.iapi.services.loader.GeneratedMethod rowAllocator, int maxRowSize, int resultSetNumber, double optimizerEstimatedRowCount, double optimizerEstimatedCost, org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup)
          A DistinctGroupedAggregateResultSet computes scalar aggregates when at least one of them is a distinct aggregate.
 org.apache.derby.iapi.sql.execute.NoPutResultSet getDistinctScalarAggregateResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet source, boolean isInSortedOrder, int aggregateItem, int orderItem, org.apache.derby.iapi.sql.Activation activation, org.apache.derby.iapi.services.loader.GeneratedMethod rowAllocator, int maxRowSize, int resultSetNumber, boolean singleInputRow, double optimizerEstimatedRowCount, double optimizerEstimatedCost, org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup)
          A DistinctScalarAggregateResultSet computes scalar aggregates when at least one of them is a distinct aggregate.
 org.apache.derby.iapi.sql.execute.NoPutResultSet getDistinctScanResultSet(long conglomId, int scociItem, org.apache.derby.iapi.sql.Activation activation, org.apache.derby.iapi.services.loader.GeneratedMethod resultRowAllocator, int resultSetNumber, int hashKeyColumn, java.lang.String tableName, java.lang.String indexName, boolean isConstraint, int colRefItem, int lockMode, boolean tableLocked, int isolationLevel, double optimizerEstimatedRowCount, double optimizerEstimatedCost, org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup)
          a distinct scan generator, for ease of use at present.
 org.apache.derby.iapi.sql.execute.NoPutResultSet getGroupedAggregateResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet source, boolean isInSortedOrder, int aggregateItem, int orderItem, org.apache.derby.iapi.sql.Activation activation, org.apache.derby.iapi.services.loader.GeneratedMethod rowAllocator, int maxRowSize, int resultSetNumber, double optimizerEstimatedRowCount, double optimizerEstimatedCost, org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup)
          A GroupedAggregateResultSet computes non-distinct grouped aggregates.
 org.apache.derby.iapi.sql.execute.NoPutResultSet getHashJoinResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet leftResultSet, int leftNumCols, org.apache.derby.iapi.sql.execute.NoPutResultSet rightResultSet, int rightNumCols, org.apache.derby.iapi.sql.Activation activation, org.apache.derby.iapi.services.loader.GeneratedMethod joinClause, int resultSetNumber, boolean oneRowRightSide, boolean notExistsRightSide, double optimizerEstimatedRowCount, double optimizerEstimatedCost, org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup)
          A hash join.
 org.apache.derby.iapi.sql.execute.NoPutResultSet getHashLeftOuterJoinResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet leftResultSet, int leftNumCols, org.apache.derby.iapi.sql.execute.NoPutResultSet rightResultSet, int rightNumCols, org.apache.derby.iapi.sql.Activation activation, org.apache.derby.iapi.services.loader.GeneratedMethod joinClause, int resultSetNumber, org.apache.derby.iapi.services.loader.GeneratedMethod emptyRowFun, boolean wasRightOuterJoin, boolean oneRowRightSide, boolean notExistsRightSide, double optimizerEstimatedRowCount, double optimizerEstimatedCost, org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup)
          A left outer join using a hash join.
 org.apache.derby.iapi.sql.execute.NoPutResultSet getHashScanResultSet(long conglomId, int scociItem, org.apache.derby.iapi.sql.Activation activation, org.apache.derby.iapi.services.loader.GeneratedMethod resultRowAllocator, int resultSetNumber, org.apache.derby.iapi.services.loader.GeneratedMethod startKeyGetter, int startSearchOperator, org.apache.derby.iapi.services.loader.GeneratedMethod stopKeyGetter, int stopSearchOperator, boolean sameStartStopPosition, org.apache.derby.iapi.store.access.Qualifier[][] scanQualifiers, org.apache.derby.iapi.store.access.Qualifier[][] nextQualifiers, int initialCapacity, float loadFactor, int maxCapacity, int hashKeyColumn, java.lang.String tableName, java.lang.String indexName, boolean isConstraint, boolean forUpdate, int colRefItem, int indexColItem, int lockMode, boolean tableLocked, int isolationLevel, double optimizerEstimatedRowCount, double optimizerEstimatedCost, org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup)
          a hash scan generator, for ease of use at present.
 org.apache.derby.iapi.sql.execute.NoPutResultSet getHashTableResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet source, org.apache.derby.iapi.sql.Activation activation, org.apache.derby.iapi.services.loader.GeneratedMethod singleTableRestriction, org.apache.derby.iapi.store.access.Qualifier[][] equijoinQualifiers, org.apache.derby.iapi.services.loader.GeneratedMethod projection, int resultSetNumber, int mapRefItem, boolean reuseResult, int keyColItem, boolean removeDuplicates, long maxInMemoryRowCount, int initialCapacity, float loadFactor, double optimizerEstimatedRowCount, double optimizerEstimatedCost, org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup)
          A hash table result set builds a hash table on its source, applying a list of predicates, if any, to the source, when building the hash table.
 org.apache.derby.iapi.sql.execute.NoPutResultSet getIndexRowToBaseRowResultSet(long conglomId, int scociItem, org.apache.derby.iapi.sql.Activation a, org.apache.derby.iapi.sql.execute.NoPutResultSet source, org.apache.derby.iapi.services.loader.GeneratedMethod resultRowAllocator, int resultSetNumber, java.lang.String indexName, int heapColRefItem, int indexColRefItem, int indexColMapItem, org.apache.derby.iapi.services.loader.GeneratedMethod restriction, boolean forUpdate, double optimizerEstimatedRowCount, double optimizerEstimatedCost, org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup)
          An index row to base row result set gets an index row from its source and uses the RowLocation in its last column to get the row from the base conglomerate.
 org.apache.derby.iapi.sql.ResultSet getInsertResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet source, org.apache.derby.iapi.services.loader.GeneratedMethod checkGM, org.apache.derby.iapi.sql.Activation activation)
          An insert result set simply reports that it completed, and the number of rows inserted.
 org.apache.derby.iapi.sql.ResultSet getInsertVTIResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet source, org.apache.derby.iapi.sql.execute.NoPutResultSet vtiRS, org.apache.derby.iapi.sql.Activation activation)
          An insert VTI result set simply reports that it completed, and the number of rows inserted.
 org.apache.derby.iapi.sql.execute.NoPutResultSet getLastIndexKeyResultSet(org.apache.derby.iapi.sql.Activation activation, int resultSetNumber, org.apache.derby.iapi.services.loader.GeneratedMethod resultRowAllocator, long conglomId, java.lang.String tableName, java.lang.String indexName, int colRefItem, int lockMode, boolean tableLocked, int isolationLevel, double optimizerEstimatedRowCount, double optimizerEstimatedCost, org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup)
          A last index key sresult set returns the last row from the index in question.
 org.apache.derby.iapi.sql.execute.NoPutResultSet getMaterializedResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet source, org.apache.derby.iapi.sql.Activation activation, int resultSetNumber, double optimizerEstimatedRowCount, double optimizerEstimatedCost, org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup)
          A ResultSet which materializes the underlying ResultSet tree into a temp table on the 1st open.
 org.apache.derby.iapi.sql.ResultSet getMiscResultSet(org.apache.derby.iapi.sql.Activation activation)
          Generic Misc result set creation.
 org.apache.derby.iapi.sql.execute.NoPutResultSet getNestedLoopJoinResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet leftResultSet, int leftNumCols, org.apache.derby.iapi.sql.execute.NoPutResultSet rightResultSet, int rightNumCols, org.apache.derby.iapi.sql.Activation activation, org.apache.derby.iapi.services.loader.GeneratedMethod joinClause, int resultSetNumber, boolean oneRowRightSide, boolean notExistsRightSide, double optimizerEstimatedRowCount, double optimizerEstimatedCost, org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup)
          A nested loop left outer join result set forms a result set on top of 2 other result sets.
 org.apache.derby.iapi.sql.execute.NoPutResultSet getNestedLoopLeftOuterJoinResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet leftResultSet, int leftNumCols, org.apache.derby.iapi.sql.execute.NoPutResultSet rightResultSet, int rightNumCols, org.apache.derby.iapi.sql.Activation activation, org.apache.derby.iapi.services.loader.GeneratedMethod joinClause, int resultSetNumber, org.apache.derby.iapi.services.loader.GeneratedMethod emptyRowFun, boolean wasRightOuterJoin, boolean oneRowRightSide, boolean notExistsRightSide, double optimizerEstimatedRowCount, double optimizerEstimatedCost, org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup)
          A nested loop join result set forms a result set on top of 2 other result sets.
 org.apache.derby.iapi.sql.execute.NoPutResultSet getNormalizeResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet source, org.apache.derby.iapi.sql.Activation activation, int resultSetNumber, int erdNumber, double optimizerEstimatedRowCount, double optimizerEstimatedCost, boolean forUpdate, org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup)
          REMIND: needs more description...
 org.apache.derby.iapi.sql.execute.NoPutResultSet getOnceResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet source, org.apache.derby.iapi.sql.Activation activation, org.apache.derby.iapi.services.loader.GeneratedMethod emptyRowFun, int cardinalityCheck, int resultSetNumber, int subqueryNumber, int pointOfAttachment, double optimizerEstimatedRowCount, double optimizerEstimatedCost)
          A once result set iterates over its source, raising an error if the source returns > 1 row and returning a row with all columns set to nulls if the source returns no rows.
 org.apache.derby.iapi.sql.execute.NoPutResultSet getProjectRestrictResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet source, org.apache.derby.iapi.sql.Activation activation, org.apache.derby.iapi.services.loader.GeneratedMethod restriction, org.apache.derby.iapi.services.loader.GeneratedMethod projection, int resultSetNumber, org.apache.derby.iapi.services.loader.GeneratedMethod constantRestriction, int mapRefItem, boolean reuseResult, boolean doesProjection, double optimizerEstimatedRowCount, double optimizerEstimatedCost, org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup)
          A project restrict result set iterates over its source, evaluating a restriction and when it is satisfied, constructing a row to return in its result set based on its projection.
 org.apache.derby.iapi.sql.execute.NoPutResultSet getRaDependentTableScanResultSet(long conglomId, int scociItem, org.apache.derby.iapi.sql.Activation activation, org.apache.derby.iapi.services.loader.GeneratedMethod resultRowAllocator, int resultSetNumber, org.apache.derby.iapi.services.loader.GeneratedMethod startKeyGetter, int startSearchOperator, org.apache.derby.iapi.services.loader.GeneratedMethod stopKeyGetter, int stopSearchOperator, boolean sameStartStopPosition, org.apache.derby.iapi.store.access.Qualifier[][] qualifiers, java.lang.String tableName, java.lang.String indexName, boolean isConstraint, boolean forUpdate, int colRefItem, int indexColItem, int lockMode, boolean tableLocked, int isolationLevel, boolean oneRowScan, double optimizerEstimatedRowCount, double optimizerEstimatedCost, org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup, java.lang.String parentResultSetId, long fkIndexConglomId, int fkColArrayItem, int rltItem)
          a referential action dependent table scan generator.
 org.apache.derby.iapi.sql.execute.NoPutResultSet getRowResultSet(org.apache.derby.iapi.sql.Activation activation, org.apache.derby.iapi.services.loader.GeneratedMethod row, boolean canCacheRow, int resultSetNumber, double optimizerEstimatedRowCount, double optimizerEstimatedCost, org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup)
          A row result set forms a result set on a single, known row value.
 org.apache.derby.iapi.sql.execute.NoPutResultSet getScalarAggregateResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet source, boolean isInSortedOrder, int aggregateItem, int orderItem, org.apache.derby.iapi.sql.Activation activation, org.apache.derby.iapi.services.loader.GeneratedMethod rowAllocator, int maxRowSize, int resultSetNumber, boolean singleInputRow, double optimizerEstimatedRowCount, double optimizerEstimatedCost, org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup)
          A ScalarAggregateResultSet computes non-distinct scalar aggregates.
 org.apache.derby.iapi.sql.execute.NoPutResultSet getScrollInsensitiveResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet source, org.apache.derby.iapi.sql.Activation activation, int resultSetNumber, int sourceRowWidth, boolean scrollable, double optimizerEstimatedRowCount, double optimizerEstimatedCost, org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup)
          A ResultSet which provides the insensitive scrolling functionality for the underlying result set by materializing the underlying ResultSet tree into a hash table while scrolling forward.
 org.apache.derby.iapi.sql.execute.NoPutResultSet getSetOpResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet leftSource, org.apache.derby.iapi.sql.execute.NoPutResultSet rightSource, org.apache.derby.iapi.sql.Activation activation, int resultSetNumber, long optimizerEstimatedRowCount, double optimizerEstimatedCost, int opType, boolean all, org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup, int intermediateOrderByColumnsSavedObject, int intermediateOrderByDirectionSavedObject)
          The SetOpResultSet is used to implement an INTERSECT or EXCEPT operation.
 org.apache.derby.iapi.sql.ResultSet getSetTransactionResultSet(org.apache.derby.iapi.sql.Activation activation)
           
 org.apache.derby.iapi.sql.execute.NoPutResultSet getSortResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet source, boolean distinct, boolean isInSortedOrder, int orderItem, org.apache.derby.iapi.sql.Activation activation, org.apache.derby.iapi.services.loader.GeneratedMethod rowAllocator, int maxRowSize, int resultSetNumber, double optimizerEstimatedRowCount, double optimizerEstimatedCost, org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup)
          A sort result set sorts its source and if requested removes duplicates.
 org.apache.derby.iapi.sql.execute.NoPutResultSet getTableScanResultSet(long conglomId, int scociItem, org.apache.derby.iapi.sql.Activation activation, org.apache.derby.iapi.services.loader.GeneratedMethod resultRowAllocator, int resultSetNumber, org.apache.derby.iapi.services.loader.GeneratedMethod startKeyGetter, int startSearchOperator, org.apache.derby.iapi.services.loader.GeneratedMethod stopKeyGetter, int stopSearchOperator, boolean sameStartStopPosition, org.apache.derby.iapi.store.access.Qualifier[][] qualifiers, java.lang.String tableName, java.lang.String indexName, boolean isConstraint, boolean forUpdate, int colRefItem, int indexColItem, int lockMode, boolean tableLocked, int isolationLevel, boolean oneRowScan, double optimizerEstimatedRowCount, double optimizerEstimatedCost, org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup)
          a minimal table scan generator, for ease of use at present.
 org.apache.derby.iapi.sql.execute.NoPutResultSet getUnionResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet leftResultSet, org.apache.derby.iapi.sql.execute.NoPutResultSet rightResultSet, org.apache.derby.iapi.sql.Activation activation, int resultSetNumber, double optimizerEstimatedRowCount, double optimizerEstimatedCost, org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup)
          a minimal union scan generator, for ease of use at present.
 org.apache.derby.iapi.sql.ResultSet getUpdateResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet source, org.apache.derby.iapi.services.loader.GeneratedMethod checkGM, org.apache.derby.iapi.sql.Activation activation)
          An update result set simply reports that it completed, and the number of rows updated.
 org.apache.derby.iapi.sql.ResultSet getUpdateVTIResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet source, org.apache.derby.iapi.sql.Activation activation)
           
 org.apache.derby.iapi.sql.execute.NoPutResultSet getVTIResultSet(org.apache.derby.iapi.sql.Activation activation, org.apache.derby.iapi.services.loader.GeneratedMethod row, int resultSetNumber, org.apache.derby.iapi.services.loader.GeneratedMethod constructor, java.lang.String javaClassName, org.apache.derby.iapi.store.access.Qualifier[][] pushedQualifiers, int erdNumber, boolean version2, boolean reuseablePs, int ctcNumber, boolean isTarget, int scanIsolationLevel, double optimizerEstimatedRowCount, double optimizerEstimatedCost, org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup)
          A VTI result set wraps a user supplied result set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericResultSetFactory

public GenericResultSetFactory()
Method Detail

getInsertResultSet

public org.apache.derby.iapi.sql.ResultSet getInsertResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet source,
                                                              org.apache.derby.iapi.services.loader.GeneratedMethod checkGM,
                                                              org.apache.derby.iapi.sql.Activation activation)
                                                       throws org.apache.derby.iapi.error.StandardException
Description copied from interface: org.apache.derby.iapi.sql.execute.ResultSetFactory
An insert result set simply reports that it completed, and the number of rows inserted. It does not return rows. The insert has been completed once the insert result set is available.

Specified by:
getInsertResultSet in interface org.apache.derby.iapi.sql.execute.ResultSetFactory

getInsertVTIResultSet

public org.apache.derby.iapi.sql.ResultSet getInsertVTIResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet source,
                                                                 org.apache.derby.iapi.sql.execute.NoPutResultSet vtiRS,
                                                                 org.apache.derby.iapi.sql.Activation activation)
                                                          throws org.apache.derby.iapi.error.StandardException
Description copied from interface: org.apache.derby.iapi.sql.execute.ResultSetFactory
An insert VTI result set simply reports that it completed, and the number of rows inserted. It does not return rows. The insert has been completed once the insert result set is available.

Specified by:
getInsertVTIResultSet in interface org.apache.derby.iapi.sql.execute.ResultSetFactory

getDeleteVTIResultSet

public org.apache.derby.iapi.sql.ResultSet getDeleteVTIResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet source,
                                                                 org.apache.derby.iapi.sql.Activation activation)
                                                          throws org.apache.derby.iapi.error.StandardException
Description copied from interface: org.apache.derby.iapi.sql.execute.ResultSetFactory
A delete VTI result set simply reports that it completed, and the number of rows deleted. It does not return rows. The delete has been completed once the delete result set is available.

Specified by:
getDeleteVTIResultSet in interface org.apache.derby.iapi.sql.execute.ResultSetFactory

getDeleteResultSet

public org.apache.derby.iapi.sql.ResultSet getDeleteResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet source,
                                                              org.apache.derby.iapi.sql.Activation activation)
                                                       throws org.apache.derby.iapi.error.StandardException
Description copied from interface: org.apache.derby.iapi.sql.execute.ResultSetFactory
A delete result set simply reports that it completed, and the number of rows deleted. It does not return rows. The delete has been completed once the delete result set is available.

Specified by:
getDeleteResultSet in interface org.apache.derby.iapi.sql.execute.ResultSetFactory

getDeleteCascadeResultSet

public org.apache.derby.iapi.sql.ResultSet getDeleteCascadeResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet source,
                                                                     org.apache.derby.iapi.sql.Activation activation,
                                                                     int constantActionItem,
                                                                     org.apache.derby.iapi.sql.ResultSet[] dependentResultSets,
                                                                     java.lang.String resultSetId)
                                                              throws org.apache.derby.iapi.error.StandardException
Description copied from interface: org.apache.derby.iapi.sql.execute.ResultSetFactory
A delete Cascade result set simply reports that it completed, and the number of rows deleted. It does not return rows. The delete has been completed once the delete result set is available.

Specified by:
getDeleteCascadeResultSet in interface org.apache.derby.iapi.sql.execute.ResultSetFactory

getUpdateResultSet

public org.apache.derby.iapi.sql.ResultSet getUpdateResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet source,
                                                              org.apache.derby.iapi.services.loader.GeneratedMethod checkGM,
                                                              org.apache.derby.iapi.sql.Activation activation)
                                                       throws org.apache.derby.iapi.error.StandardException
Description copied from interface: org.apache.derby.iapi.sql.execute.ResultSetFactory
An update result set simply reports that it completed, and the number of rows updated. It does not return rows. The update has been completed once the update result set is available.

Specified by:
getUpdateResultSet in interface org.apache.derby.iapi.sql.execute.ResultSetFactory

getUpdateVTIResultSet

public org.apache.derby.iapi.sql.ResultSet getUpdateVTIResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet source,
                                                                 org.apache.derby.iapi.sql.Activation activation)
                                                          throws org.apache.derby.iapi.error.StandardException
Specified by:
getUpdateVTIResultSet in interface org.apache.derby.iapi.sql.execute.ResultSetFactory

getDeleteCascadeUpdateResultSet

public org.apache.derby.iapi.sql.ResultSet getDeleteCascadeUpdateResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet source,
                                                                           org.apache.derby.iapi.services.loader.GeneratedMethod checkGM,
                                                                           org.apache.derby.iapi.sql.Activation activation,
                                                                           int constantActionItem,
                                                                           int rsdItem)
                                                                    throws org.apache.derby.iapi.error.StandardException
Description copied from interface: org.apache.derby.iapi.sql.execute.ResultSetFactory
An update result set simply reports that it completed, and the number of rows updated. It does not return rows. The update has been completed once the update result set is available.

Specified by:
getDeleteCascadeUpdateResultSet in interface org.apache.derby.iapi.sql.execute.ResultSetFactory

getCallStatementResultSet

public org.apache.derby.iapi.sql.ResultSet getCallStatementResultSet(org.apache.derby.iapi.services.loader.GeneratedMethod methodCall,
                                                                     org.apache.derby.iapi.sql.Activation activation)
                                                              throws org.apache.derby.iapi.error.StandardException
Description copied from interface: org.apache.derby.iapi.sql.execute.ResultSetFactory
A call statement result set simply reports that it completed. It does not return rows.

Specified by:
getCallStatementResultSet in interface org.apache.derby.iapi.sql.execute.ResultSetFactory

getProjectRestrictResultSet

public org.apache.derby.iapi.sql.execute.NoPutResultSet getProjectRestrictResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet source,
                                                                                    org.apache.derby.iapi.sql.Activation activation,
                                                                                    org.apache.derby.iapi.services.loader.GeneratedMethod restriction,
                                                                                    org.apache.derby.iapi.services.loader.GeneratedMethod projection,
                                                                                    int resultSetNumber,
                                                                                    org.apache.derby.iapi.services.loader.GeneratedMethod constantRestriction,
                                                                                    int mapRefItem,
                                                                                    boolean reuseResult,
                                                                                    boolean doesProjection,
                                                                                    double optimizerEstimatedRowCount,
                                                                                    double optimizerEstimatedCost,
                                                                                    org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup)
                                                                             throws org.apache.derby.iapi.error.StandardException
Description copied from interface: org.apache.derby.iapi.sql.execute.ResultSetFactory
A project restrict result set iterates over its source, evaluating a restriction and when it is satisfied, constructing a row to return in its result set based on its projection. The rows can be constructed as they are requested from the result set.

Specified by:
getProjectRestrictResultSet in interface org.apache.derby.iapi.sql.execute.ResultSetFactory

getHashTableResultSet

public org.apache.derby.iapi.sql.execute.NoPutResultSet getHashTableResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet source,
                                                                              org.apache.derby.iapi.sql.Activation activation,
                                                                              org.apache.derby.iapi.services.loader.GeneratedMethod singleTableRestriction,
                                                                              org.apache.derby.iapi.store.access.Qualifier[][] equijoinQualifiers,
                                                                              org.apache.derby.iapi.services.loader.GeneratedMethod projection,
                                                                              int resultSetNumber,
                                                                              int mapRefItem,
                                                                              boolean reuseResult,
                                                                              int keyColItem,
                                                                              boolean removeDuplicates,
                                                                              long maxInMemoryRowCount,
                                                                              int initialCapacity,
                                                                              float loadFactor,
                                                                              double optimizerEstimatedRowCount,
                                                                              double optimizerEstimatedCost,
                                                                              org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup)
                                                                       throws org.apache.derby.iapi.error.StandardException
Description copied from interface: org.apache.derby.iapi.sql.execute.ResultSetFactory
A hash table result set builds a hash table on its source, applying a list of predicates, if any, to the source, when building the hash table. It then does a look up into the hash table on a probe. The rows can be constructed as they are requested from the result set.

Specified by:
getHashTableResultSet in interface org.apache.derby.iapi.sql.execute.ResultSetFactory

getSortResultSet

public org.apache.derby.iapi.sql.execute.NoPutResultSet getSortResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet source,
                                                                         boolean distinct,
                                                                         boolean isInSortedOrder,
                                                                         int orderItem,
                                                                         org.apache.derby.iapi.sql.Activation activation,
                                                                         org.apache.derby.iapi.services.loader.GeneratedMethod rowAllocator,
                                                                         int maxRowSize,
                                                                         int resultSetNumber,
                                                                         double optimizerEstimatedRowCount,
                                                                         double optimizerEstimatedCost,
                                                                         org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup)
                                                                  throws org.apache.derby.iapi.error.StandardException
Description copied from interface: org.apache.derby.iapi.sql.execute.ResultSetFactory
A sort result set sorts its source and if requested removes duplicates. It will generate the entire result when open, and then return it a row at a time.

If passed aggregates it will do scalar or vector aggregate processing. A list of aggregator information is passed off of the PreparedStatement's savedObjects. Aggregation and SELECT DISTINCT cannot be processed in the same sort.

Specified by:
getSortResultSet in interface org.apache.derby.iapi.sql.execute.ResultSetFactory

getScalarAggregateResultSet

public org.apache.derby.iapi.sql.execute.NoPutResultSet getScalarAggregateResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet source,
                                                                                    boolean isInSortedOrder,
                                                                                    int aggregateItem,
                                                                                    int orderItem,
                                                                                    org.apache.derby.iapi.sql.Activation activation,
                                                                                    org.apache.derby.iapi.services.loader.GeneratedMethod rowAllocator,
                                                                                    int maxRowSize,
                                                                                    int resultSetNumber,
                                                                                    boolean singleInputRow,
                                                                                    double optimizerEstimatedRowCount,
                                                                                    double optimizerEstimatedCost,
                                                                                    org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup)
                                                                             throws org.apache.derby.iapi.error.StandardException
Description copied from interface: org.apache.derby.iapi.sql.execute.ResultSetFactory
A ScalarAggregateResultSet computes non-distinct scalar aggregates. It will compute the aggregates when open.

Specified by:
getScalarAggregateResultSet in interface org.apache.derby.iapi.sql.execute.ResultSetFactory

getDistinctScalarAggregateResultSet

public org.apache.derby.iapi.sql.execute.NoPutResultSet getDistinctScalarAggregateResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet source,
                                                                                            boolean isInSortedOrder,
                                                                                            int aggregateItem,
                                                                                            int orderItem,
                                                                                            org.apache.derby.iapi.sql.Activation activation,
                                                                                            org.apache.derby.iapi.services.loader.GeneratedMethod rowAllocator,
                                                                                            int maxRowSize,
                                                                                            int resultSetNumber,
                                                                                            boolean singleInputRow,
                                                                                            double optimizerEstimatedRowCount,
                                                                                            double optimizerEstimatedCost,
                                                                                            org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup)
                                                                                     throws org.apache.derby.iapi.error.StandardException
Description copied from interface: org.apache.derby.iapi.sql.execute.ResultSetFactory
A DistinctScalarAggregateResultSet computes scalar aggregates when at least one of them is a distinct aggregate. It will compute the aggregates when open.

Specified by:
getDistinctScalarAggregateResultSet in interface org.apache.derby.iapi.sql.execute.ResultSetFactory

getGroupedAggregateResultSet

public org.apache.derby.iapi.sql.execute.NoPutResultSet getGroupedAggregateResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet source,
                                                                                     boolean isInSortedOrder,
                                                                                     int aggregateItem,
                                                                                     int orderItem,
                                                                                     org.apache.derby.iapi.sql.Activation activation,
                                                                                     org.apache.derby.iapi.services.loader.GeneratedMethod rowAllocator,
                                                                                     int maxRowSize,
                                                                                     int resultSetNumber,
                                                                                     double optimizerEstimatedRowCount,
                                                                                     double optimizerEstimatedCost,
                                                                                     org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup)
                                                                              throws org.apache.derby.iapi.error.StandardException
Description copied from interface: org.apache.derby.iapi.sql.execute.ResultSetFactory
A GroupedAggregateResultSet computes non-distinct grouped aggregates. It will compute the aggregates when open.

Specified by:
getGroupedAggregateResultSet in interface org.apache.derby.iapi.sql.execute.ResultSetFactory

getDistinctGroupedAggregateResultSet

public org.apache.derby.iapi.sql.execute.NoPutResultSet getDistinctGroupedAggregateResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet source,
                                                                                             boolean isInSortedOrder,
                                                                                             int aggregateItem,
                                                                                             int orderItem,
                                                                                             org.apache.derby.iapi.sql.Activation activation,
                                                                                             org.apache.derby.iapi.services.loader.GeneratedMethod rowAllocator,
                                                                                             int maxRowSize,
                                                                                             int resultSetNumber,
                                                                                             double optimizerEstimatedRowCount,
                                                                                             double optimizerEstimatedCost,
                                                                                             org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup)
                                                                                      throws org.apache.derby.iapi.error.StandardException
Description copied from interface: org.apache.derby.iapi.sql.execute.ResultSetFactory
A DistinctGroupedAggregateResultSet computes scalar aggregates when at least one of them is a distinct aggregate. It will compute the aggregates when open.

Specified by:
getDistinctGroupedAggregateResultSet in interface org.apache.derby.iapi.sql.execute.ResultSetFactory

getAnyResultSet

public org.apache.derby.iapi.sql.execute.NoPutResultSet getAnyResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet source,
                                                                        org.apache.derby.iapi.sql.Activation activation,
                                                                        org.apache.derby.iapi.services.loader.GeneratedMethod emptyRowFun,
                                                                        int resultSetNumber,
                                                                        int subqueryNumber,
                                                                        int pointOfAttachment,
                                                                        double optimizerEstimatedRowCount,
                                                                        double optimizerEstimatedCost)
                                                                 throws org.apache.derby.iapi.error.StandardException
Description copied from interface: org.apache.derby.iapi.sql.execute.ResultSetFactory
An any result set iterates over its source, returning a row with all columns set to nulls if the source returns no rows.

Specified by:
getAnyResultSet in interface org.apache.derby.iapi.sql.execute.ResultSetFactory

getOnceResultSet

public org.apache.derby.iapi.sql.execute.NoPutResultSet getOnceResultSet(org.apache.derby.iapi.sql.execute.NoPutResultSet source,
                                                                         org.apache.derby.iapi.sql.Activation activation,
                                                                         org.apache.derby.iapi.services.loader.GeneratedMethod emptyRowFun,
                                                                         int cardinalityCheck,
                                                                         int resultSetNumber,
                                                                         int subqueryNumber,
                                                                         int pointOfAttachment,
                                                                         double optimizerEstimatedRowCount,
                                                                         double optimizerEstimatedCost)
                                                                  throws org.apache.derby.iapi.error.StandardException
Description copied from interface: org.apache.derby.iapi.sql.execute.ResultSetFactory
A once result set iterates over its source, raising an error if the source returns > 1 row and returning a row with all columns set to nulls if the source returns no rows.

Specified by:
getOnceResultSet in interface org.apache.derby.iapi.sql.execute.ResultSetFactory

getRowResultSet

public org.apache.derby.iapi.sql.execute.NoPutResultSet getRowResultSet(org.apache.derby.iapi.sql.Activation activation,
                                                                        org.apache.derby.iapi.services.loader.GeneratedMethod row,
                                                                        boolean canCacheRow,
                                                                        int resultSetNumber,
                                                                        double optimizerEstimatedRowCount,
                                                                        double optimizerEstimatedCost,
                                                                        org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup)
Description copied from interface: org.apache.derby.iapi.sql.execute.ResultSetFactory
A row result set forms a result set on a single, known row value. It is used to turn constant rows into result sets for use in the result set paradigm. The row can be constructed when it is requested from the result set.

Specified by:
getRowResultSet in interface org.apache.derby.iapi.sql.execute.ResultSetFactory

getVTIResultSet

public org.apache.derby.iapi.sql.execute.NoPutResultSet getVTIResultSet(org.apache.derby.iapi.sql.Activation activation,
                                                                        org.apache.derby.iapi.services.loader.GeneratedMethod row,
                                                                        int resultSetNumber,
                                                                        org.apache.derby.iapi.services.loader.GeneratedMethod constructor,
                                                                        java.lang.String javaClassName,
                                                                        org.apache.derby.iapi.store.access.Qualifier[][] pushedQualifiers,
                                                                        int erdNumber,
                                                                        boolean version2,
                                                                        boolean reuseablePs,
                                                                        int ctcNumber,
                                                                        boolean isTarget,
                                                                        int scanIsolationLevel,
                                                                        double optimizerEstimatedRowCount,
                                                                        double optimizerEstimatedCost,
                                                                        org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup)
                                                                 throws org.apache.derby.iapi.error.StandardException
Description copied from interface: org.apache.derby.iapi.sql.execute.ResultSetFactory
A VTI result set wraps a user supplied result set.

Specified by: