Package org.internna.iwebmvc.model.ui

Examples of org.internna.iwebmvc.model.ui.Sort


        filterList.add(new Filter());
        filterList.get(0).setType("COLLECTION");
        filterList.get(0).setPath("xxx");
        filterList.get(0).setFrom("00aa00aa00aa00aa00aa00aa00aa00aa");
        assertEquals("SELECT e FROM Link e WHERE ( :xxx IN ELEMENTS (e.xxx) )", impl.getQuery(Link.class, filterList, null).trim());
        Sort sort = new Sort();
        sort.setAttribute("xxx");
        assertEquals("SELECT e FROM Link e WHERE ( :xxx IN ELEMENTS (e.xxx) ) ORDER BY e.xxx", impl.getQuery(Link.class, filterList, sort).trim());
        sort.setDescending(true);
        filterList.get(0).setInvert(true);
        assertEquals("SELECT e FROM Link e WHERE ( :xxx NOT IN ELEMENTS (e.xxx) ) ORDER BY e.xxx DESC", impl.getQuery(Link.class, filterList, sort).trim());
        filterList.get(0).setNullValue(true);
        assertEquals("SELECT e FROM Link e WHERE ( e.xxx != NULL ) ORDER BY e.xxx DESC", impl.getQuery(Link.class, filterList, sort).trim());
    }
View Full Code Here

TOP

Related Classes of org.internna.iwebmvc.model.ui.Sort

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.