实现类:
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
您可能感兴趣的文章:
如您对本文有疑问或者有任何想说的,请 点击进行留言回复,万千网友为您解惑!
网友评论