All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sourceforge.web.easyui.PivotPage Maven / Gradle / Ivy

Go to download

本项目主要弥补在使用mybatis3+springmvc+jquery easyui快速搭建web应用系统是遇到的框架不足. 主要工作包括: 1,扩展了ApplicationContextAware,通过单例注入spring容器,提供spring容器外的bean获取方法 2,扩展了apache shiro框架,统一了安全结构 3,扩展了mybatis3拦截器,在两个拦截器中自动完成分页注入,实现内存分页。 4,分页设计数据库方言 5,提供了一个easyuigrid的模型 6,提供了java泛型的jstl 7, xml工具包等一些小工具

The newest version!
package net.sourceforge.web.easyui;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import net.sourceforge.orm.mybatis.Page;

/**
 * 增强版的分页器,带查询参数,过滤参数,排序等等
 * 
 * @author Alex
 *
 * @param 
 */
public class PivotPage extends Page {
	private Map criteriaParams = new HashMap();
	private Map sortParam = new LinkedHashMap();
	private List filterRule = new ArrayList();

	public List getFilterRule() {
		return filterRule;
	}

	public void setFilterRule(List filterRule) {
		this.filterRule = filterRule;
	}

	public void addFilterRule(FilterRule fr) {
		filterRule.add(fr);
	}

	public PivotPage() {
		super();
	}

	public PivotPage(int pageNo, int pageSize) {
		super(pageNo, pageSize);
	}

	public Map getCriteriaParams() {
		return criteriaParams;
	}

	public void setCriteriaParams(Map criteriaParams) {
		this.criteriaParams = criteriaParams;
	}

	public void addCriteriaParam(String key, Object value) {
		if (value == null)
			return;
		this.criteriaParams.put(key, value);
	}

	public void addSortParam(String key, String value) {
		this.sortParam.put(key, value);
	}

	public Map getSortParam() {
		return sortParam;
	}

	public void setSortParam(Map sortParam) {
		this.sortParam = sortParam;
	}

	public Object getCriteriaParam(String k) {
		return criteriaParams.get(k);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy