From: Roland Häder Date: Sun, 10 Sep 2017 14:36:47 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=32ecfbc28ab481afbd4c99ba93e48881e5e73be5;p=jcountry-lib.git Continued: - moved model-related classes (entities, of course) to 'model' package Signed-off-by: Roland Häder --- diff --git a/src/org/mxchange/jcountry/data/CountrySingletonBeanRemote.java b/src/org/mxchange/jcountry/data/CountrySingletonBeanRemote.java deleted file mode 100644 index cc621ea..0000000 --- a/src/org/mxchange/jcountry/data/CountrySingletonBeanRemote.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (C) 2016, 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 - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.mxchange.jcountry.data; - -import java.io.Serializable; -import java.util.List; -import javax.ejb.Remote; -import org.mxchange.jcountry.exceptions.CountryAlreadyAddedException; - -/** - * A remote interface for country informations - *

- * @author Roland Häder - */ -@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. - *

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

- * @return Updated country instance with timestamp and id number - *

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

- * @return A list of all countries - */ - List allCountries (); - -} diff --git a/src/org/mxchange/jcountry/model/data/CountrySingletonBeanRemote.java b/src/org/mxchange/jcountry/model/data/CountrySingletonBeanRemote.java new file mode 100644 index 0000000..1a3f43a --- /dev/null +++ b/src/org/mxchange/jcountry/model/data/CountrySingletonBeanRemote.java @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2016, 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 + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.mxchange.jcountry.model.data; + +import org.mxchange.jcountry.model.data.Country; +import java.io.Serializable; +import java.util.List; +import javax.ejb.Remote; +import org.mxchange.jcountry.exceptions.CountryAlreadyAddedException; + +/** + * A remote interface for country informations + *

+ * @author Roland Häder + */ +@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. + *

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

+ * @return Updated country instance with timestamp and id number + *

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

+ * @return A list of all countries + */ + List allCountries (); + +}