@@ -0,0 +1,1625 @@
+package com.raj.frs.service;%0D%0A%0D%0Aimport java.util.ArrayList;%0D%0Aimport java.util.Date;%0D%0Aimport java.util.Map;%0D%0A%0D%0Aimport org.springframework.beans.factory.annotation.Autowired;%0D%0Aimport org.springframework.stereotype.Repository;%0D%0Aimport org.springframework.stereotype.Service;%0D%0A%0D%0Aimport com.raj.frs.bean.CredentialsBean;%0D%0Aimport com.raj.frs.bean.PassengerBean;%0D%0Aimport com.raj.frs.bean.ProfileBean;%0D%0Aimport com.raj.frs.bean.ReservationBean;%0D%0Aimport com.raj.frs.bean.ScheduleBean;%0D%0A%0D%0Aimport com.raj.frs.dao.PassengerDAO;%0D%0A%0D%0Aimport com.raj.frs.dao.ReservationDAO;%0D%0A%0D%0Aimport com.raj.frs.dao.RouteDAO;%0D%0A%0D%0A@Service%0D%0A@Repository%0D%0Apublic class CustomerImpl implements Customer%7B%0D%0A%09@Autowired%0D%0A%09private ReservationDAO reservationBeanDAO;%0D%0A%09@Autowired%0D%0A%09private PassengerDAO passengerBeanDAO;%0D%0A%09@Autowired%0D%0A%09private RouteDAO routeBeanDAO;%0D%0A%09public ArrayList%3CScheduleBean%3E viewScheduleByRoute(String source, String destination, Date date)%0D%0A%09%7B%0D%0A%09%09return null;%0D%0A%09%09%0D%0A%09%7D%0D%0A%09public String reserveTicket(ReservationBean reservationBean, ArrayList%3CPassengerBean%3E passengers)%0D%0A%09%7B%0D%0A%09%09return null;%0D%0A%09%09%0D%0A%09%7D%0D%0A%09@Override%0D%0A%09public boolean cancelTicket(String reservationId) %7B%0D%0A%09%09/*// TODO Auto-generated method stub%0D%0A%09%09int b=reservationBeanDAO.deleteReservation(reservationId);%0D%0A%09%09if(b==1)%0D%0A%09%09%7B%0D%0A%09%09return true;%0D%0A%09%09%7D%0D%0A%09%09else*/%0D%0A%09%09%09return false;%0D%0A%09%7D%0D%0A%09@Override%0D%0A%09public Map%3CReservationBean, PassengerBean%3E viewTicket(String reservationId) %7B%0D%0A%09%09// TODO Auto-generated method stub%0D%0A%09%09return null;%0D%0A%09%7D%0D%0A%09@Override%0D%0A%09public Map%3CReservationBean, PassengerBean%3E printTicket(String reservationId) %7B%0D%0A%09%09// TODO Auto-generated method stub%0D%0A%09%09return null;%0D%0A%09%7D%0D%0A%09%0D%0A%7D%0D%0A

Add CustomerImpl