src/sportmeeting/service/PointServiceImpl.java
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
package sportmeeting.service;
import java.util.List;
import sportmeeting.dao.BaseDao;
import sportmeeting.entity.Point;
public class PointServiceImpl implements PointService{
private BaseDao dao;
public List<Point> getPointList(String hql, int pageNo, int pageSize) {
return (List<Point>)dao.query(hql, pageNo, pageSize);
}
public List<Point> getPointAll(String hql) {
return (List<Point>)dao.query(hql);
}
public boolean pointExist(String pointname) {
String hql = "from Point where pointname = '" + pointname +"' and deleted = 0";
try {
Point point = (Point)dao.loadObject(hql);
if(point.getPointname() != null){
return true;
}
} catch (Exception e) {
return false;
}
return false;
}
public boolean addPoint(Point point){
try {
dao.saveOrUpdate(point);
return true;
} catch (Exception e) {
return false;
}
}
public void updatePoint(Point point){
dao.saveOrUpdate(point);
}
public Point pointById(Integer id){
return (Point)dao.getById(Point.class, id);
}
public int countPoint(String hql){
后面还有 11 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
