Package com.scooterframework.orm.misc

Examples of com.scooterframework.orm.misc.JdbcPageListSource


    public static Paginator jdbcPaginator(Class<? extends ActiveRecord> modelClass, Map<String, String> pagingOptions, Map<String, String> sqlOptions) {
      Map<String, String> pagingOptionsMerged = Converters.convertMapToMapSS(ACH.getAC().getParameterDataAsMap());
      if (pagingOptions != null) {
        pagingOptionsMerged.putAll(pagingOptions);
      }
      return new Paginator(new JdbcPageListSource(modelClass, sqlOptions), pagingOptionsMerged);
    }
View Full Code Here


   
    public String paged_list() {
        String model = getModel();
        ActiveRecord recordHome = generateActiveRecordHomeInstance(model);
        Map<String, Object> requestParametersMap = ACH.getAC().getParameterDataAsMap();
        Paginator page = new Paginator(new JdbcPageListSource(recordHome.getClass()), requestParametersMap);
        setViewData("paged_" + model + "_list", page);
        return ActionResult.forwardTo(viewPath("paged_list"));
    }
View Full Code Here

      pagingControl.put(Paginator.key_offset, options.get(ActiveRecordConstants.key_offset));
   
    if (options.containsKey(ActiveRecordConstants.key_page))
      pagingControl.put(Paginator.key_npage, options.get(ActiveRecordConstants.key_page));
   
    return new Paginator(new JdbcPageListSource(modelClass, inputOptions), pagingControl);
  }
View Full Code Here

TOP

Related Classes of com.scooterframework.orm.misc.JdbcPageListSource

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.