Package oracle.olapi.data.cursor

Examples of oracle.olapi.data.cursor.Cursor


                                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


  {
        CursorManagerSpecification cursorMngrSpec =
                dp.createCursorManagerSpecification(source);
        SpecifiedCursorManager cursorManager =
                dp.createCursorManager(cursorMngrSpec);
        Cursor cursor = cursorManager.createCursor();
       
        cpw.printCursor(cursor, displayLocVal);
       
        // Close the CursorManager.
        cursorManager.close();
View Full Code Here

    // Create a Cursor.
    CursorManagerSpecification cMngrSpec =
            getExpressDataProvider().createCursorManagerSpecification(result);
    SpecifiedCursorManager  spCMngr =
            getExpressDataProvider().createCursorManager(cMngrSpec);
    Cursor resultsCursor = spCMngr.createCursor();
                                 
    // Display the results.
    getContext().displayCursor(resultsCursor, true);
                                 
    //Reset the Cursor position to 1;
    resultsCursor.setPosition(1);
                                 
    //Change the value of the parameterized Source.
    measParam.setValue(unitPriceID);
                                 
    // Using the same Cursor, display the results again.
View Full Code Here

      Source levelSrcWithShortDescr = prodShortLabel.join(levelSrc);
      MdmAttribute mdmTimeHierParentAttr = mdmTimeHier.getParentAttribute();
      Source prodHierParentAttr = mdmTimeHierParentAttr.getSource();
      Source timeHierChildren = timeHier.join(prodHierParentAttr,
          timeHier.value());
      Cursor queryCursor = getCursor(context,levelSrcWithShortDescr);
      List<LazyDynaBean> result = convertDimensionShortDescCursor2List(queryCursor);
     
     
      for(int yeari=0;result!=null&&yeari<result.size();yeari++){
        LazyDynaBean yearbean = result.get(yeari);
View Full Code Here

//    context.prepareAndCommit();
//    ExpressDataProvider dp = context.getExpressDataProvider();
//      CursorManagerSpecification cursorMngrSpec = dp.createCursorManagerSpecification(measureSource);
//      SpecifiedCursorManager cursorMngr =
//        dp.createCursorManager(cursorMngrSpec);
      Cursor queryCursor = getCursor(context,measureSource);
      List<LazyDynaBean> result = convertCursor2List(queryCursor,dimensionNames,measure);
      context.closeContext();
      return result;
  }
View Full Code Here

    context.prepareAndCommit();
    ExpressDataProvider dp = context.getExpressDataProvider();
      CursorManagerSpecification cursorMngrSpec = dp.createCursorManagerSpecification(source);
      SpecifiedCursorManager cursorMngr =
        dp.createCursorManager(cursorMngrSpec);
      Cursor queryCursor = cursorMngr.createCursor();
      return queryCursor;
  }
View Full Code Here

          ldb.set("text", valueCursor.getCurrentValue());
        }
        
        List<Cursor> oList = compoundCursor.getOutputs();
        for(int i=0;i<oList.size();i++){
          Cursor cursor = oList.get(i);
          if(cursor instanceof ValueCursor){
            valueCursor = (ValueCursor)cursor;
            if(valueCursor.hasCurrentValue()){
              ldb.set("id", valueCursor.getCurrentValue());
              result.add(ldb);
View Full Code Here

        }
        
        List<Cursor> oList = compoundcursor.getOutputs();
        if(oList!=null&&dimNames!=null&&oList.size()==dimNames.size()){
          for(int i=0;i<oList.size();i++){
            Cursor cursor = oList.get(i);
            if(cursor instanceof CompoundCursor){
              CompoundCursor compoundCursor = (CompoundCursor)cursor;
              setBeanAttribute(ldb,dimNames.get(i),compoundCursor);
            }
          }
View Full Code Here

    ValueCursor value = compoundCursor.getValueCursor();
    if(value.hasCurrentValue()){
      bean.set(name, value.getCurrentValue());
      List<Cursor> outputs = compoundCursor.getOutputs();
      if(outputs!=null&&outputs.size()==1){
        Cursor output = outputs.get(0);
        if(output instanceof ValueCursor){
          ValueCursor outputValue = (ValueCursor)output;
          bean.set(name+"ID", outputValue.getCurrentString());
        }
      }
    }else{
      List<Cursor> outputs = compoundCursor.getOutputs();
      if(outputs!=null&&outputs.size()==1){
        Cursor output = outputs.get(0);
        if(output instanceof ValueCursor){
          ValueCursor outputValue = (ValueCursor)output;
          String outString = outputValue.getCurrentString();
          Log.error(outString+" has no short description");
          if(outString.indexOf("::") > 0)
View Full Code Here

    // Create a Cursor.
    CursorManagerSpecification cMngrSpec =
                            dp.createCursorManagerSpecification(result);
    SpecifiedCursorManager  spCMngr = dp.createCursorManager(cMngrSpec);
    Cursor resultCursor = spCMngr.createCursor();

    // Display the results.
    getContext().displayCursor(resultCursor);

    //Reset the Cursor position to 1.
     resultCursor.setPosition(1);

     //Change the value of the parameterized Source.
     startParam.setValue(7);
     endParam.setValue(12);
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.