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

📄 penserviceimpl.java

📁 用Struts+hibernate写的宠物医院
💻 JAVA
字号:
package com.sean.pet.model.service.impl;

import java.util.List;

import com.sean.pet.hibernate.dao.PenDao;
import com.sean.pet.hibernate.po.Pen;
import com.sean.pet.model.service.PenService;
import com.sean.pet.modelfactory.ModelFactory;

public class PenServiceImpl implements PenService {

	private PenDao penDao = null;
	
	public PenServiceImpl(){
		penDao = (PenDao)ModelFactory.getBean("com.sean.pet.hibernate.dao.impl.PenDaoImpl");
	}
	
	public void delete(String id) {
		// TODO Auto-generated method stub
		this.penDao.delete(id);
	}

	public List findAll() {
		// TODO Auto-generated method stub
		return this.penDao.findAll();
	}

	public Pen findByID(String id) {
		// TODO Auto-generated method stub
		return this.penDao.findByID(id);
	}

	public void save(Pen pen) {
		// TODO Auto-generated method stub
		this.penDao.save(pen);
	}

	public void update(Pen pen) {
		// TODO Auto-generated method stub
		this.penDao.update(pen);
	}

}

⌨️ 快捷键说明

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