Package project.dao.institute

Source Code of project.dao.institute.NotificationDAOImpl

package project.dao.institute;

import java.sql.Timestamp;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import project.entities.institute.Notification;

public class NotificationDAOImpl extends HibernateDaoSupport implements
    NotificationDAO {

  @Override
  public Notification createNotification(Timestamp end, Timestamp period,
      int person, Timestamp start, String text) {
    Notification notif = new Notification(end, period, person, start, text);
    return (Notification) getHibernateTemplate().save(notif);
  }

  @Override
  public Notification createNotification(Notification notification) {
    return (Notification) getHibernateTemplate().save(notification);
  }

  @Override
  public void removeNotification(Notification notification) {
    getHibernateTemplate().delete(notification);
  }

  @Override
  public void updateNotification(Notification notification) {
    getHibernateTemplate().update(notification);
  }

  @Override
  public Notification findNotification(int person, Timestamp start) {
    // TODO Auto-generated method stub
    return null;
  }

}
TOP

Related Classes of project.dao.institute.NotificationDAOImpl

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.