Package oracle.olapi.data.cursor

Examples of oracle.olapi.data.cursor.Cursor


      // Informal example in the "Positions of a ValueCursor" section.
      productSelVal(prodSel);

      // Create a Cursor for querySource.
      Cursor queryCursor = creatingACursor(querySource);

      // The Setting the CompoundCursor Position and Getting the
      // Current Values example.
      settingTheCCPosAndGettingTheCurrentVals(queryCursor);
View Full Code Here


    prepareAndCommit();
    CursorManagerSpecification cursorMngrSpec =
                dp.createCursorManagerSpecification(querySource);
    SpecifiedCursorManager cursorMngr =
                dp.createCursorManager(cursorMngrSpec);
    Cursor queryCursor = cursorMngr.createCursor();

    // Use the Cursor in some way, such as to display its values.
    getContext().displayCursor(queryCursor);
   
    return queryCursor;
View Full Code Here

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

Related Classes of oracle.olapi.data.cursor.Cursor

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.