From aeb096f287288fa2d488e12b2a67ae915826e1ab Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 20 Sep 2017 20:38:18 +0200 Subject: [PATCH] Continued a bit: - added business method findBranchOfficeById() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../branchoffice/BranchOfficeSessionBeanRemote.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/org/mxchange/jcontactsbusiness/model/branchoffice/BranchOfficeSessionBeanRemote.java b/src/org/mxchange/jcontactsbusiness/model/branchoffice/BranchOfficeSessionBeanRemote.java index 862db15..e371ddd 100644 --- a/src/org/mxchange/jcontactsbusiness/model/branchoffice/BranchOfficeSessionBeanRemote.java +++ b/src/org/mxchange/jcontactsbusiness/model/branchoffice/BranchOfficeSessionBeanRemote.java @@ -16,10 +16,10 @@ */ 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 + *

+ * @param branchOfficeId Branch office id + *

+ * @return A branch office instance + *

+ * @throws BranchOfficeNotFoundException If the branch office was not found + */ + BranchOffice findBranchOfficeById (final Long branchOfficeId) throws BranchOfficeNotFoundException; + /** * Returns a list of all branch offices *

-- 2.39.5