Package com.gentics.api.lib.datasource.Datasource

Examples of com.gentics.api.lib.datasource.Datasource.Sorting


        // second is the direction
        String[] sort = sortingArray[i].split(":");

        if (sort[0] != null) {
          if ("asc".equals(sort[1].toLowerCase())) {
            sortingColl.add(new Sorting(sort[0], Datasource.SORTORDER_ASC));
          } else if ("desc".equals(sort[1].toLowerCase())) {
            sortingColl.add(new Sorting(sort[0], Datasource.SORTORDER_DESC));
          } else {
            sortingColl.add(new Sorting(sort[0], Datasource.SORTORDER_NONE));
          }
        }
      }
    }
View Full Code Here


        // second is the direction
        String[] sort = sortingArray[i].split(":");

        if (sort[0] != null) {
          if ("asc".equals(sort[1].toLowerCase())) {
            sortingColl.add(new Sorting(sort[0], Datasource.SORTORDER_ASC));
          } else if ("desc".equals(sort[1].toLowerCase())) {
            sortingColl.add(new Sorting(sort[0], Datasource.SORTORDER_DESC));
          } else {
            sortingColl.add(new Sorting(sort[0], Datasource.SORTORDER_NONE));
          }
        }
      }
    }
    return sortingColl.toArray(ret);
View Full Code Here

TOP

Related Classes of com.gentics.api.lib.datasource.Datasource.Sorting

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.