From: Roland Häder Date: Tue, 23 Aug 2016 10:38:22 +0000 (+0200) Subject: Added more business methods for deleting/updating fax/land-line numbers X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=74a720cd959c83e98673b7178891cc0e525f8e8a;p=jphone-lib.git Added more business methods for deleting/updating fax/land-line numbers --- diff --git a/src/org/mxchange/jphone/phonenumbers/phone/AdminPhoneSessionBeanRemote.java b/src/org/mxchange/jphone/phonenumbers/phone/AdminPhoneSessionBeanRemote.java index 7ecb759..809f2a8 100644 --- a/src/org/mxchange/jphone/phonenumbers/phone/AdminPhoneSessionBeanRemote.java +++ b/src/org/mxchange/jphone/phonenumbers/phone/AdminPhoneSessionBeanRemote.java @@ -18,6 +18,8 @@ package org.mxchange.jphone.phonenumbers.phone; import java.io.Serializable; import javax.ejb.Remote; +import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber; +import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber; import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber; /** @@ -29,19 +31,51 @@ import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber; public interface AdminPhoneSessionBeanRemote extends Serializable { /** - * Deletes given cell phone data. + * Deletes given fax data. *

- * @param cellPhoneNumber Cell phone data to be deleted + * @param faxNumber Fax data to be deleted */ - void deleteMobileData (final DialableMobileNumber cellPhoneNumber); + void deleteFaxData (final DialableFaxNumber faxNumber); /** - * Updates data from given cell phone number instance in database + * Deletes given land-line data. *

- * @param cellPhoneNumber Cell phone number instance to update + * @param landLineNumber Land-line data to be deleted + */ + void deleteLandLineData (final DialableLandLineNumber landLineNumber); + + /** + * Deletes given mobile data. + *

+ * @param mobileNumber Mobile data to be deleted + */ + void deleteMobileData (final DialableMobileNumber mobileNumber); + + /** + * Updates data from given fax number instance in database + *

+ * @param faxNumber Fax number instance to update + *

+ * @return Updated fax number instance + */ + DialableFaxNumber updateFaxData (final DialableFaxNumber faxNumber); + + /** + * Updates data from given land-line number instance in database + *

+ * @param landLineNumber Land-line number instance to update + *

+ * @return Updated landLine number instance + */ + DialableLandLineNumber updateLandLineData (final DialableLandLineNumber landLineNumber); + + /** + * Updates data from given mobile number instance in database + *

+ * @param mobileNumber Mobile number instance to update *

- * @return Updated cell phone number instance + * @return Updated mobile number instance */ - DialableMobileNumber updateMobileData (final DialableMobileNumber cellPhoneNumber); + DialableMobileNumber updateMobileData (final DialableMobileNumber mobileNumber); }