当前位置: 编程技术>java/j2ee
struts2+spring+hibernate分页代码[比较多]第1/7页
来源: 互联网 发布时间:2014-10-16
本文导语: dao层接口: Java代码 代码如下: package com.last999.im.news.dao; import java.util.*; import com.last999.im.news.entity.KindEntity; import com.last999.im.news.web.PageTool; public interface KindEntityDao{ public KindEntity get(String uuid); public void save(KindEntity kindEntity); public...
dao层接口:
Java代码
package com.last999.im.news.dao;
import java.util.*;
import com.last999.im.news.entity.KindEntity;
import com.last999.im.news.web.PageTool;
public interface KindEntityDao{
public KindEntity get(String uuid);
public void save(KindEntity kindEntity);
public void update(KindEntity kindEntity);
public void delete(String uuid);
public void delete(KindEntity kindEntity);
public List findAll();
public KindEntity findKindEntityByName(String name);
public List getKindEntity(PageTool pageInfo);
public int getRows();
}
package com.last999.im.news.dao;
import java.util.*;
import com.last999.im.news.entity.KindEntity;
import com.last999.im.news.web.PageTool;
public interface KindEntityDao{
public KindEntity get(String uuid);
public void save(KindEntity kindEntity);
public void update(KindEntity kindEntity);
public void delete(String uuid);
public void delete(KindEntity kindEntity);
public List findAll();
public KindEntity findKindEntityByName(String name);
public List getKindEntity(PageTool pageInfo);
public int getRows();
}
Java代码
代码如下:
package com.last999.im.news.dao;
import java.util.*;
import com.last999.im.news.entity.KindEntity;
import com.last999.im.news.web.PageTool;
public interface KindEntityDao{
public KindEntity get(String uuid);
public void save(KindEntity kindEntity);
public void update(KindEntity kindEntity);
public void delete(String uuid);
public void delete(KindEntity kindEntity);
public List findAll();
public KindEntity findKindEntityByName(String name);
public List getKindEntity(PageTool pageInfo);
public int getRows();
}
代码如下:
package com.last999.im.news.dao;
import java.util.*;
import com.last999.im.news.entity.KindEntity;
import com.last999.im.news.web.PageTool;
public interface KindEntityDao{
public KindEntity get(String uuid);
public void save(KindEntity kindEntity);
public void update(KindEntity kindEntity);
public void delete(String uuid);
public void delete(KindEntity kindEntity);
public List findAll();
public KindEntity findKindEntityByName(String name);
public List getKindEntity(PageTool pageInfo);
public int getRows();
}