Package com.sishuok.es.common.repository.callback

Examples of com.sishuok.es.common.repository.callback.DefaultSearchCallback


        searchable.setPage(0, 2);
        searchable.addSort(Sort.Direction.DESC, "id");


        SearchCallback customCallback = new DefaultSearchCallback() {
            @Override
            public void prepareQL(StringBuilder ql, Searchable search) {
                //默认的
                super.prepareQL(ql, search);
                //自定义的
View Full Code Here


        searchable.setPage(0, 2);
        searchable.addSort(Sort.Direction.DESC, "id");


        SearchCallback customCallback = new DefaultSearchCallback() {
            @Override
            public void prepareQL(StringBuilder ql, Searchable search) {
                //不调用默认的
                if (search.containsSearchKey("id_lt")) {
                    ql.append(" and id < :id");
View Full Code Here

        searchable.setPage(0, 2);
        searchable.addSort(Sort.Direction.DESC, "id");


        SearchCallback customCallback = new DefaultSearchCallback() {
            @Override
            public void prepareQL(StringBuilder ql, Searchable search) {
                //默认的
                super.prepareQL(ql, search);
                //自定义的
View Full Code Here

        searchable.setPage(0, 2);
        searchable.addSort(Sort.Direction.DESC, "id");


        SearchCallback customCallback = new DefaultSearchCallback() {
            @Override
            public void prepareQL(StringBuilder ql, Searchable search) {
                //不调用默认的
                if (search.containsSearchKey("id_lt")) {
                    ql.append(" and id < :id");
View Full Code Here

TOP

Related Classes of com.sishuok.es.common.repository.callback.DefaultSearchCallback

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.