From 3ad9921d77e5eff5a5e3ab07c73c3be8c9b1a107 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 14 Apr 2020 21:49:43 +0200 Subject: [PATCH] Continued: - renamed allSomeEntities() to fetchAllSomeEntities() - maybe removed deprecated or not recommended business methods - if a method fetches e.g. a limited list of "Bar" entities, limited by an entity "Foo" it must be named "fetchAllBarsByFoo()" MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../contact/ContactSessionBeanRemote.java | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/org/mxchange/jcontacts/model/contact/ContactSessionBeanRemote.java b/src/org/mxchange/jcontacts/model/contact/ContactSessionBeanRemote.java index 650c8c2..6fdc026 100644 --- a/src/org/mxchange/jcontacts/model/contact/ContactSessionBeanRemote.java +++ b/src/org/mxchange/jcontacts/model/contact/ContactSessionBeanRemote.java @@ -28,25 +28,16 @@ import javax.ejb.Remote; @Remote public interface ContactSessionBeanRemote extends Serializable { - /** - * Checks if the given contact can be found by checking the whole list. - *

- * @param contact Contact instance to check - *

- * @return Whether the found instance or null - */ - Contact lookupContact (final Contact contact); - /** * Updates given contact data *

- * @param contact Contact data to update - * @param isMobileUnlinked Whether a mobile entry has been unlinked in - * contact instance + * @param contact Contact data to update + * @param isMobileUnlinked Whether a mobile entry has been unlinked in + * contact instance * @param isLandlineUnlinked Whether a land-line entry has been unlinked in - * contact instance - * @param isFaxUnlinked Whether a fax entry has been unlinked in contact - * instance + * contact instance + * @param isFaxUnlinked Whether a fax entry has been unlinked in + * contact instance *

* @return Updated contact instance */ @@ -68,6 +59,6 @@ public interface ContactSessionBeanRemote extends Serializable { *

* @return A list of call contacts */ - List allContacts (); + List fetchAllContacts (); } -- 2.39.5