From: Roland Häder Date: Mon, 26 Jun 2017 21:43:28 +0000 (+0200) Subject: Rewrite continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2bc8efd1868d8e6fb9ead1b3d7f51aeac08f6e5b;p=jfinancials-ejb.git Rewrite continued: - Now all project-specific abstract web beans (controllers) inherit from BaseFacesBean to have these nice showFacesMessage() methods. - Also all project-specific abstract EJBs inherit now only BaseDataBean (one was missing in an old project) - So, if you have a WAR project, inherit from BaseFacesBean, if you have an EJB project, inherit from BaseDatabaseBean Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/jcountry/data/FinancialsCountrySingletonBean.java b/src/java/org/mxchange/jcountry/data/FinancialsCountrySingletonBean.java index f18462a..71f09aa 100644 --- a/src/java/org/mxchange/jcountry/data/FinancialsCountrySingletonBean.java +++ b/src/java/org/mxchange/jcountry/data/FinancialsCountrySingletonBean.java @@ -23,8 +23,8 @@ import javax.ejb.Singleton; import javax.ejb.Startup; import javax.persistence.NoResultException; import javax.persistence.Query; -import org.mxchange.jcoreee.database.BaseDatabaseBean; import org.mxchange.jcountry.exceptions.CountryAlreadyAddedException; +import org.mxchange.jfinancials.database.BaseFinancialsDatabaseBean; /** * A singleton EJB for country informations @@ -33,7 +33,7 @@ import org.mxchange.jcountry.exceptions.CountryAlreadyAddedException; */ @Startup @Singleton (name = "country", description = "A singleton session-scoped bean for country informations") -public class FinancialsCountrySingletonBean extends BaseDatabaseBean implements CountrySingletonBeanRemote { +public class FinancialsCountrySingletonBean extends BaseFinancialsDatabaseBean implements CountrySingletonBeanRemote { /** * Serial number diff --git a/src/java/org/mxchange/jfinancials/mailer/model/delivery/FinancialsEmailDeliveryMessageBean.java b/src/java/org/mxchange/jfinancials/mailer/model/delivery/FinancialsEmailDeliveryMessageBean.java index 12913db..51f5ba3 100644 --- a/src/java/org/mxchange/jfinancials/mailer/model/delivery/FinancialsEmailDeliveryMessageBean.java +++ b/src/java/org/mxchange/jfinancials/mailer/model/delivery/FinancialsEmailDeliveryMessageBean.java @@ -65,7 +65,7 @@ public class FinancialsEmailDeliveryMessageBean extends BaseFinancialsDatabaseBe */ public FinancialsEmailDeliveryMessageBean () { // Call super constructor - super(); + super("jms/jfinancials-queue-factory", "jms/jfinancials-email-queue"); //NOI18N // Init mailer instance this.mailer = new FinancialsMailer(); diff --git a/src/java/org/mxchange/jphone/phonenumbers/mobileprovider/FinancialsAdminMobileProviderSessionBean.java b/src/java/org/mxchange/jphone/phonenumbers/mobileprovider/FinancialsAdminMobileProviderSessionBean.java index 3e93d0a..4263b68 100644 --- a/src/java/org/mxchange/jphone/phonenumbers/mobileprovider/FinancialsAdminMobileProviderSessionBean.java +++ b/src/java/org/mxchange/jphone/phonenumbers/mobileprovider/FinancialsAdminMobileProviderSessionBean.java @@ -19,7 +19,7 @@ package org.mxchange.jphone.phonenumbers.mobileprovider; import java.text.MessageFormat; import java.util.GregorianCalendar; import javax.ejb.Stateless; -import org.mxchange.jcoreee.database.BaseDatabaseBean; +import org.mxchange.jfinancials.database.BaseFinancialsDatabaseBean; import org.mxchange.jphone.exceptions.MobileProviderAlreadyAddedException; /** @@ -28,7 +28,7 @@ import org.mxchange.jphone.exceptions.MobileProviderAlreadyAddedException; * @author Roland Häder */ @Stateless (name = "adminMobileProvider", description = "A singleton session-scoped bean for mobile provider informations, admin-edition") -public class FinancialsAdminMobileProviderSessionBean extends BaseDatabaseBean implements AdminMobileProviderSessionBeanRemote { +public class FinancialsAdminMobileProviderSessionBean extends BaseFinancialsDatabaseBean implements AdminMobileProviderSessionBeanRemote { /** * Serial number diff --git a/src/java/org/mxchange/jphone/phonenumbers/mobileprovider/FinancialsMobileProviderSingletonBean.java b/src/java/org/mxchange/jphone/phonenumbers/mobileprovider/FinancialsMobileProviderSingletonBean.java index 14277fd..7b016a1 100644 --- a/src/java/org/mxchange/jphone/phonenumbers/mobileprovider/FinancialsMobileProviderSingletonBean.java +++ b/src/java/org/mxchange/jphone/phonenumbers/mobileprovider/FinancialsMobileProviderSingletonBean.java @@ -21,7 +21,7 @@ import java.util.List; import javax.ejb.Singleton; import javax.ejb.Startup; import javax.persistence.Query; -import org.mxchange.jcoreee.database.BaseDatabaseBean; +import org.mxchange.jfinancials.database.BaseFinancialsDatabaseBean; /** * A singleton EJB for mobile provider informations @@ -30,7 +30,7 @@ import org.mxchange.jcoreee.database.BaseDatabaseBean; */ @Startup @Singleton (name = "mobileprovider", description = "A singleton session-scoped bean for SMS provider informations") -public class FinancialsMobileProviderSingletonBean extends BaseDatabaseBean implements MobileProviderSingletonBeanRemote { +public class FinancialsMobileProviderSingletonBean extends BaseFinancialsDatabaseBean implements MobileProviderSingletonBeanRemote { /** * Serial number diff --git a/src/java/org/mxchange/jphone/phonenumbers/phone/FinancialsPhoneSessionBean.java b/src/java/org/mxchange/jphone/phonenumbers/phone/FinancialsPhoneSessionBean.java index 2d695d9..c0258e9 100644 --- a/src/java/org/mxchange/jphone/phonenumbers/phone/FinancialsPhoneSessionBean.java +++ b/src/java/org/mxchange/jphone/phonenumbers/phone/FinancialsPhoneSessionBean.java @@ -21,7 +21,7 @@ import java.util.List; import javax.ejb.Stateless; import javax.persistence.NoResultException; import javax.persistence.Query; -import org.mxchange.jcoreee.database.BaseDatabaseBean; +import org.mxchange.jfinancials.database.BaseFinancialsDatabaseBean; import org.mxchange.jphone.exceptions.PhoneEntityNotFoundException; import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber; import org.mxchange.jphone.phonenumbers.fax.FaxNumber; @@ -36,7 +36,7 @@ import org.mxchange.jphone.phonenumbers.mobile.MobileNumber; * @author Roland Häder */ @Stateless (name = "phone", description = "A bean handling phone data") -public class FinancialsPhoneSessionBean extends BaseDatabaseBean implements PhoneSessionBeanRemote { +public class FinancialsPhoneSessionBean extends BaseFinancialsDatabaseBean implements PhoneSessionBeanRemote { /** * Serial number diff --git a/src/java/org/mxchange/jusercore/model/login/FinancialsUserLoginSessionBean.java b/src/java/org/mxchange/jusercore/model/login/FinancialsUserLoginSessionBean.java index eb60af9..a019857 100644 --- a/src/java/org/mxchange/jusercore/model/login/FinancialsUserLoginSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/login/FinancialsUserLoginSessionBean.java @@ -16,20 +16,20 @@ */ package org.mxchange.jusercore.model.login; -import org.mxchange.jusercore.model.login.user.UserLoginSessionBeanRemote; import java.text.MessageFormat; import javax.ejb.EJB; import javax.ejb.Stateless; -import org.mxchange.jcoreee.database.BaseDatabaseBean; +import org.mxchange.jfinancials.database.BaseFinancialsDatabaseBean; import org.mxchange.jusercore.container.login.LoginContainer; import org.mxchange.jusercore.exceptions.UserNotFoundException; import org.mxchange.jusercore.exceptions.UserPasswordMismatchException; import org.mxchange.jusercore.exceptions.UserStatusLockedException; import org.mxchange.jusercore.exceptions.UserStatusUnconfirmedException; -import org.mxchange.jusercore.model.user.register.UserRegistrationSessionBeanRemote; +import org.mxchange.jusercore.model.login.user.UserLoginSessionBeanRemote; import org.mxchange.jusercore.model.user.User; import org.mxchange.jusercore.model.user.UserSessionBeanRemote; import org.mxchange.jusercore.model.user.UserUtils; +import org.mxchange.jusercore.model.user.register.UserRegistrationSessionBeanRemote; import org.mxchange.jusercore.model.user.status.UserAccountStatus; /** @@ -38,7 +38,7 @@ import org.mxchange.jusercore.model.user.status.UserAccountStatus; * @author Roland Häder */ @Stateless (name = "login", description = "A bean handling the user login for Financials project") -public class FinancialsUserLoginSessionBean extends BaseDatabaseBean implements UserLoginSessionBeanRemote { +public class FinancialsUserLoginSessionBean extends BaseFinancialsDatabaseBean implements UserLoginSessionBeanRemote { /** * Serial number