/*
- * 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
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.