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

📄 pcdomainimpl.java

📁 swing+jdbc+sqlserver2000的小型网吧系统
💻 JAVA
字号:
package org.itstar.netbar.domain.impl;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.itstar.netbar.bean.PCBean;
import org.itstar.netbar.dao.IPCDao;
import org.itstar.netbar.dao.impl.PCDaoImpl;
import org.itstar.netbar.domain.IPCDomain;

public class PCDomainImpl implements IPCDomain
{

	public int delete(String pcNum) {
		IPCDao pcDao=new PCDaoImpl();
		int count=pcDao.delete(pcNum);
		return count;
	}

	public int insert(PCBean pcBean) {
		IPCDao pcDao=new PCDaoImpl();
		int count=pcDao.insert(pcBean);
		return count;
	}

	public List query(Map map) {
		IPCDao pcDao=new PCDaoImpl();
		List list=new ArrayList();
		list=pcDao.query(map);
		return list;
	}

	public List queryAll() {
		IPCDao pcDao=new PCDaoImpl();
		List list=new ArrayList();
		list=pcDao.queryAll();
		return list;
	}

	public int update(PCBean pcBean) {
		IPCDao pcDao=new PCDaoImpl();
		int count=pcDao.update(pcBean);
		return count;
	}

	public int updatePCState(String pcState, String pcNum) {
		IPCDao pcDao=new PCDaoImpl();
		int count=pcDao.updatePCState(pcState, pcNum);
		return count;
	}

	public int updatePCType(String pcType, String pcNum) {
		IPCDao pcDao=new PCDaoImpl();
		int count=pcDao.updatePCType(pcType, pcNum);
		return count;
	}

	public int updatePCStateReset() {//只将上机状态的机器改为非上机状态
		IPCDao pcDao=new PCDaoImpl();
		int count=pcDao.updatePCStateReset();
		return count;
	}

}

⌨️ 快捷键说明

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