当前位置: 移动技术网 > IT编程>开发语言>Java > struts2+spring+hibernate分页代码[比较多]第1/7页

struts2+spring+hibernate分页代码[比较多]第1/7页

2017年12月12日  | 移动技术网IT编程  | 我要评论
dao层接口: java代码 复制代码 代码如下: package com.last999.im.news.dao; import java.util.*; import

实现类:
java代码
复制代码 代码如下:

package com.last999.im.news.service.impl;
import java.util.list;
import com.last999.im.news.web.pagetool;
import com.last999.im.news.entity.kindentity;
import com.last999.im.news.service.kindentitymanage;
import com.last999.im.news.dao.kindentitydao;
public class kindentitymanageimpl implements kindentitymanage{
private kindentitydao kindentitydao;
public kindentitydao getkindentitydao(){
return this.kindentitydao;
}
public void setkindentitydao(kindentitydao kindentitydao) {
this.kindentitydao=kindentitydao;
}
public void addkindentity(kindentity kindentity){
this.getkindentitydao().save(kindentity);
}
public list findallkind(){
return this.getkindentitydao().findall();
}
public int getrows(){
return this.getkindentitydao().getrows();
}
public list getkindentity(pagetool pageinfo){
return this.getkindentitydao().getkindentity(pageinfo);
}
}

复制代码 代码如下:

package com.last999.im.news.service.impl;
import java.util.list;
import com.last999.im.news.web.pagetool;
import com.last999.im.news.entity.kindentity;
import com.last999.im.news.service.kindentitymanage;
import com.last999.im.news.dao.kindentitydao;
public class kindentitymanageimpl implements kindentitymanage{
private kindentitydao kindentitydao;
public kindentitydao getkindentitydao(){
return this.kindentitydao;
}
public void setkindentitydao(kindentitydao kindentitydao) {
this.kindentitydao=kindentitydao;
}
public void addkindentity(kindentity kindentity){
this.getkindentitydao().save(kindentity);
}
public list findallkind(){
return this.getkindentitydao().findall();
}
public int getrows(){
return this.getkindentitydao().getrows();
}
public list getkindentity(pagetool pageinfo){
return this.getkindentitydao().getkindentity(pageinfo);
}
}

3

如您对本文有疑问或者有任何想说的,请 点击进行留言回复,万千网友为您解惑!

相关文章:

验证码:
移动技术网