]> git.mxchange.org Git - jcountry-lib.git/commitdiff
Continued a bit:
authorRoland Haeder <roland@mxchange.org>
Mon, 11 Apr 2016 14:46:28 +0000 (16:46 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 11 Apr 2016 17:36:20 +0000 (19:36 +0200)
- added business method addCountry(), suitable for administrative areas
- updated jar(s)

lib/jcountry-core.jar
src/org/mxchange/jcountry/data/CountrySingletonBeanRemote.java

index 4ecdf7ee64679ee99388e46e4ebc51c0694d3180..3b26377fa896aaca3df2df69ef7b74c4533e677a 100644 (file)
Binary files a/lib/jcountry-core.jar and b/lib/jcountry-core.jar differ
index e019ca028889d930fdc23e113c7b5abf0e937118..42cbe7dacf04f6a400c3288eb5efce3a6d47be7f 100644 (file)
@@ -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.
+        * <p>
+        * @param country Country instance to add (persist)
+        * <p>
+        * @throws org.mxchange.jcountry.exceptions.CountryAlreadyAddedException If the country is already added
+        */
+       void addCountry (final Country country) throws CountryAlreadyAddedException;
+
        /**
         * All registered countries
         * <p>