]> git.mxchange.org Git - jcontacts-business-lib.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Fri, 24 Apr 2020 00:45:40 +0000 (02:45 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 24 Apr 2020 00:49:29 +0000 (02:49 +0200)
- added business method updateBranchOffice()

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jcontactsbusiness/model/branchoffice/AdminBranchOfficeSessionBeanRemote.java

index 43a2dc40ab9654ce379603080054c9cd2c51b1bd..adaf1bf5b4ac6a3840f7f399c9d34830ab0ae08a 100644 (file)
@@ -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.
+        * <p>
+        * @param branchOffice Branch office instance being updated
+        * <p>
+        * @return Updated branch office instance
+        * <p>
+        * @throws BranchOfficeNotFoundException If given branch office instance is
+        * not found.
+        */
+       BranchOffice updateBranchOffice (final BranchOffice branchOffice) throws BranchOfficeNotFoundException;
+
 }