From: Roland Häder Date: Tue, 26 Apr 2016 09:15:39 +0000 (+0200) Subject: added business method updateContactData() with conly a contact instance X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4f1a3f2ec21dccfa6ac46b70987974ef4c1ff59d;p=jcontacts-business-lib.git added business method updateContactData() with conly a contact instance --- diff --git a/src/org/mxchange/jcontacts/contact/ContactSessionBeanRemote.java b/src/org/mxchange/jcontacts/contact/ContactSessionBeanRemote.java index 0641451..f2d4fa3 100644 --- a/src/org/mxchange/jcontacts/contact/ContactSessionBeanRemote.java +++ b/src/org/mxchange/jcontacts/contact/ContactSessionBeanRemote.java @@ -53,6 +53,17 @@ public interface ContactSessionBeanRemote extends Serializable { */ Contact updateContactData (final Contact contact, final boolean isCellphoneUnlinked, final boolean isLandlineUnlinked, final boolean isFaxUnlinked); + /** + * Updates given contact in database. Please note that the id number must be + * set. This method should also make sure that cellphone, land-line and fix + * numbers are updated, too. + *

+ * @param contact Contact to update + *

+ * @return Updated contact instance + */ + Contact updateContactData (final Contact contact); + /** * Returns a list of all found contacts *