1 package org.objectweb.petals.demo.icare.dao; 2 3 import java.util.Collection ; 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 18 public interface CarDao { 19 20 public void storeEntity(Entity e); 21 22 public Entity getEntityById(Class clazz, long id); 23 24 public Collection <Car> loadAllCars(); 25 26 public Collection <Category> loadAllCategories(); 27 28 public Collection <Reservation> loadAllReservations(); 29 30 public void storeAllCategories(Collection <Category> list); 31 32 public void storeAllCars(Collection <Car> list); 33 34 public void storeAllReservation(Collection <Reservation> list); 35 36 } 37 | Popular Tags |