KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > petals > demo > icare > service > CarService


1 package org.objectweb.petals.demo.icare.service;
2
3 import java.util.Collection JavaDoc;
4
5 import org.objectweb.petals.demo.icare.model.Car;
6 import org.objectweb.petals.demo.icare.model.Category;
7 import org.objectweb.petals.demo.icare.model.Reservation;
8 import org.objectweb.petals.demo.icare.model.dto.CarSearchDto;
9
10 /**
11  * The services of the application
12  *
13  * @author Cristian Spiescu
14  * @author Imad Zarzouri
15  * @author Omar Senhaji Rhazi
16  * @author Anass Ouazzani Chahdi
17  *
18  * @since 15.01.2007
19  */

20 public interface CarService {
21
22     Collection JavaDoc<Car> getAllCars();
23     
24     Collection JavaDoc<Category> getAllCategories();
25     
26     Collection JavaDoc<Reservation> getAllReservations();
27
28     Collection JavaDoc<Car> getAvailableCars(CarSearchDto carSearchDto);
29     
30     Category findCategoryById(long id);
31     
32     Reservation findReservationById(long id);
33     
34     Car findCarById(long id);
35     
36     void storeCar(Car car);
37     
38     void storeReservation(Reservation reservation);
39 }
40
Popular Tags