Examples of CursorManager


Examples of oracle.olapi.data.cursor.CursorManager

   
    try
    {
      // Display the results when the product selection is joined to the
      // short description attribute.
      CursorManager  cursorManager = dp.createCursorManager(results);
      Cursor resultsCursor = cursorManager.createCursor();
      getContext().displayCursor(resultsCursor);
     
      // The rest of the example is in the following method.
      changeParameter(numParam, resultsCursor);
    }
    catch(Exception e)
    {
      // If unsuccessful, display the results without joining to the
      // short description attribute.
      CursorManager  cursorManager = dp.createCursorManager(paramProdSel);
      Cursor resultsCursor = cursorManager.createCursor();
      getContext().displayCursor(resultsCursor);
     
      // The rest of the example is in the following method.
      changeParameter(numParam, resultsCursor);
    }
View Full Code Here

Examples of oracle.olapi.data.cursor.CursorManager

    CursorSpecification rootCursorSpec =
                                cursorMngrSpec.getRootCursorSpecification();
    // Get the default fetch size.
    println("The default fetch size is "
            + rootCursorSpec.getDefaultFetchSize() + ".");
    CursorManager cursorMngr = dp.createCursorManager(cursorMngrSpec);
    Cursor rootCursor = cursorMngr.createCursor();
    rootCursor.setFetchSize(10);
    println("The fetch size is now " + rootCursor.getFetchSize() + ".");
  }
View Full Code Here

Examples of oracle.olapi.data.cursor.CursorManager

    CursorSpecification rootCursorSpec =
                                cursorMngrSpec.getRootCursorSpecification();
    // Get the default fetch size.
    println("The default fetch size is "
            + rootCursorSpec.getDefaultFetchSize() + ".");
    CursorManager cursorMngr = dp.createCursorManager(cursorMngrSpec);
    Cursor rootCursor = cursorMngr.createCursor();
    rootCursor.setFetchSize(10);
    println("The fetch size is now " + rootCursor.getFetchSize() + ".");
  }
View Full Code Here

Examples of oracle.olapi.data.cursor.CursorManager

    CursorSpecification rootCursorSpec =
                                cursorMngrSpec.getRootCursorSpecification();
    // Get the default fetch size.
    println("The default fetch size is "
            + rootCursorSpec.getDefaultFetchSize() + ".");
    CursorManager cursorMngr = dp.createCursorManager(cursorMngrSpec);
    Cursor rootCursor = cursorMngr.createCursor();
    rootCursor.setFetchSize(10);
    println("The fetch size is now " + rootCursor.getFetchSize() + ".");
  }
View Full Code Here

Examples of oracle.olapi.data.cursor.CursorManager

        System.out.println("Cannot commit the current Transaction. " + e);
      }
   
      tp.commitCurrentTransaction();
           
      CursorManager cmngr = dp.createCursorManager(shortDescrForMember);
      ValueCursor valCursor = (ValueCursor) cmngr.createCursor();
           
      String shortDescrForMemberVal = valCursor.getCurrentString();
           
      if(firsttime)
      {
View Full Code Here

Examples of oracle.olapi.data.cursor.CursorManager

    prepareAndCommit();

    // Create the Cursor. The DataProvider is dp.
    CursorManagerSpecification cursorMngrSpec =
                        dp.createCursorManagerSpecification(querySource2);
    CursorManager cursorManager =
                        dp.createCursorManager(cursorMngrSpec);
    Cursor queryCursor2 = cursorManager.createCursor();

    // Get the ValueCursor and the outputs.
    CompoundCursor rootCursor = (CompoundCursor) queryCursor2;
    ValueCursor baseValueCursor = rootCursor.getValueCursor();
    List outputs = rootCursor.getOutputs();
    ValueCursor output1 = (ValueCursor) outputs.get(0);

    String sp6 = "      ";
    String sp7 = sp6 + " ";
    String sp13 = sp6 + sp7;

    // Get the positions and values and display them.
    println("CompoundCursor Output ValueCursor" + "    ValueCursor");
    println("  position      position | value  position | value");
    do
    {
      println(sp6 + rootCursor.getPosition() + // sp6 is 6 spaces
              sp13 + output1.getPosition() + // sp13 is 13 spaces
              sp7 + getLocalValue(output1.getCurrentString()) + // sp7 is 7 spaces
              sp7 + baseValueCursor.getPosition() +
              sp7 + getLocalValue(baseValueCursor.getCurrentString()));
    }
    while(queryCursor2.next());

    cursorManager.close();
  }
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.