⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 studentloginservice.java

📁 中应用程序的访问权限对Java Web Console 中应用程序的访问权限 成功登录 Web 控制台后,可能无法自动访问在该控制台中注册的所有应用程序。通常,必须安装应用程序,才能让所有的用户在控制
💻 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 + -