KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > petals > demo > icare > dao > CarDao


1 package org.objectweb.petals.demo.icare.dao;
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.Entity;
8 import org.objectweb.petals.demo.icare.model.Reservation;
9
10 /**
11  * @author Cristian Spiescu
12  * @author Imad Zarzouri
13  * @author Omar Senhaji Rhazi
14  * @author Anass Ouazzani Chahdi
15  *
16  * @since 15.01.2007
17  */

18 public interface CarDao {
19
20     public void storeEntity(Entity e);
21     
22     public Entity getEntityById(Class JavaDoc clazz, long id);
23
24     public Collection JavaDoc<Car> loadAllCars();
25     
26     public Collection JavaDoc<Category> loadAllCategories();
27     
28     public Collection JavaDoc<Reservation> loadAllReservations();
29     
30     public void storeAllCategories(Collection JavaDoc<Category> list);
31     
32     public void storeAllCars(Collection JavaDoc<Car> list);
33     
34     public void storeAllReservation(Collection JavaDoc<Reservation> list);
35
36 }
37
Popular Tags