/*
- * Copyright (C) 2017 Roland Häder
+ * Copyright (C) 2017 - 2024 Free Software Foundation
*
* 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
*/
package org.mxchange.jcontactsbusiness.model.basicdata;
-import org.mxchange.jcontactsbusiness.model.basicdata.BusinessBasicData;
import java.io.Serializable;
import java.util.List;
import javax.ejb.Remote;
-import org.mxchange.jcontactsbusiness.exceptions.basicdata.BasicCompanyDataNotFoundException;
/**
* A remote interface for business contact data
@Remote
public interface BasicCompanyDataSessionBeanRemote extends Serializable {
- /**
- * Checks whether given company name already exists
- * <p>
- * @param companyName Company name to check
- * <p>
- * @return Whether the company name exists
- */
- Boolean isCompanyNameUsed (final String companyName);
-
- /**
- * Retrieves a single business data entity for given id number or throws a
- * proper exception if not found.
- * <p>
- * @param basicDataId Company basic data id to lookup
- * <p>
- * @return Business contact instance
- * <p>
- * @throws BasicCompanyDataNotFoundException If the id number could not be
- * looked up and solved into an entity
- */
- BusinessBasicData findBasicDataById (final Long basicDataId) throws BasicCompanyDataNotFoundException;
-
/**
* Returns a list, even empty if not thing found, from all business
* contacts. NULL should not be returned by this method.
* <p>
* @return A list with all business contacts
*/
- List<BusinessBasicData> allCompanyBasicData ();
+ List<BasicData> fetchAllBusinessBasicData ();
}