]> git.mxchange.org Git - jjobs-ejb.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Tue, 12 Sep 2017 23:14:39 +0000 (01:14 +0200)
committerRoland Häder <roland@mxchange.org>
Tue, 12 Sep 2017 23:17:25 +0000 (01:17 +0200)
- fixed imports, new class names

Signed-off-by: Roland Häder <roland@mxchange.org>
src/java/org/mxchange/jcontactsbusiness/model/basicdata/JobsAdminBusinessDataSessionBean.java
src/java/org/mxchange/jcontactsbusiness/model/basicdata/JobsBusinessDataSessionBean.java

index aa1c79ef90f81b288eee4cc4fa7c0afe4b7ec2a3..7e45d7919c9d6517ff94e69acb2003fd188b94d9 100644 (file)
@@ -22,7 +22,7 @@ import java.util.List;
 import java.util.Objects;
 import javax.ejb.EJB;
 import javax.ejb.Stateless;
-import org.mxchange.jcontactsbusiness.exceptions.basicdata.BusinessDataAlreadyAddedException;
+import org.mxchange.jcontactsbusiness.exceptions.basicdata.BasicCompanyDataAlreadyAddedException;
 import org.mxchange.jcontactsbusiness.model.employee.Employee;
 import org.mxchange.jjobs.database.BaseJobsDatabaseBean;
 import org.mxchange.jusercore.model.user.User;
@@ -55,7 +55,7 @@ public class JobsAdminBusinessDataSessionBean extends BaseJobsDatabaseBean imple
        }
 
        @Override
-       public BusinessBasicData addCompanyBasicData (final BusinessBasicData basicData) throws BusinessDataAlreadyAddedException {
+       public BusinessBasicData addCompanyBasicData (final BusinessBasicData basicData) throws BasicCompanyDataAlreadyAddedException {
                // Trace message
                this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.addBusinessBasicData: basicData={1} - CALLED!", this.getClass().getSimpleName(), basicData)); //NOI18N
 
@@ -68,7 +68,7 @@ public class JobsAdminBusinessDataSessionBean extends BaseJobsDatabaseBean imple
                        throw new IllegalArgumentException(MessageFormat.format("basicData.basicDataId={0} - is not null", basicData.getBasicDataId())); //NOI18N
                } else if (this.isSameCompanyNameAdded(basicData)) {
                        // Throw exception
-                       throw new BusinessDataAlreadyAddedException(basicData);
+                       throw new BasicCompanyDataAlreadyAddedException(basicData);
                }
 
                // Now add current date
index b5351b08a5dd5acbf5fce1b7a6d3d0ef20c51e8f..2092db5a557e553813fe74bf7ebee0329803c6bc 100644 (file)
@@ -22,8 +22,8 @@ import java.util.Objects;
 import javax.ejb.Stateless;
 import javax.persistence.NoResultException;
 import javax.persistence.Query;
-import org.mxchange.jcontactsbusiness.exceptions.basicdata.BusinessDataNotFoundException;
 import org.mxchange.jjobs.database.BaseJobsDatabaseBean;
+import org.mxchange.jcontactsbusiness.exceptions.basicdata.BasicCompanyDataNotFoundException;
 
 /**
  * A stateless session bean for business data
@@ -66,7 +66,7 @@ public class JobsBusinessDataSessionBean extends BaseJobsDatabaseBean implements
        }
 
        @Override
-       public BusinessBasicData findBasicDataById (final Long basicDataId) throws BusinessDataNotFoundException {
+       public BusinessBasicData findBasicDataById (final Long basicDataId) throws BasicCompanyDataNotFoundException {
                // Trace message
                this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.findBasicDataById: CALLED!", this.getClass().getSimpleName())); //NOI18N
 
@@ -88,7 +88,7 @@ public class JobsBusinessDataSessionBean extends BaseJobsDatabaseBean implements
                        this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.findBasicDataById: Found basicData={1}", this.getClass().getSimpleName(), basicData)); //NOI18N
                } catch (final NoResultException ex) {
                        // No result found
-                       throw new BusinessDataNotFoundException(basicDataId, ex);
+                       throw new BasicCompanyDataNotFoundException(basicDataId, ex);
                }
 
                // Trace message