appointmentserviceimpl.java

来自「用Struts+hibernate写的宠物医院」· Java 代码 · 共 44 行

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