📄 studentloginservice.java
字号:
package edu.yinhe.mis.services;
import java.sql.SQLException;
import edu.yinhe.mis.dto.StudentLoginDTO;
import edu.yinhe.mis.model.DAOFactory;
import edu.yinhe.mis.vo.StudentLoginVO;
import edu.yinhe.system.common.AppException;
import edu.yinhe.system.model.IBaseDAO;
import edu.yinhe.system.services.Service;
/**
*
* @author 姜敏
*
*/
public class StudentLoginService extends Service {
IBaseDAO sldao=null;
public Object alllist(Object arg0) throws AppException {
// TODO Auto-generated method stub
return null;
}
public Object create(Object arg0) throws AppException {
// TODO Auto-generated method stub
return false;
}
public Object findAll() throws AppException {
// TODO Auto-generated method stub
return null;
}
public Object list(Object arg0) throws AppException {
return arg0;
}
public Object load(Object arg0) throws AppException {
sldao=DAOFactory.getStudentLoginDAO(conn);
StudentLoginVO slvo = null;
try {
slvo = (StudentLoginVO) sldao.findById(arg0);
} catch (SQLException e) {
e.printStackTrace();
}try {
conn.rollback();
} catch (SQLException e) {
e.printStackTrace();
}finally
{
this.closeConnection();
sldao=null;
}
return slvo;
}
public Object modify(Object obj) throws AppException {
StudentLoginDTO sldto=new StudentLoginDTO();
sldto=(StudentLoginDTO) obj;
sldao=DAOFactory.getGradeDAO(conn);
Integer i=0;
try {
i=(Integer) sldao.update(sldto);
} catch (SQLException e) {
e.printStackTrace();
}
return i;
}
public Object remove(Object arg0) throws AppException {
// TODO Auto-generated method stub
return false;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -