* Retrieves a single business data entity for given id number or throws a
* proper exception if not found.
* <p>
- * @param companyDataId Company basic data id to lookup
+ * @param basicDataId Company basic data id to lookup
* <p>
* @return Business contact instance
* <p>
* @throws BusinessDataNotFoundException If the id number could not be
* looked up and solved into an entity
*/
- BusinessBasicData findBasicDataById (final Long companyDataId) throws BusinessDataNotFoundException;
+ BusinessBasicData findBasicDataById (final Long basicDataId) throws BusinessDataNotFoundException;
/**
* Returns a list, even empty if not thing found, from all business
import java.io.Serializable;
import javax.ejb.Remote;
+import org.mxchange.jcontactsbusiness.exceptions.branchoffice.BranchOfficeAlreadyAddedException;
/**
* A remote interface for business contact data
@Remote
public interface AdminBranchOfficeSessionBeanRemote extends Serializable {
+ /**
+ * Adds given branch office entity to persistence. If the branch office's
+ * address was already added, a proper exception is thrown. The parameter is
+ * validated before being accepted like that branchId is not set.
+ * <p>
+ * @param branchOffice Branch office instance
+ * <p>
+ * @return Updated branch office instance
+ * <p>
+ * @throws BranchOfficeAlreadyAddedException If the branch office's address
+ * was already added
+ */
+ BranchOffice addBranchOffice (final BranchOffice branchOffice) throws BranchOfficeAlreadyAddedException;
+
}