From: Roland Häder Date: Tue, 14 Apr 2020 19:49:43 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3ad9921d77e5eff5a5e3ab07c73c3be8c9b1a107;p=jcontacts-lib.git 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()" Signed-off-by: Roland Häder --- 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 (); }