Examples of ExecutionFactory


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

          concurrencyOfThisResultSet = JDBC20Translation.CONCUR_UPDATABLE;
    }

    // Fill in the column types
    resultDescription = theResults.getResultDescription();
    final ExecutionFactory factory = conn.getLanguageConnection().
      getLanguageConnectionFactory().getExecutionFactory();
    final int columnCount = getMetaData().getColumnCount();
    this.currentRow = factory.getValueRow(columnCount);
    this.columnNameMap = null;
    currentRow.setRowArray(null);

    // Only incur the cost of allocating and maintaining
    // updated column information if the columns can be updated.
    if (concurrencyOfThisResultSet == JDBC20Translation.CONCUR_UPDATABLE)
    {
      //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

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

    // push the context that defines our class factory
    pushClassFactoryContext(cm, lcf.getClassFactory());

    // we also need to push an execution context.
    ExecutionFactory ef = lcf.getExecutionFactory();

    ef.newExecutionContext(cm);
    //
    //Initialize our language connection context. Note: This is
    //a bit of a hack. Unfortunately, we can't initialize this
    //when we push it. We first must push a few more contexts.
    lctx.initialize(true);   
View Full Code Here

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

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

    // push the context that defines our class factory
    pushClassFactoryContext(cm, lcf.getClassFactory());

    // we also need to push an execution context.
    ExecutionFactory ef = lcf.getExecutionFactory();

    ef.newExecutionContext(cm);
    //
    //Initialize our language connection context. Note: This is
    //a bit of a hack. Unfortunately, we can't initialize this
    //when we push it. We first must push a few more contexts.
    lctx.initialize(true);   
View Full Code Here

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

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

    // 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

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

                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

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

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

  /**
    @exception T_Fail test failed.
  */
  protected void runTests() throws T_Fail
  {
    ExecutionFactory f = null;
    boolean pass = false;
    didFAIL = false;

        out.println(testService+" underway");

View Full Code Here

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

          concurrencyOfThisResultSet = JDBC20Translation.CONCUR_UPDATABLE;
    }

    // Fill in the column types
    resultDescription = theResults.getResultDescription();
    final ExecutionFactory factory = conn.getLanguageConnection().
      getLanguageConnectionFactory().getExecutionFactory();
    final int columnCount = resultDescription.getColumnCount();
    this.currentRow = factory.getValueRow(columnCount);
    currentRow.setRowArray(null);

    // Only incur the cost of allocating and maintaining
    // updated column information if the columns can be updated.
    if (concurrencyOfThisResultSet == JDBC20Translation.CONCUR_UPDATABLE)
    {
      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
TOP
Copyright © 2018 www.massapi.com. 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.