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

📄 classjinduservice.java

📁 中应用程序的访问权限对Java Web Console 中应用程序的访问权限 成功登录 Web 控制台后,可能无法自动访问在该控制台中注册的所有应用程序。通常,必须安装应用程序,才能让所有的用户在控制
💻 JAVA
字号:
package edu.yinhe.mis.services;

import java.sql.SQLException;
import java.util.ArrayList;

import javax.sql.DataSource;

import edu.yinhe.mis.dto.ClassJinduDTO;
import edu.yinhe.mis.dto.ClassesDTO;
import edu.yinhe.mis.model.DAOFactory;
import edu.yinhe.system.common.AppException;
import edu.yinhe.system.model.IBaseDAO;
import edu.yinhe.system.services.Service;
/**
 * 
 * @author 苏世进
 *
 */

public class ClassJinduService extends Service{
	private IBaseDAO ClassJinduDAO = null;
	private IBaseDAO classesDAO = null;
	private IBaseDAO outline =  null;

	public Object alllist() throws AppException {
		return null;
	}
	/**
	 * parm obj
	 * parm return返回list对象
	 */

	public Object alllist(Object obj) throws AppException {
		Object[] objs=null;
		ClassJinduDTO dto = new ClassJinduDTO();
		try {
			dto = (ClassJinduDTO) obj;
			ClassJinduDAO = DAOFactory.getClassJinduDAO(conn);
			objs= (Object[])ClassJinduDAO.findAll(dto);
		} catch (SQLException e) {
			e.printStackTrace();
		}finally{
			this.closeConnection();
		}

		return objs;
	}


	public Object findAll() throws AppException {
		// TODO Auto-generated method stub
		return null;
	}
	public Object list(Object arg0) throws AppException {
		ClassesDTO dto = (ClassesDTO)arg0;
		classesDAO = DAOFactory.getClassesDAO(conn);
		ArrayList list = null;
		try {
			list = (ArrayList) classesDAO.find(dto);
		} catch (SQLException e) {
			e.printStackTrace();
		}finally{
			closeConnection();
		}
		return list;
	}
	public Object load(Object arg0) throws AppException {
		Object[] objs = null;
		outline = DAOFactory.getOutlineDAO(conn);
		try {
			objs = (Object[]) outline.findAll(arg0);
		} catch (SQLException e) {
			e.printStackTrace();
		}finally{
			closeConnection();
		}
		return objs;
	}
	public Object modify(Object arg0) throws AppException {
		// TODO Auto-generated method stub
		return false;
	}
	public Object remove(Object arg0) throws AppException {
		// TODO Auto-generated method stub
		return false;
	}


}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -