From 4f1a3f2ec21dccfa6ac46b70987974ef4c1ff59d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 26 Apr 2016 11:15:39 +0200 Subject: [PATCH] added business method updateContactData() with conly a contact instance --- .../jcontacts/contact/ContactSessionBeanRemote.java | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 *

-- 2.39.5