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

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

mercurial