Package co.nubetech.crux.model

Examples of co.nubetech.crux.model.GroupBy


      alias.setId(99999);
     
      RowAlias alias1 = new RowAlias();
      alias1.setId(19999);
     
      GroupBy groupBy = createGroupBy(1, alias);
      GroupBy groupBy1 = createGroupBy(2, alias1);
      List<GroupBy> groupByList = new ArrayList<GroupBy>();
      groupByList.add(groupBy);
      groupByList.add(groupBy1);
     
      Report report = new Report();
View Full Code Here


      }
     
      RowAlias alias = new RowAlias();
      alias.setId(99999);
     
      GroupBy groupBy1 = createGroupBy(2, alias);
     
      groupBys.getGroupBy().add(groupBy1);
      id = dao.save(groupBys);
     
      assertEquals(id, groupBys.getId());
View Full Code Here

   
  }

 
  public GroupBy createGroupBy(int position, RowAlias alias) {
    GroupBy groupBy = new GroupBy();
    groupBy.setRowAlias(alias);
    groupBy.setPosition(position);
    return groupBy;
  }
View Full Code Here

  public void populateGroupBys(Map<String, RowAlias> hashRowAlias) throws CruxException{
    List<GroupBy> groupByList = new ArrayList<GroupBy>();
    for(GroupBysView groupBysView : groupBysViewList){
      if (hashRowAlias.containsKey(groupBysView.getAlias())) {
        RowAlias rowAlias = hashRowAlias.get(groupBysView.getAlias());
        GroupBy groupBy = new GroupBy();
        groupBy.setRowAlias(rowAlias);
        groupBy.setPosition(groupBysView.getIndex());
        groupByList.add(groupBy);     
        logger.debug("groupBy:" + groupBy);
      }
     
    }
View Full Code Here

    rowAliasMap.put("rowAlias2", rowAlias2);
   
   
    mapping.setRowAlias(rowAliasMap);
   
    GroupBy groupBy1 = new GroupBy(111l, rowAlias1, 1);
    GroupBy groupBy2 = new GroupBy(112l, rowAlias2, 2);
   
   
    List<GroupBy> groupByList = new ArrayList<GroupBy>();
    groupByList.add(groupBy1);
    groupByList.add(groupBy2);
View Full Code Here

   
    RowAlias alias1 = new RowAlias();
    alias1.setId(19999);
   
    List<GroupBy> groupByList = new ArrayList<GroupBy>();
    GroupBy groupBy = new GroupBy();
   
    groupBy.setRowAlias(alias);
    groupBy.setPosition(1);
   
    GroupBy groupBy1 = new GroupBy();
   
    groupBy1.setRowAlias(alias1);
    groupBy1.setPosition(2);
   
    groupByList.add(groupBy);
    groupByList.add(groupBy1);
    groupBys.setGroupBy(groupByList);
    groupBys.setReport(report);
View Full Code Here

TOP

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

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.