]> git.mxchange.org Git - jcontacts-business-lib.git/commitdiff
Continued a bit:
authorRoland Häder <roland@mxchange.org>
Wed, 20 Sep 2017 18:38:18 +0000 (20:38 +0200)
committerRoland Häder <roland@mxchange.org>
Wed, 20 Sep 2017 18:38:18 +0000 (20:38 +0200)
- added business method findBranchOfficeById()

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

index 862db15eb9d834b13716a20c238871fd49c6366c..e371ddd4e7966b1abb40ae3f51eb54af761bbc4d 100644 (file)
  */
 package org.mxchange.jcontactsbusiness.model.branchoffice;
 
-import org.mxchange.jcontactsbusiness.model.branchoffice.BranchOffice;
 import java.io.Serializable;
 import java.util.List;
 import javax.ejb.Remote;
+import org.mxchange.jcontactsbusiness.exceptions.branchoffice.BranchOfficeNotFoundException;
 
 /**
  * A remote interface for business contact data
@@ -29,6 +29,17 @@ import javax.ejb.Remote;
 @Remote
 public interface BranchOfficeSessionBeanRemote extends Serializable {
 
+       /**
+        * Tries to find a branch office with given id number
+        * <p>
+        * @param branchOfficeId Branch office id
+        * <p>
+        * @return A branch office instance
+        * <p>
+        * @throws BranchOfficeNotFoundException If the branch office was not found
+        */
+       BranchOffice findBranchOfficeById (final Long branchOfficeId) throws BranchOfficeNotFoundException;
+
        /**
         * Returns a list of all branch offices
         * <p>