java分页实体类_【java】分页查询实体类

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;

}

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值