pcdomainimpl.java

来自「swing+jdbc+sqlserver2000的小型网吧系统」· Java 代码 · 共 66 行

JAVA
66
字号
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 + =
减小字号Ctrl + -
显示快捷键?