Package oracle.olapi.data.cursor

Examples of oracle.olapi.data.cursor.ValueCursor


    CursorManagerSpecification cursorMngrSpec =
           dp.createCursorManagerSpecification(prodSel);
    SpecifiedCursorManager cursorMngr =
                dp.createCursorManager(cursorMngrSpec);
    ValueCursor prodSelValCursor = (ValueCursor) cursorMngr.createCursor();

    // prodSelValCursor is the ValueCursor for prodSel
    println("ValueCursor Position  Value ");
    println("--------------------  ------------------------ ");
    do
    {
      println("          " + prodSelValCursor.getPosition() +
              "           " + prodSelValCursor.getCurrentValue());
    }
    while(prodSelValCursor.next());

    prodSelValCursor.setPosition(2);
    println("The current position is " + prodSelValCursor.getPosition());
    println(prodSelValCursor.getCurrentString());

    cursorMngr.close();
   }
View Full Code Here


  {
    println("\nSetting the CompoundCursor Position and Getting the " +
            "Current Values");

    CompoundCursor rootCursor = (CompoundCursor) queryCursor;
    ValueCursor baseValueCursor = rootCursor.getValueCursor();
    List outputs = rootCursor.getOutputs();
    ValueCursor output1 = (ValueCursor) outputs.get(0);
    ValueCursor output2 = (ValueCursor) outputs.get(1);
    int pos = 5;
    rootCursor.setPosition(pos);
    println("CompoundCursor position set to " + pos + ".");
    println("The current position of the CompoundCursor is " +
             rootCursor.getPosition() + ".");
    println("Output 1 position is " + output1.getPosition() +
            ", value = " + output1.getCurrentValue());
    println("Output 2 position is " + output2.getPosition() +
            ", value = " + output2.getCurrentValue());
    println("VC position is " + baseValueCursor.getPosition() +
            ", value = " + baseValueCursor.getCurrentValue());
  }
View Full Code Here

                        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());
View Full Code Here

TOP

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

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.