From: Roland Haeder Date: Tue, 12 Apr 2016 18:10:20 +0000 (+0200) Subject: Changed interface (POJI) name SmsProvider to MobileProvider X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=773b8e8c38d5f8f4cf78f35953a9fb5ba5a72f7a;p=pizzaservice-ejb.git Changed interface (POJI) name SmsProvider to MobileProvider --- diff --git a/lib/jphone-core.jar b/lib/jphone-core.jar index f3842ac..ec8a9b9 100644 Binary files a/lib/jphone-core.jar and b/lib/jphone-core.jar differ diff --git a/lib/jphone-lib.jar b/lib/jphone-lib.jar index cd5aade..2fc3981 100644 Binary files a/lib/jphone-lib.jar and b/lib/jphone-lib.jar differ diff --git a/src/java/org/mxchange/jphone/phonenumbers/smsprovider/PizzaMobileProviderSingletonBean.java b/src/java/org/mxchange/jphone/phonenumbers/smsprovider/PizzaMobileProviderSingletonBean.java new file mode 100644 index 0000000..ac1bdd1 --- /dev/null +++ b/src/java/org/mxchange/jphone/phonenumbers/smsprovider/PizzaMobileProviderSingletonBean.java @@ -0,0 +1,49 @@ +/* + * Copyright (C) 2016 Roland Haeder + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ +package org.mxchange.jphone.phonenumbers.smsprovider; + +import java.util.List; +import javax.ejb.Singleton; +import javax.ejb.Startup; +import javax.persistence.Query; +import org.mxchange.jcoreee.database.BaseDatabaseBean; + +/** + * A singleton bean for SMS provider informations + *

+ * @author Roland Haeder + */ +@Startup +@Singleton (name = "smsprovider", mappedName = "ejb/pizzaservice-singleton-smsprovider", description = "A singleton session bean for SMS provider informations") +public class PizzaMobileProviderSingletonBean extends BaseDatabaseBean implements MobileProviderSingletonBeanRemote { + + /** + * Serial number + */ + private static final long serialVersionUID = 15_846_983_298_691_207L; + + @Override + @SuppressWarnings ("unchecked") + public List allMobileProvider () { + // Init query + Query query = this.getEntityManager().createNamedQuery("AllMobileProvider", List.class); //NOI18N + + // Return it + return query.getResultList(); + } + +} diff --git a/src/java/org/mxchange/jphone/phonenumbers/smsprovider/PizzaSmsProviderSingletonBean.java b/src/java/org/mxchange/jphone/phonenumbers/smsprovider/PizzaSmsProviderSingletonBean.java deleted file mode 100644 index c0d59e1..0000000 --- a/src/java/org/mxchange/jphone/phonenumbers/smsprovider/PizzaSmsProviderSingletonBean.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (C) 2016 Roland Haeder - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero 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 Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ -package org.mxchange.jphone.phonenumbers.smsprovider; - -import java.util.List; -import javax.ejb.Singleton; -import javax.ejb.Startup; -import javax.persistence.Query; -import org.mxchange.jcoreee.database.BaseDatabaseBean; - -/** - * A singleton bean for SMS provider informations - *

- * @author Roland Haeder - */ -@Startup -@Singleton (name = "smsprovider", mappedName = "ejb/pizzaservice-singleton-smsprovider", description = "A singleton session bean for SMS provider informations") -public class PizzaSmsProviderSingletonBean extends BaseDatabaseBean implements SmsProviderSingletonBeanRemote { - - /** - * Serial number - */ - private static final long serialVersionUID = 15_846_983_298_691_207L; - - @Override - @SuppressWarnings ("unchecked") - public List allSmsProvider () { - // Init query - Query query = this.getEntityManager().createNamedQuery("AllSmsProvider", List.class); //NOI18N - - // Return it - return query.getResultList(); - } - -}