From: Roland Häder Date: Fri, 24 Apr 2020 00:45:40 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a9f6126042c53f4207a68fc83002053ea087c60c;p=jcontacts-business-lib.git Continued: - added business method updateBranchOffice() Signed-off-by: Roland Häder --- diff --git a/src/org/mxchange/jcontactsbusiness/model/branchoffice/AdminBranchOfficeSessionBeanRemote.java b/src/org/mxchange/jcontactsbusiness/model/branchoffice/AdminBranchOfficeSessionBeanRemote.java index 43a2dc4..adaf1bf 100644 --- a/src/org/mxchange/jcontactsbusiness/model/branchoffice/AdminBranchOfficeSessionBeanRemote.java +++ b/src/org/mxchange/jcontactsbusiness/model/branchoffice/AdminBranchOfficeSessionBeanRemote.java @@ -19,6 +19,7 @@ package org.mxchange.jcontactsbusiness.model.branchoffice; import java.io.Serializable; import javax.ejb.Remote; import org.mxchange.jcontactsbusiness.exceptions.branchoffice.BranchOfficeAlreadyAddedException; +import org.mxchange.jcontactsbusiness.exceptions.branchoffice.BranchOfficeNotFoundException; /** * A remote interface for branch offices @@ -42,4 +43,16 @@ public interface AdminBranchOfficeSessionBeanRemote extends Serializable { */ BranchOffice addBranchOffice (final BranchOffice branchOffice) throws BranchOfficeAlreadyAddedException; + /** + * Updates given branch office data in database. + *

+ * @param branchOffice Branch office instance being updated + *

+ * @return Updated branch office instance + *

+ * @throws BranchOfficeNotFoundException If given branch office instance is + * not found. + */ + BranchOffice updateBranchOffice (final BranchOffice branchOffice) throws BranchOfficeNotFoundException; + }