src/main/java/de/uapcore/lightpit/dao/GenericDao.java

changeset 47
57cfb94ab99f
parent 38
cf85ef18f231
child 62
833e0385572a
--- a/src/main/java/de/uapcore/lightpit/dao/GenericDao.java	Wed May 13 21:46:26 2020 +0200
+++ b/src/main/java/de/uapcore/lightpit/dao/GenericDao.java	Thu May 14 22:48:01 2020 +0200
@@ -41,6 +41,15 @@
     List<T> list() throws SQLException;
 
     /**
+     * Finds an entity by its integer ID.
+     *
+     * @param id the id
+     * @return the enity or null if there is no such entity
+     * @throws SQLException on any kind of SQL errors
+     */
+    T find(int id) throws SQLException;
+
+    /**
      * Inserts an instance into database.
      *
      * @param instance the instance to insert

mercurial