]> git.mxchange.org Git - jcontacts-business-lib.git/commitdiff
fixed copyright, no email address here
authorRoland Häder <roland@mxchange.org>
Fri, 9 Jun 2017 19:10:16 +0000 (21:10 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 9 Jun 2017 19:10:16 +0000 (21:10 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jcontactsbusiness/BusinessContactSessionBeanRemote.java

index 4561e196f087e3631a6c4e1339bddaf40b8970ae..7723f54c6503ea40e36b2c72edfa379c70e6c37e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2017 Roland Haeder<roland@mxchange.org>
+ * Copyright (C) 2017 Roland Häder
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -19,15 +19,29 @@ package org.mxchange.jcontactsbusiness;
 import java.io.Serializable;
 import java.util.List;
 import javax.ejb.Remote;
+import org.mxchange.jcontactsbusiness.exceptions.BusinessContactNotFoundException;
 
 /**
  * A remote interface for business contact data
  * <p>
- * @author Roland Haeder<roland@mxchange.org>
+ * @author Roland Häder<roland@mxchange.org>
  */
 @Remote
 public interface BusinessContactSessionBeanRemote extends Serializable {
 
+       /**
+        * Retrieves a single business contact entity for given id number or throws
+        * a proper exception if not found.
+        * <p>
+        * @param businessContactId Business contact id to lookup
+        * <p>
+        * @return Business contact instance
+        * <p>
+        * @throws BusinessContactNotFoundException If the id number could not be
+        * looked up and solved into an entity
+        */
+       BusinessContact findBusinessContactById (final Long businessContactId) throws BusinessContactNotFoundException;
+
        /**
         * Returns a list, even empty if not thing found, from all business
         * contacts. NULL should not be returned by this method.