Package co.nubetech.crux.model

Examples of co.nubetech.crux.model.Alias


  public static Object getObjectValue(Result result, Alias alias) {
    return getValue(getValue(result, alias), alias);
  }
 
  public static Alias getAlias(ReportDesign design) {
    Alias alias = design.getRowAlias();
    logger.debug("The ReportDesign " + design + " has the row alias " + alias);
     if (alias == null) {
       alias = design.getColumnAlias();
       logger.debug("The ReportDesign " + design + " has the col alias " + alias);
     }
View Full Code Here


           for (ReportDesign design: designs) {
             //get each value and apply functions
             Stack<CruxFunction> designFn = functions.get(index++);
             //convert and apply
             //see if the design is on row or column alias
             Alias alias = ServerUtil.getAlias(design);
             value = ServerUtil.getValue(results, alias);
             FunctionUtil.applyAggregateFunctions(value, designFn);          
           }          
        }
        while (hasMoreRows);  
View Full Code Here

  public void testGetRowAlias() {
    Report report = TestingUtil.getReportWithoutAggregateFunctions();
    ReportDesign rowDesign = report.getDesigns().get(0);
   
    System.out.println("Getting alias for " + rowDesign);
    Alias rowAlias = ServerUtil.getAlias(rowDesign);
    assertEquals("rowAlias", rowAlias.getAlias());
    assertEquals("co.nubetech.crux.model.RowAlias",
        rowAlias.getClass().getName());   
   
  }
View Full Code Here

TOP

Related Classes of co.nubetech.crux.model.Alias

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.