From: Roland Haeder Date: Mon, 11 Apr 2016 14:46:28 +0000 (+0200) Subject: Continued a bit: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5dc8700a1f04b399c2322bd99e87bf5f384106ef;p=jcountry-lib.git Continued a bit: - added business method addCountry(), suitable for administrative areas - updated jar(s) --- diff --git a/lib/jcountry-core.jar b/lib/jcountry-core.jar index 4ecdf7e..3b26377 100644 Binary files a/lib/jcountry-core.jar and b/lib/jcountry-core.jar differ diff --git a/src/org/mxchange/jcountry/data/CountrySingletonBeanRemote.java b/src/org/mxchange/jcountry/data/CountrySingletonBeanRemote.java index e019ca0..42cbe7d 100644 --- a/src/org/mxchange/jcountry/data/CountrySingletonBeanRemote.java +++ b/src/org/mxchange/jcountry/data/CountrySingletonBeanRemote.java @@ -18,6 +18,7 @@ package org.mxchange.jcountry.data; import java.io.Serializable; import java.util.List; +import org.mxchange.jcountry.exceptions.CountryAlreadyAddedException; /** * A remote interface for country informations @@ -26,6 +27,16 @@ import java.util.List; */ public interface CountrySingletonBeanRemote extends Serializable { + /** + * Adds given country to database. A pre-check is always done and if found, + * a checked exception is thrown. + *

+ * @param country Country instance to add (persist) + *

+ * @throws org.mxchange.jcountry.exceptions.CountryAlreadyAddedException If the country is already added + */ + void addCountry (final Country country) throws CountryAlreadyAddedException; + /** * All registered countries *