]> git.mxchange.org Git - jjobs-ejb.git/commitdiff
Continued cleanup:
authorRoland Haeder <roland@mxchange.org>
Thu, 28 Apr 2016 19:17:40 +0000 (21:17 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 28 Apr 2016 19:18:24 +0000 (21:18 +0200)
- use new BaseJobsDatabaseBean to have it's functionalities
- removed mapped names

12 files changed:
src/java/org/mxchange/jcontacts/contact/JobsContactSessionBean.java
src/java/org/mxchange/jcountry/data/JobsCountrySingletonBean.java
src/java/org/mxchange/jjobs/model/addressbook/JobsAddressbookSessionBean.java
src/java/org/mxchange/jphone/phonenumbers/mobileprovider/JobsAdminMobileProviderSessionBean.java
src/java/org/mxchange/jphone/phonenumbers/mobileprovider/JobsMobileProviderSingletonBean.java
src/java/org/mxchange/jphone/phonenumbers/phone/JobsAdminContactPhoneSessionBean.java
src/java/org/mxchange/jphone/phonenumbers/phone/JobsAdminPhoneSessionBean.java
src/java/org/mxchange/jphone/phonenumbers/phone/JobsPhoneSessionBean.java
src/java/org/mxchange/jusercore/model/email_address/JobsEmailChangeSessionBean.java
src/java/org/mxchange/jusercore/model/login/JobsUserLoginSessionBean.java
src/java/org/mxchange/jusercore/model/register/JobsUserRegistrationSessionBean.java
src/java/org/mxchange/jusercore/model/user/JobsUserSessionBean.java

index 77f8dcfadf0c03afcf1a6539cd2a356ac49f1c86..213fd36db05bb0de7ab29698ced52ce66b0f6c3a 100644 (file)
@@ -26,6 +26,7 @@ import javax.persistence.Query;
 import org.mxchange.jcontacts.contact.utils.ContactUtils;
 import org.mxchange.jcontacts.exceptions.ContactAlreadyAddedException;
 import org.mxchange.jcontacts.exceptions.ContactNotFoundException;
+import org.mxchange.jjobs.database.BaseJobsDatabaseBean;
 
 /**
  * A contact EJB
@@ -33,7 +34,7 @@ import org.mxchange.jcontacts.exceptions.ContactNotFoundException;
  * @author Roland Haeder<roland@mxchange.org>
  */
 @Stateless (name = "contact", description = "A bean handling contact data")
-public class AddressbookContactSessionBean extends BaseAddressbookDatabaseBean implements ContactSessionBeanRemote {
+public class JobsContactSessionBean extends BaseJobsDatabaseBean implements ContactSessionBeanRemote {
 
        /**
         * Serial number
@@ -47,7 +48,7 @@ public class AddressbookContactSessionBean extends BaseAddressbookDatabaseBean i
        }
 
        @Override
-       public Contact addContact (Contact contact) throws ContactAlreadyAddedException {
+       public Contact addContact (final Contact contact) throws ContactAlreadyAddedException {
                throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
        }
 
index 26f778653be739cbbc8a177af5378396b5925cd8..3b31995a05d3f590055a66efecbee0b16122fec3 100644 (file)
@@ -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.jjobs.database.BaseJobsDatabaseBean;
 
 /**
  * A singleton EJB for country informations
@@ -32,8 +32,8 @@ import org.mxchange.jcountry.exceptions.CountryAlreadyAddedException;
  * @author Roland Haeder<roland@mxchange.org>
  */
 @Startup
-@Singleton (name = "country", mappedName = "ejb/jjobs-singleton-country", description = "A singleton session bean for country informations")
-public class JobsCountrySingletonBean extends BaseDatabaseBean implements CountrySingletonBeanRemote {
+@Singleton (name = "country", description = "A singleton session bean for country informations")
+public class JobsCountrySingletonBean extends BaseJobsDatabaseBean implements CountrySingletonBeanRemote {
 
        /**
         * Serial number
index 22c4a131621395358011a84e06a601583a2b4752..7513a0799295b9f24202218f800783696e770cde 100644 (file)
@@ -28,7 +28,7 @@ import org.mxchange.jaddressbookcore.exceptions.AddressbookNotFoundException;
 import org.mxchange.jaddressbookcore.model.addressbook.Addressbook;
 import org.mxchange.jaddressbookcore.model.addressbook.UserAddressbook;
 import org.mxchange.jaddressbookcore.model.addressbook.entry.AddressbookEntry;
-import org.mxchange.jcoreee.database.BaseDatabaseBean;
+import org.mxchange.jjobs.database.BaseJobsDatabaseBean;
 import org.mxchange.jusercore.model.user.User;
 
 /**
@@ -36,8 +36,8 @@ import org.mxchange.jusercore.model.user.User;
  * <p>
  * @author Roland Haeder<roland@mxchange.org>
  */
-@Stateless (name = "addressbook", mappedName = "ejb/stateless-jjobs-adr", description = "A stateless bean for handling JJobs addressbooks")
-public class JobsAddressbookSessionBean extends BaseDatabaseBean implements AddressbookSessionBeanRemote {
+@Stateless (name = "addressbook", description = "A stateless bean for handling JJobs addressbooks")
+public class JobsAddressbookSessionBean extends BaseJobsDatabaseBean implements AddressbookSessionBeanRemote {
 
        /**
         * Serial number
index 60bcee6c351172e4ea17f987168dfc4118f0cebe..b74f2484b19c9ad9403fa59bb82fe6dcb6f115c1 100644 (file)
@@ -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.jjobs.database.BaseJobsDatabaseBean;
 import org.mxchange.jphone.exceptions.MobileProviderAlreadyAddedException;
 
 /**
@@ -28,7 +28,7 @@ import org.mxchange.jphone.exceptions.MobileProviderAlreadyAddedException;
  * @author Roland Haeder<roland@mxchange.org>
  */
 @Stateless (name = "adminmobileprovider", description = "A singleton session bean for mobile provider informations, admin-edition")
-public class JobsAdminMobileProviderSessionBean extends BaseDatabaseBean implements AdminMobileProviderSessionBeanRemote {
+public class JobsAdminMobileProviderSessionBean extends BaseJobsDatabaseBean implements AdminMobileProviderSessionBeanRemote {
 
        /**
         * Serial number
index 6f7677da0ff4ad8856d8b18da4e9a080efce1b15..2e28ab52ae21dd30df86c3ba122727d7c5563aba 100644 (file)
@@ -20,7 +20,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.jjobs.database.BaseJobsDatabaseBean;
 
 /**
  * A singleton EJB for mobile provider informations
@@ -28,8 +28,8 @@ import org.mxchange.jcoreee.database.BaseDatabaseBean;
  * @author Roland Haeder<roland@mxchange.org>
  */
 @Startup
-@Singleton (name = "mobileprovider", mappedName = "ejb/jjobs-singleton-mobile-provider", description = "A singleton session bean for SMS provider informations")
-public class JobsMobileProviderSingletonBean extends BaseDatabaseBean implements MobileProviderSingletonBeanRemote {
+@Singleton (name = "mobileprovider", description = "A singleton session bean for SMS provider informations")
+public class JobsMobileProviderSingletonBean extends BaseJobsDatabaseBean implements MobileProviderSingletonBeanRemote {
 
        /**
         * Serial number
index cecc04dcadfb75bdfc97fa94aeba11006621ac63..69f38b0601c0695967ccfd0c2cfaca9b7c26b1b3 100644 (file)
@@ -23,7 +23,7 @@ import javax.persistence.NoResultException;
 import javax.persistence.Query;
 import org.mxchange.jcontacts.contact.Contact;
 import org.mxchange.jcontacts.phone.AdminContactsPhoneSessionBeanRemote;
-import org.mxchange.jcoreee.database.BaseDatabaseBean;
+import org.mxchange.jjobs.database.BaseJobsDatabaseBean;
 import org.mxchange.jphone.phonenumbers.cellphone.DialableCellphoneNumber;
 
 /**
@@ -31,8 +31,8 @@ import org.mxchange.jphone.phonenumbers.cellphone.DialableCellphoneNumber;
  * <p>
  * @author Roland Haeder<roland@mxchange.org>
  */
-@Stateless (name = "admincontactphone", mappedName = "ejb/stateless-jjobs-admin-contact-phone", description = "An administrative bean handling contact's phone data")
-public class JobsAdminContactPhoneSessionBean extends BaseDatabaseBean implements AdminContactsPhoneSessionBeanRemote {
+@Stateless (name = "admincontactphone", description = "An administrative bean handling contact's phone data")
+public class JobsAdminContactPhoneSessionBean extends BaseJobsDatabaseBean implements AdminContactsPhoneSessionBeanRemote {
 
        /**
         * Serial number
index f32c3e0a61921d9e70988a6c79c25e4b581da2f9..187d1d446b7903504d99f983b6afdae63b26d640 100644 (file)
 package org.mxchange.jphone.phonenumbers.phone;
 
 import javax.ejb.Stateless;
-import org.mxchange.jcoreee.database.BaseDatabaseBean;
+import org.mxchange.jjobs.database.BaseJobsDatabaseBean;
 
 /**
  * An EJB for administrative phone purposes
  * <p>
  * @author Roland Haeder<roland@mxchange.org>
  */
-@Stateless (name = "adminphone", mappedName = "ejb/stateless-jjobs-admin-phone", description = "An administrative bean handling phone data")
-public class JobsAdminPhoneSessionBean extends BaseDatabaseBean implements AdminPhoneSessionBeanRemote {
+@Stateless (name = "adminphone", description = "An administrative bean handling phone data")
+public class JobsAdminPhoneSessionBean extends BaseJobsDatabaseBean implements AdminPhoneSessionBeanRemote {
 
        /**
         * Serial number
index 92b8431c4b41e77a40b06513bc38bfa166651f5a..0766c46f8f352acd06e87a90b61f2d320c7d0ea1 100644 (file)
@@ -20,7 +20,7 @@ import java.text.MessageFormat;
 import javax.ejb.Stateless;
 import javax.persistence.NoResultException;
 import javax.persistence.Query;
-import org.mxchange.jcoreee.database.BaseDatabaseBean;
+import org.mxchange.jjobs.database.BaseJobsDatabaseBean;
 import org.mxchange.jphone.exceptions.PhoneEntityNotFoundException;
 import org.mxchange.jphone.phonenumbers.cellphone.CellphoneNumber;
 import org.mxchange.jphone.phonenumbers.cellphone.DialableCellphoneNumber;
@@ -30,8 +30,8 @@ import org.mxchange.jphone.phonenumbers.cellphone.DialableCellphoneNumber;
  * <p>
  * @author Roland Haeder<roland@mxchange.org>
  */
-@Stateless (name = "phone", mappedName = "ejb/stateless-jjobs-phone", description = "A bean handling phone data")
-public class JobsPhoneSessionBean extends BaseDatabaseBean implements PhoneSessionBeanRemote {
+@Stateless (name = "phone", description = "A bean handling phone data")
+public class JobsPhoneSessionBean extends BaseJobsDatabaseBean implements PhoneSessionBeanRemote {
 
        /**
         * Serial number
index ff2afb92cefa4e13c997d67166d5e5315ae92842..757b762b2cde93f8ff54c80d61ee4f1ec303fbfc 100644 (file)
@@ -36,7 +36,7 @@ import javax.naming.InitialContext;
 import javax.naming.NamingException;
 import javax.persistence.NoResultException;
 import javax.persistence.Query;
-import org.mxchange.jcoreee.database.BaseDatabaseBean;
+import org.mxchange.jjobs.database.BaseJobsDatabaseBean;
 import org.mxchange.jjobsmailer.model.delivery.DeliverableJobsEmail;
 import org.mxchange.jjobsmailer.model.delivery.JobsMailer;
 import org.mxchange.jusercore.model.user.UserSessionBeanRemote;
@@ -47,8 +47,8 @@ import org.mxchange.jusercore.model.user.UserUtils;
  * <p>
  * @author Roland Haeder<roland@mxchange.org>
  */
-@Stateless (name = "email-change", mappedName = "ejb/stateless-jjobs-email-change", description = "A bean handling email changes")
-public class JobsEmailChangeSessionBean extends BaseDatabaseBean implements EmailChangeSessionBeanRemote {
+@Stateless (name = "email-change", description = "A bean handling email changes")
+public class JobsEmailChangeSessionBean extends BaseJobsDatabaseBean implements EmailChangeSessionBeanRemote {
 
        /**
         * Serial number
index fa34ff2792b542a54cf5c5cf5c7c9c7e505de716..dd74ed123b258ff2f005fc4b14d64e93cc378c2a 100644 (file)
@@ -19,7 +19,7 @@ package org.mxchange.jusercore.model.login;
 import java.text.MessageFormat;
 import javax.ejb.EJB;
 import javax.ejb.Stateless;
-import org.mxchange.jcoreee.database.BaseDatabaseBean;
+import org.mxchange.jjobs.database.BaseJobsDatabaseBean;
 import org.mxchange.jusercore.container.login.LoginContainer;
 import org.mxchange.jusercore.exceptions.UserNotFoundException;
 import org.mxchange.jusercore.exceptions.UserPasswordMismatchException;
@@ -36,8 +36,8 @@ import org.mxchange.jusercore.model.user.status.UserAccountStatus;
  * <p>
  * @author Roland Haeder<roland@mxchange.org>
  */
-@Stateless (name = "login", mappedName = "ejb/stateless-jjobs-login", description = "A bean handling the user login")
-public class JobsUserLoginSessionBean extends BaseDatabaseBean implements UserLoginSessionBeanRemote {
+@Stateless (name = "login", description = "A bean handling the user login")
+public class JobsUserLoginSessionBean extends BaseJobsDatabaseBean implements UserLoginSessionBeanRemote {
 
        /**
         * Serial number
index 61dfec5c4e584ff89866061699dc90937f25a722..6d86e5b0e3d18bab2e1b402125303111a0934f6c 100644 (file)
@@ -19,7 +19,7 @@ package org.mxchange.jusercore.model.register;
 import java.text.MessageFormat;
 import javax.ejb.EJB;
 import javax.ejb.Stateless;
-import org.mxchange.jcoreee.database.BaseDatabaseBean;
+import org.mxchange.jjobs.database.BaseJobsDatabaseBean;
 import org.mxchange.jusercore.exceptions.EmailAddressAlreadyRegisteredException;
 import org.mxchange.jusercore.exceptions.UserNameAlreadyRegisteredException;
 import org.mxchange.jusercore.model.user.User;
@@ -30,8 +30,8 @@ import org.mxchange.jusercore.model.user.UserSessionBeanRemote;
  * <p>
  * @author Roland Haeder<roland@mxchange.org>
  */
-@Stateless (name = "register", mappedName = "ejb/stateless-jjobs-register", description = "A bean handling the user registration")
-public class JobsUserRegistrationSessionBean extends BaseDatabaseBean implements UserRegistrationSessionBeanRemote {
+@Stateless (name = "register", description = "A bean handling the user registration")
+public class JobsUserRegistrationSessionBean extends BaseJobsDatabaseBean implements UserRegistrationSessionBeanRemote {
 
        /**
         * Serial number
index 8e54cb498c11563b598de66b5a6801cc34936b21..203f60177cf11609d6ce16ebd75fdbe31ca1c095 100644 (file)
@@ -26,7 +26,7 @@ import javax.persistence.NoResultException;
 import javax.persistence.PersistenceException;
 import javax.persistence.Query;
 import org.mxchange.jcontacts.contact.Contact;
-import org.mxchange.jcoreee.database.BaseDatabaseBean;
+import org.mxchange.jjobs.database.BaseJobsDatabaseBean;
 import org.mxchange.jphone.phonenumbers.cellphone.DialableCellphoneNumber;
 import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
 import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
@@ -42,8 +42,8 @@ import org.mxchange.jusercore.model.user.status.UserAccountStatus;
  * <p>
  * @author Roland Haeder<roland@mxchange.org>
  */
-@Stateless (name = "user", mappedName = "ejb/stateless-jjobs-user", description = "A bean handling the user data")
-public class JobsUserSessionBean extends BaseDatabaseBean implements UserSessionBeanRemote {
+@Stateless (name = "user", description = "A bean handling the user data")
+public class JobsUserSessionBean extends BaseJobsDatabaseBean implements UserSessionBeanRemote {
 
        /**
         * Serial number