Package co.nubetech.crux.model

Examples of co.nubetech.crux.model.RowAliasFilter


            cAlias2.setColumnFamily("cf");
            cAlias2.setQualifier("qualifier1");
            cAlias2.setValueType(valueType3);
            mapping.addColumnAlias(cAlias2);

            RowAliasFilter rowFilter = new RowAliasFilter();
            FilterType filter = new FilterType();
            filter.setType("Greater Than Equals");
            rowFilter.setFilterType(filter);
            rowFilter.setRowAlias(rAlias3);
            rowFilter.setValue("I am a String17");

            ArrayList<RowAliasFilter> filters = new ArrayList<RowAliasFilter>();
            filters.add(rowFilter);
            report.setRowAliasFilters(filters);
           
View Full Code Here


            cAlias2.setColumnFamily("cf");
            cAlias2.setQualifier("qualifier1");
            cAlias2.setValueType(valueType3);
            mapping.addColumnAlias(cAlias2);

            RowAliasFilter rowFilter = new RowAliasFilter();
            FilterType filter = new FilterType();
            filter.setType("Greater Than Equals");
            rowFilter.setFilterType(filter);
            rowFilter.setRowAlias(rAlias3);
            rowFilter.setValue("I am a String17");

            ArrayList<RowAliasFilter> filters = new ArrayList<RowAliasFilter>();
            filters.add(rowFilter);
            report.setRowAliasFilters(filters);
           
View Full Code Here

            mapping.addColumnAlias(cAlias2);

            FilterType filter1 = new FilterType();
        filter1.setType("Greater Than Equals");

        RowAliasFilter rowFilter1 = new RowAliasFilter();
        rowFilter1.setFilterType(filter1);
        rowFilter1.setRowAlias(rAlias1);
        rowFilter1.setValue("15");

        FilterType filter2 = new FilterType();
        filter2.setType("Equals");

        RowAliasFilter rowFilter2 = new RowAliasFilter();
        rowFilter2.setFilterType(filter2);
        rowFilter2.setRowAlias(rAlias2);
        rowFilter2.setValue("12");
       
        FilterType filter3 = new FilterType();
        filter3.setType("Less Than");

        RowAliasFilter rowFilter3 = new RowAliasFilter();
        rowFilter3.setFilterType(filter3);
        rowFilter3.setRowAlias(rAlias1);
        rowFilter3.setValue("20");

        ArrayList<RowAliasFilter> filters = new ArrayList<RowAliasFilter>();
        filters.add(rowFilter1);
        //filters.add(rowFilter2);
        filters.add(rowFilter3);
View Full Code Here

            mapping.addColumnAlias(cAlias2);

            FilterType filter1 = new FilterType();
        filter1.setType("Greater Than Equals");

        RowAliasFilter rowFilter1 = new RowAliasFilter();
        rowFilter1.setFilterType(filter1);
        rowFilter1.setRowAlias(rAlias1);
        rowFilter1.setValue("15");

        FilterType filter2 = new FilterType();
        filter2.setType("Equals");

        RowAliasFilter rowFilter2 = new RowAliasFilter();
        rowFilter2.setFilterType(filter2);
        rowFilter2.setRowAlias(rAlias2);
        rowFilter2.setValue("12");
       
        FilterType filter3 = new FilterType();
        filter3.setType("Less Than");

        RowAliasFilter rowFilter3 = new RowAliasFilter();
        rowFilter3.setFilterType(filter3);
        rowFilter3.setRowAlias(rAlias1);
        rowFilter3.setValue("20");

        ArrayList<RowAliasFilter> filters = new ArrayList<RowAliasFilter>();
        filters.add(rowFilter1);
        //filters.add(rowFilter2);
        filters.add(rowFilter3);
View Full Code Here

    RowAlias alias1 = new RowAlias();
    alias1.setAlias("alias");
    alias1.setValueType(valueType1);
    alias1.setLength(8);
   
    RowAliasFilter rowFilter1 = new RowAliasFilter();
    rowFilter1.setFilterType(type1);
    rowFilter1.setValue("123");
    rowFilter1.setRowAlias(alias1);
   
    FilterType type2 = new FilterType();
    type2.setType("Equals");

    ValueType valueType2 = new ValueType();
    valueType2.setClassName("java.lang.String");
   
    RowAlias alias2 = new RowAlias();
    alias2.setAlias("alias");
    alias2.setValueType(valueType2);
    alias2.setLength(5);
   
    RowAliasFilter rowFilter2 = new RowAliasFilter();
    rowFilter2.setFilterType(type2);
    rowFilter2.setValue("SSSSS");
    rowFilter2.setRowAlias(alias2);
   
    RowAlias alias3 = new RowAlias();
    alias3.setAlias("alias3");
   
    RowAliasFilter rowFilter3 = new RowAliasFilter();
    rowFilter3.setFilterType(type2);
    rowFilter3.setValue("SSSSS");
    rowFilter3.setRowAlias(alias3);
   
    ArrayList<RowAliasFilter> greaterFilters = new ArrayList<RowAliasFilter>();
    greaterFilters.add(rowFilter1);
   
    ArrayList<RowAliasFilter> lesserFilters = new ArrayList<RowAliasFilter>();
View Full Code Here

    RowAlias alias1 = new RowAlias();
    alias1.setAlias("alias");
    alias1.setValueType(valueType1);
    alias1.setLength(8);
   
    RowAliasFilter rowFilter1 = new RowAliasFilter();
    rowFilter1.setFilterType(type1);
    rowFilter1.setValue("123");
    rowFilter1.setRowAlias(alias1);
   
    RangeFilters range = new RangeFilters();
    assertFalse(range.contains(rowFilter1));
   
  }
View Full Code Here

    FilterHelper.isEqualsFilter(null);
  }

  @Test
  public void testIsEqualsFilterEq() throws CruxException {
    RowAliasFilter filter = new RowAliasFilter();
    FilterType type = new FilterType();
    type.setType("Equals");
    filter.setFilterType(type);
    assertTrue(FilterHelper.isEqualsFilter(filter));
  }
View Full Code Here

    assertTrue(FilterHelper.isEqualsFilter(filter));
  }
 
  @Test
  public void testIsNotEqualsFilterEq() throws CruxException {
    RowAliasFilter filter = new RowAliasFilter();
    FilterType type = new FilterType();
    type.setType("Not Equals");
    filter.setFilterType(type);
    assertFalse(FilterHelper.isEqualsFilter(filter));
  }
View Full Code Here

  @Test
  public void testFirstRowFilterNull() {
    RowAlias rowAlias = new RowAlias();
    rowAlias.setId(1);
    RowAliasFilter rowFilter = new RowAliasFilter(new Report(), new FilterType(),
        "value", rowAlias);
    RowFilterComparator rowFilterComparator = new RowFilterComparator();
    int result = rowFilterComparator.compare(null, rowFilter);
    assertEquals(-1, result);
  }
View Full Code Here

  @Test
  public void testSecondRowFilterNull() {
    RowAlias rowAlias = new RowAlias();
    rowAlias.setId(1);
    RowAliasFilter rowFilter = new RowAliasFilter(new Report(), new FilterType(),
        "value", rowAlias);
    RowFilterComparator rowFilterComparator = new RowFilterComparator();
    int result = rowFilterComparator.compare(rowFilter, null);
    assertEquals(1, result);
  }
View Full Code Here

TOP

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

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.