From: Roland Häder Date: Sat, 7 Oct 2017 22:21:35 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=33b71358686963acf0f59b59b1bb9e31ef56a6cb;p=jcontacts-business-lib.git Continued: - renamed OpeningTimes -> OpeningTime as other interfaces/classes are single - renamed opening_times -> opening_time Signed-off-by: Roland Häder --- diff --git a/src/org/mxchange/jcontactsbusiness/model/opening_time/AdminOpeningTimeSessionBeanRemote.java b/src/org/mxchange/jcontactsbusiness/model/opening_time/AdminOpeningTimeSessionBeanRemote.java new file mode 100644 index 0000000..00dccf3 --- /dev/null +++ b/src/org/mxchange/jcontactsbusiness/model/opening_time/AdminOpeningTimeSessionBeanRemote.java @@ -0,0 +1,41 @@ +/* + * Copyright (C) 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.jcontactsbusiness.model.opening_time; + +import java.io.Serializable; +import javax.ejb.Remote; + +/** + * A remote interface for opening times + *

+ * @author Roland Häder + */ +@Remote +public interface AdminOpeningTimeSessionBeanRemote extends Serializable { + + /** + * Adds a given opening time instance to the database. Please note that this + * method will add opening time regardless if found as it is not assigned to + * any other entity (at this point of time). + *

+ * @param openingTime OpeningTime instance to add + *

+ * @return Updated opening time instance + */ + OpeningTime addOpeningTime (final OpeningTime openingTime); + +} diff --git a/src/org/mxchange/jcontactsbusiness/model/opening_time/OpeningTimeSessionBeanRemote.java b/src/org/mxchange/jcontactsbusiness/model/opening_time/OpeningTimeSessionBeanRemote.java new file mode 100644 index 0000000..249668c --- /dev/null +++ b/src/org/mxchange/jcontactsbusiness/model/opening_time/OpeningTimeSessionBeanRemote.java @@ -0,0 +1,53 @@ +/* + * Copyright (C) 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.jcontactsbusiness.model.opening_time; + +import java.io.Serializable; +import java.util.List; +import javax.ejb.Remote; +import org.mxchange.jcontactsbusiness.exceptions.opening_time.OpeningTimeNotFoundException; + +/** + * A remote interface for opening times + *

+ * @author Roland Häder + */ +@Remote +public interface OpeningTimeSessionBeanRemote extends Serializable { + + /** + * Retrieves a single company department entity for given id number or + * throws a proper exception if not found. + *

+ * @param openingId Company department id to lookup + *

+ * @return Company department instance + *

+ * @throws OpeningTimeNotFoundException If the id number could not be looked + * up and solved into an entity + */ + OpeningTime findOpeningTimesById (final Long openingId) throws OpeningTimeNotFoundException; + + /** + * Returns a list, even empty if not thing found, from all opening times. + * NULL should not be returned by this method. + *

+ * @return A list with all opening times + */ + List allOpeningTimes (); + +} diff --git a/src/org/mxchange/jcontactsbusiness/model/opening_times/AdminOpeningTimesSessionBeanRemote.java b/src/org/mxchange/jcontactsbusiness/model/opening_times/AdminOpeningTimesSessionBeanRemote.java deleted file mode 100644 index 515faa1..0000000 --- a/src/org/mxchange/jcontactsbusiness/model/opening_times/AdminOpeningTimesSessionBeanRemote.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 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.jcontactsbusiness.model.opening_times; - -import java.io.Serializable; -import javax.ejb.Remote; - -/** - * A remote interface for opening times - *

- * @author Roland Häder - */ -@Remote -public interface AdminOpeningTimesSessionBeanRemote extends Serializable { - - /** - * Adds a given opening time instance to the database. Please note that this - * method will add opening time regardless if found as it is not assigned to - * any other entity (at this point of time). - *

- * @param openingTime OpeningTime instance to add - *

- * @return Updated opening time instance - */ - OpeningTimes addOpeningTime (final OpeningTimes openingTime); - -} diff --git a/src/org/mxchange/jcontactsbusiness/model/opening_times/OpeningTimesSessionBeanRemote.java b/src/org/mxchange/jcontactsbusiness/model/opening_times/OpeningTimesSessionBeanRemote.java deleted file mode 100644 index 8172557..0000000 --- a/src/org/mxchange/jcontactsbusiness/model/opening_times/OpeningTimesSessionBeanRemote.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 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.jcontactsbusiness.model.opening_times; - -import java.io.Serializable; -import java.util.List; -import javax.ejb.Remote; -import org.mxchange.jcontactsbusiness.exceptions.opening_times.OpeningTimesNotFoundException; - -/** - * A remote interface for opening times - *

- * @author Roland Häder - */ -@Remote -public interface OpeningTimesSessionBeanRemote extends Serializable { - - /** - * Retrieves a single company department entity for given id number or - * throws a proper exception if not found. - *

- * @param openingId Company department id to lookup - *

- * @return Company department instance - *

- * @throws OpeningTimesNotFoundException If the id number could not be looked - * up and solved into an entity - */ - OpeningTimes findOpeningTimesById (final Long openingId) throws OpeningTimesNotFoundException; - - /** - * Returns a list, even empty if not thing found, from all opening times. - * NULL should not be returned by this method. - *

- * @return A list with all opening times - */ - List allOpeningTimes (); - -}