Package oracle.olapi.data.source

Examples of oracle.olapi.data.source.CustomModel


    // Create a Cursor for the query and display the values of the Cursor.
    println("The values using extract method are:");
    getContext().displayResult(resultUsingExtract);
                            
    // Produce the same result using a CustomModel directly.
    CustomModel customModel = dp.createModel(sourceListSrc);
    customModel.assign(unitPrice.getID(), unitPrice);
    customModel.assign(unitCost.getID(), unitCost);
    customModel.assign(calculation.getID(), calculation);
                            
    Source measValForSrc = customModel.createSolvedSource();
                            
    // Join Source objects that match the inputs of the solved Source produced by
    // the CustomModel.
    Source resultUsingCustomModel =
                measValForSrc.join(sourceListSrc)
                             .join(prodSel)
                             .join(calendar, "CALENDAR_YEAR_AW::MONTH_AW::47");
                            
    prepareAndCommit();
    println("The values of using a CustomModel directly, with the Source IDs");
    println("as the qualifications are:");
    getContext().displayResult(resultUsingCustomModel);
                            
    // Create a list Source that has String objects as its element values.
    Source stringListSrc = dp.createListSource(new String[] {"price",
                                                             "cost",
                                                             "markup"});
                                        
    // Create a CustomModel for the list Source.
    CustomModel  customModel2 = dp.createModel(stringListSrc);
    customModel2.assign("price", unitPrice);
    customModel2.assign("cost", unitCost);
    customModel2.assign("markup", calculation);
                                        
    Source measValForSrc2 = customModel2.createSolvedSource();
                                        
    Source resultUsingCustomModel2 =
               measValForSrc2.join(stringListSrc)
                             .join(prodSel)
                             .join(calendar, "CALENDAR_YEAR_AW::MONTH_AW::47");
View Full Code Here

TOP

Related Classes of oracle.olapi.data.source.CustomModel

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.