import java.io.Serializable;
import java.util.List;
+import javax.ejb.Remote;
+import org.mxchange.jcountry.exceptions.CountryAlreadyAddedException;
/**
* A remote interface for country informations
* <p>
* @author Roland Haeder<roland@mxchange.org>
*/
+@Remote
public interface CountrySingletonBeanRemote extends Serializable {
+ /**
+ * Adds given country to database. A pre-check is always done and if found,
+ * a checked exception is thrown.
+ * <p>
+ * @param country Country instance to add (persist)
+ * <p>
+ * @return Updated country instance with timestamp and id number
+ * <p>
+ * @throws org.mxchange.jcountry.exceptions.CountryAlreadyAddedException If the country is already added
+ */
+ Country addCountry (final Country country) throws CountryAlreadyAddedException;
+
/**
* All registered countries
* <p>