From: Roland Haeder Date: Tue, 12 Apr 2016 18:28:47 +0000 (+0200) Subject: Renamed package smsprovider -> mobileprovider. They don't only provide SMS but also... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e1532325fd94b061cf7927ac9e0b7e0249bacd76;p=jfinancials-mailer-ejb.git Renamed package smsprovider -> mobileprovider. They don't only provide SMS but also many other mobile services. --- diff --git a/lib/jphone-core.jar b/lib/jphone-core.jar index ec8a9b9..251994e 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 2fc3981..874d4e7 100644 Binary files a/lib/jphone-lib.jar and b/lib/jphone-lib.jar differ diff --git a/src/conf/persistence.xml b/src/conf/persistence.xml index 844b7f3..6a6d686 100644 --- a/src/conf/persistence.xml +++ b/src/conf/persistence.xml @@ -19,7 +19,7 @@ org.mxchange.jphone.phonenumbers.cellphone.CellphoneNumber org.mxchange.jphone.phonenumbers.fax.FaxNumber org.mxchange.jphone.phonenumbers.landline.LandLineNumber - org.mxchange.jphone.phonenumbers.smsprovider.CellphoneProvider + org.mxchange.jphone.phonenumbers.MobileProvider.CellphoneProvider org.mxchange.jusercore.model.email_address.EmailAddressChange org.mxchange.jusercore.model.user.LoginUser false diff --git a/src/java/org/mxchange/jphone/phonenumbers/mobileprovider/AddressbookMobileProviderSingletonBean.java b/src/java/org/mxchange/jphone/phonenumbers/mobileprovider/AddressbookMobileProviderSingletonBean.java new file mode 100644 index 0000000..46983e6 --- /dev/null +++ b/src/java/org/mxchange/jphone/phonenumbers/mobileprovider/AddressbookMobileProviderSingletonBean.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.mobileprovider; + +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 = "MobileProvider", mappedName = "ejb/addressbook-singleton-MobileProvider", description = "A singleton session bean for SMS provider informations") +public class AddressbookMobileProviderSingletonBean 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/AddressbookMobileProviderSingletonBean.java b/src/java/org/mxchange/jphone/phonenumbers/smsprovider/AddressbookMobileProviderSingletonBean.java deleted file mode 100644 index a77dfb3..0000000 --- a/src/java/org/mxchange/jphone/phonenumbers/smsprovider/AddressbookMobileProviderSingletonBean.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/addressbook-singleton-smsprovider", description = "A singleton session bean for SMS provider informations") -public class AddressbookMobileProviderSingletonBean 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(); - } - -}