diff options
author | Gunther6070 <haydenhartman10@yahoo.com> | 2025-02-26 13:18:18 -0500 |
---|---|---|
committer | Gunther6070 <haydenhartman10@yahoo.com> | 2025-02-26 13:18:18 -0500 |
commit | cbcd49f2b96dffe359b99b8791ccfb62cbd4717f (patch) | |
tree | 8accb4b76be49374b3bbfd2004c4fb1766c68d4c /ufund-api/src/main/java/com/ufund/api/ufundapi/persistence/UserDAO.java | |
parent | a52c511db3743a9be027672b353a16651b37a2bb (diff) | |
download | JellySolutions-cbcd49f2b96dffe359b99b8791ccfb62cbd4717f.tar.gz JellySolutions-cbcd49f2b96dffe359b99b8791ccfb62cbd4717f.tar.bz2 JellySolutions-cbcd49f2b96dffe359b99b8791ccfb62cbd4717f.zip |
Updated and added more javadocs. Also modified updateUser method to take a string name to use to find desired user to update.
Diffstat (limited to 'ufund-api/src/main/java/com/ufund/api/ufundapi/persistence/UserDAO.java')
-rw-r--r-- | ufund-api/src/main/java/com/ufund/api/ufundapi/persistence/UserDAO.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ufund-api/src/main/java/com/ufund/api/ufundapi/persistence/UserDAO.java b/ufund-api/src/main/java/com/ufund/api/ufundapi/persistence/UserDAO.java index 5926214..d456abc 100644 --- a/ufund-api/src/main/java/com/ufund/api/ufundapi/persistence/UserDAO.java +++ b/ufund-api/src/main/java/com/ufund/api/ufundapi/persistence/UserDAO.java @@ -49,14 +49,15 @@ public interface UserDAO { /** * Updates and saves a {@linkplain User user} * - * @param user {@link User user} object to be updated and saved + * @param newUser {@link User user} object to be updated and saved + * @param name {@link String name} name of object to be updated * * @return updated {@link User user} if successful, null if * {@link User user} could not be found * * @throws IOException if underlying storage cannot be accessed */ - User updateUser(User user) throws IOException; + User updateUser(User newUser, String name) throws IOException; /** * Deletes a {@linkplain User user} with the given id |