Package org.mybatis.pagination.dto.datatables

Examples of org.mybatis.pagination.dto.datatables.SortField


            sSortDir = httpRequest.getParameter(S_SORT_DIR + colCount);
            sColName = httpRequest.getParameter(S_DATA_PROP + sSortCol);
            sColName = humpSplit
                    ? CaseFormat.LOWER_CAMEL.to(CaseFormat.LOWER_UNDERSCORE, sColName)
                    : sColName;
            sortFields.add(new SortField(sColName, sSortDir));
        }
        return sortFields;
    }
View Full Code Here


    @Test
    public void testPagainationAndOrder() throws Exception {

        List<SortField> sortFields = Lists.newArrayList();
        sortFields.add(new SortField("name", SortDirection.DESC));
        sortFields.add(new SortField("path", SortDirection.ASC));

        PagingCriteria baseCriteria = PagingCriteria.createCriteriaWithSort(20, 15, 15, sortFields);
        PageMyBatis<Resources> pageMyBatis = resourcesMapper.selectByPage(baseCriteria);
        for (Resources pageMyBati : pageMyBatis) {
            System.out.println(pageMyBati);
View Full Code Here

TOP

Related Classes of org.mybatis.pagination.dto.datatables.SortField

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.