Package oracle.AWAction

Examples of oracle.AWAction.BuildDatabase


    // Set the AWConnection to use when building the analytic workspace.
    curInteraction.setConnection(awConnection);

    // Create an BuildDatabase object.
    BuildDatabase myBuild =
             (BuildDatabase)curInteraction.createAction("BUILDDATABASE");

    // Set the name of the analytic workspace.
    myBuild.setAWName(awName);

    // Specify not running solves when building the database.
   
    myBuild.setBuildType("EXECUTE");
    myBuild.setRunSolve(true);
    myBuild.setCleanMeasures(false);
    myBuild.setCleanAttrs(false);
    myBuild.setCleanDim(true);
   
    /**!
     * TrackStatus
     * true只导入增量数据
     * false全数据导入
     */
    myBuild.setTrackStatus(false);
    myBuild.setMaxJobQueues(0);
//    myBuild.setId(MyUUIDGen.getUUID());
   
    Dimension time = new Dimension();
    Dimension media = new Dimension();
    Dimension department = new Dimension();
    time.setId("MYTIME.DIMENSION");
    media.setId("MEDIA.DIMENSION");
    department.setId("DEPARTMENT.DIMENSION");
   
    Cube ems = new Cube();
    ems.setId("EMS.CUBE");

//    myBuild.addBuildList(time);
//    myBuild.addBuildList(media);
//    myBuild.addBuildList(department);
    myBuild.addBuildList(ems);
   
    // To specify a parallel build, set the build type to BACKGROUND.
    // myBuild.setBuildType("BACKGROUND");
   
    // Specify the maximum number of job queues for the parallel build.
    // myBuild.setMaxJobQueues(4);

    // Build the analytic workspace.
    myBuild.Execute();
  }
View Full Code Here


    // Set the AWConnection to use when building the analytic workspace.
    curInteraction.setConnection(awConnection);

    // Create an BuildDatabase object.
    BuildDatabase myBuild =
             (BuildDatabase)curInteraction.createAction("BUILDDATABASE");

    // Set the name of the analytic workspace.
    myBuild.setAWName(awName);

    // Specify not running solves when building the database.
    myBuild.setRunSolve(false);

    // To specify a parallel build, set the build type to BACKGROUND.
    // myBuild.setBuildType("BACKGROUND");
   
    // Specify the maximum number of job queues for the parallel build.
    // myBuild.setMaxJobQueues(4);

    // Build the analytic workspace.
    myBuild.Execute();
  }
View Full Code Here

    // Set the AWConnection to use when building the analytic workspace.
    curInteraction.setConnection(awConnection);

    // Create an BuildDatabase object.
    BuildDatabase myBuild =
             (BuildDatabase)curInteraction.createAction("BUILDDATABASE");

    // Set the name of the analytic workspace.
    myBuild.setAWName(awName);

    // Specify not running solves when building the database.
    myBuild.setRunSolve(false);

    // To specify a parallel build, set the build type to BACKGROUND.
    // myBuild.setBuildType("BACKGROUND");
   
    // Specify the maximum number of job queues for the parallel build.
    // myBuild.setMaxJobQueues(4);

    // Build the analytic workspace.
    myBuild.Execute();
  }
View Full Code Here

        // Set the AWConnection to use when building the analytic workspace.
        curInteraction.setConnection(awConnection);

        // Create an BuildDatabase object.
        BuildDatabase myBuild =
                 (BuildDatabase)curInteraction.createAction("BUILDDATABASE");

        // Set the name of the analytic workspace.
        myBuild.setAWName(WebVariable.AW_GLOBAL_ID);//挂载分析空间global.global

        // Specify not running solves when building the database.
       
        myBuild.setBuildType("EXECUTE");
//        myBuild.setRunSolve(true);
        myBuild.setCleanMeasures(false);
        myBuild.setCleanAttrs(false);
        myBuild.setCleanDim(true);
        myBuild.setTrackStatus(true);
       
//        myBuild.setId("simple");
        /**!
         * TrackStatus
         * true只导入增量数据
         * false全数据导入
         */
//        myBuild.setTrackStatus(isFull);
        myBuild.setMaxJobQueues(0);
        if(dims!=null){
          for(String dimid:dims){
            Dimension dim = new Dimension();
            dim.setId(dimid);
            myBuild.addBuildList(dim);
          }
        }
        if(cubes!=null){
          for(String cubeid:cubes){
            Cube cube = new Cube();
            cube.setId(cubeid);
            myBuild.addBuildList(cube);
          }
        }
       
        myBuild.Execute();
        awConnection.executeCommand("aw detach "+WebVariable.AW_GLOBAL_ID);
        result.setSucceed(getOLAPLog(conn));
        awConnection.close();
        conn.close();
       
View Full Code Here

        // Set the AWConnection to use when building the analytic workspace.
        curInteraction.setConnection(awConnection);

        // Create an BuildDatabase object.
        BuildDatabase myBuild =
                 (BuildDatabase)curInteraction.createAction("BUILDDATABASE");

        // Set the name of the analytic workspace.
        myBuild.setAWName(WebVariable.AW_GLOBAL_ID);//挂载分析空间global.global

        // Specify not running solves when building the database.
       
        myBuild.setBuildType("EXECUTE");
        myBuild.setRunSolve(true);
       
        if(solveGroups!=null)
        {
          for(String solveGroupid:solveGroups)
          {
            SolveGroup solveGroup = new SolveGroup();//计算计划属于SolveGroup型
            solveGroup.setId(solveGroupid);
            myBuild.addBuildList(solveGroup);
          }
        }
        myBuild.Execute();
        awConnection.executeCommand("aw detach "+WebVariable.AW_GLOBAL_ID);
        result.setSucceed(getOLAPLog(conn));
        awConnection.close();
        conn.close();
    }
View Full Code Here

TOP

Related Classes of oracle.AWAction.BuildDatabase

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.