Package org.apache.derby.iapi.sql.execute

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


    return constantActionFactory;
  }

  public  final  ExecutionFactory  getExecutionFactory()
  {
    ExecutionFactory  ef = getLanguageConnectionContext().getLanguageConnectionFactory().getExecutionFactory();

    return ef;
  }
View Full Code Here


      int numCols = allCols.getNumBitsSet();
      baseColumnMap = new int[numCols];

      if (compactRow == null)
      {
        ExecutionFactory ex = lcc.getExecutionContext().getExecutionFactory();

        if (isKeyed)
        {
          compactRow = ex.getIndexableRow(numCols);
        }
        else
        {
          compactRow = ex.getValueRow(numCols);
        }
      }

      int position = 0;
      for (int i = allCols.anySetBit();
View Full Code Here

    // Only incur the cost of allocating and maintaining
    // updated column information if the columns can be updated.
    if (concurrencyOfThisResultSet == java.sql.ResultSet.CONCUR_UPDATABLE)
    {
            final int columnCount = resultDescription.getColumnCount();
            final ExecutionFactory factory = conn.getLanguageConnection().
            getLanguageConnectionFactory().getExecutionFactory();
           
      try{
        //initialize arrays related to updateRow implementation
        columnGotUpdated = new boolean[columnCount];
        updateRow = factory.getValueRow(columnCount);
        for (int i = 1; i <= columnCount; i++) {
          updateRow.setColumn(i, resultDescription.getColumnDescriptor(i).
                    getType().getNull());
        }
        initializeUpdateRowModifiers();
View Full Code Here

      int numCols = accessedCols.getNumBitsSet();
      baseColumnMap = new int[numCols];

      if (compactRow == null)
      {
        ExecutionFactory ex = getLanguageConnectionContext().getLanguageConnectionFactory().getExecutionFactory();

        if (isKeyed)
        {
          compactRow = ex.getIndexableRow(numCols);
        }
        else
        {
          compactRow = ex.getValueRow(numCols);
        }
      }

      int position = 0;
      for (int i = accessedCols.anySetBit();
View Full Code Here

                if (lcc.getRunTimeStatisticsMode())
        {  
                    endExecutionTime = getCurrentTimeMillis();

                    // get the ResultSetStatisticsFactory, which gathers RuntimeStatistics
                    ExecutionFactory ef = lcc.getLanguageConnectionFactory().getExecutionFactory();
                    ResultSetStatisticsFactory rssf;
                    rssf = ef.getResultSetStatisticsFactory();
 
                    // get the RuntimeStatisticsImpl object which is the wrapper for all
                    // gathered statistics about all the different resultsets
                    RunTimeStatistics rsImpl = rssf.getRunTimeStatistics(activation, this, subqueryTrackingArray);
 
                    // save the RTW (wrapper)object in the lcc
                    lcc.setRunTimeStatisticsObject(rsImpl);
                   
                    // now explain gathered statistics, using an appropriate visitor
                    XPLAINVisitor visitor = ef.getXPLAINFactory().getXPLAINVisitor();
                    visitor.doXPLAIN(rsImpl,activation);
          }

      int staLength = (subqueryTrackingArray == null) ? 0 :
                subqueryTrackingArray.length;
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.sql.execute.ExecutionFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.