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

📄 appointmentserviceimpl.java

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

import java.util.List;

import com.sean.pet.hibernate.dao.AppointmentDao;
import com.sean.pet.hibernate.po.Appointment;
import com.sean.pet.model.service.AppointmentService;
import com.sean.pet.modelfactory.ModelFactory;

public class AppointmentServiceImpl implements AppointmentService {

	private AppointmentDao app = null;
	
	public AppointmentServiceImpl(){
		app = (AppointmentDao)ModelFactory.getBean("com.sean.pet.hibernate.dao.impl.AppointmentDaoImpl");
	}
	
	public void delete(String id) {
		// TODO Auto-generated method stub
		this.app.delete(id);
	}

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

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

	public void save(Appointment app) {
		// TODO Auto-generated method stub
		this.app.save(app);
	}

	public void update(Appointment app) {
		// TODO Auto-generated method stub
		this.app.update(app);
	}

}

⌨️ 快捷键说明

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