aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/dao/VehicleDAO.java
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2018-06-20 22:07:36 +0200
committerTharre <tharre3@gmail.com>2018-06-20 22:07:36 +0200
commit0c995a05985da749d93aa56eba976c7fc621a4fa (patch)
tree5b80394920705aae5e2b6004c3dfbd839c8b8fa3 /src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/dao/VehicleDAO.java
parentf5bc7925a8fbbe247972a6f0e0571cc7e92fbefa (diff)
parente21feb3ac772a5394dc5381b58142c3c061de716 (diff)
downloadsepm-groupproject-master.tar.gz
sepm-groupproject-master.tar.xz
sepm-groupproject-master.zip
Merge branch 'develop'HEADv3.0master
Diffstat (limited to 'src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/dao/VehicleDAO.java')
-rw-r--r--src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/dao/VehicleDAO.java54
1 files changed, 0 insertions, 54 deletions
diff --git a/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/dao/VehicleDAO.java b/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/dao/VehicleDAO.java
deleted file mode 100644
index 5782fd9..0000000
--- a/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/dao/VehicleDAO.java
+++ /dev/null
@@ -1,54 +0,0 @@
-package at.ac.tuwien.sepm.assignment.groupphase.einsatzverwaltung.dao;
-
-import at.ac.tuwien.sepm.assignment.groupphase.einsatzverwaltung.dto.Vehicle;
-import at.ac.tuwien.sepm.assignment.groupphase.exception.ElementNotFoundException;
-import at.ac.tuwien.sepm.assignment.groupphase.exception.PersistenceException;
-import java.util.Set;
-
-public interface VehicleDAO {
-
- /**
- * Persist the given vehicle.
- *
- * @param vehicle that should be stored
- * @return the id that was assigned
- * @throws PersistenceException if the vehicle could not be persisted
- */
- long add(Vehicle vehicle) throws PersistenceException;
-
- /**
- * Update the given vehicle.
- *
- * @param vehicle that should be updated
- * @throws ElementNotFoundException if no vehicle with the given id exists
- * @throws PersistenceException if the vehicle could not be updated
- */
- void update(Vehicle vehicle) throws ElementNotFoundException, PersistenceException;
-
- /**
- * Get all stored vehicles.
- *
- * @return list containing all stored vehicles
- * @throws PersistenceException if loading the stored vehicles failed
- */
- Set<Vehicle> list() throws PersistenceException;
-
- /**
- * Returns the vehicle with the given id.
- *
- * @param vehicleId id of the vehicle that should be returned
- * @return vehicle with the given id
- * @throws ElementNotFoundException if no vehicle with the given id exists
- * @throws PersistenceException if the vehicle could not be loaded
- */
- Vehicle get(long vehicleId) throws ElementNotFoundException, PersistenceException;
-
- /**
- * Remove vehicle with the given id from the store.
- *
- * @param id of the vehicle that should be removed
- * @throws ElementNotFoundException if no vehicle with the given id exists
- * @throws PersistenceException if the vehicle could not be removed
- */
- void remove(long id) throws ElementNotFoundException, PersistenceException;
-}