packagecom.dmsd.itoo.tool.pageModel;importjava.io.Serializable;importjava.util.HashMap;importjava.util.List;importjava.util.Map;importjavax.persistence.Transient;public class PageEntity implementsSerializable{/****/
private static final long serialVersionUID = 1L;//**************************分页公共************************************//页码
private intpageNum;//页大小
private intpageSize;//记录数
privateLong total;//**************************单实体分页保存到rows中,原生sql语句分页查询保存在list中************************************//页集合
private Listrows;//最终查询条件
privateString hql;//**************************多实体分页保存到Map中,通过属性取值************************************//查询内容
privateString selectContent;//查询实体
privateString selectFrom;//查询条件
privateString selectWhere;//查询到的内容
private Map map = new HashMap();publicString getSelectContent() {returnselectContent;
}public voidsetSelectContent(String selectContent) {this.selectContent =selectContent;
}publicString getSelectFrom() {returnselectFrom;
}public voidsetSelectFrom(String selectFrom) {this.selectFrom =selectFrom;
}publicString getSelectWhere() {returnselectWhere;
}public voidsetSelectWhere(String selectWhere) {this.selectWhere =selectWhere;
}public static longgetSerialversionuid() {returnserialVersionUID;
}public MapgetMap() {returnmap;
}public void setMap(Mapmap) {this.map =map;
}public intgetPageNum() {returnpageNum;
}public void setPageNum(intpageNum) {this.pageNum =pageNum;
}public intgetPageSize() {returnpageSize;
}public void setPageSize(intpageSize) {this.pageSize =pageSize;
}publicLong getTotal() {returntotal;
}public voidsetTotal(Long total) {this.total =total;
}public ListgetRows() {returnrows;
}public void setRows(Listrows) {this.rows =rows;
}publicString getHql() {returnhql;
}public voidsetHql(String hql) {this.hql =hql;
}/*** 数据库名称*/@TransientprivateString dataBaseName;publicString getDataBaseName() {returndataBaseName;
}public voidsetDataBaseName(String dataBaseName) {this.dataBaseName =dataBaseName;
}
}