*/
package org.mxchange.jcontacts.model.contact;
-import org.mxchange.jcontacts.model.contact.AdminContactSessionBeanRemote;
-import org.mxchange.jcontacts.model.contact.Contact;
import java.text.MessageFormat;
import java.util.GregorianCalendar;
import javax.ejb.Stateless;
*/
package org.mxchange.jcontacts.model.contact;
-import org.mxchange.jcontacts.model.contact.ContactSessionBeanRemote;
-import org.mxchange.jcontacts.model.contact.UserContact;
-import org.mxchange.jcontacts.model.contact.Contact;
-import org.mxchange.jcontacts.model.contact.ContactUtils;
import java.text.MessageFormat;
import java.util.Iterator;
import java.util.List;
if (null == contact) {
// Throw NPE
throw new NullPointerException("contact is null"); //NOI18N
- } else if (contact.getContactId() > 0) {
+ } else if ((contact.getContactId() instanceof Long) && (contact.getContactId() > 0)) {
try {
// Id set, ask other method
return this.findContactById(contact.getContactId());
import javax.ejb.Stateless;
import org.mxchange.jcontacts.model.contact.Contact;
import org.mxchange.jcontacts.model.contact.ContactSessionBeanRemote;
-import org.mxchange.jcontacts.model.phone.AdminContactsPhoneSessionBeanRemote;
import org.mxchange.jfinancials.database.BaseFinancialsDatabaseBean;
import org.mxchange.jphone.exceptions.PhoneNumberAlreadyLinkedException;
import org.mxchange.jphone.exceptions.PhoneNumberNotLinkedException;
*/
package org.mxchange.jcontactsbusiness.model.basicdata;
-import org.mxchange.jcontactsbusiness.model.basicdata.BusinessBasicData;
import java.text.MessageFormat;
import java.util.GregorianCalendar;
import java.util.List;
import javax.ejb.Stateless;
import org.mxchange.jcontactsbusiness.basicdata.AdminBusinessDataSessionBeanRemote;
import org.mxchange.jcontactsbusiness.basicdata.BusinessDataSessionBeanRemote;
-import org.mxchange.jcontactsbusiness.model.employee.Employee;
import org.mxchange.jcontactsbusiness.exceptions.basicdata.BusinessDataAlreadyAddedException;
+import org.mxchange.jcontactsbusiness.model.employee.Employee;
import org.mxchange.jfinancials.database.BaseFinancialsDatabaseBean;
import org.mxchange.jusercore.model.user.User;
*/
package org.mxchange.jcontactsbusiness.model.basicdata;
-import org.mxchange.jcontactsbusiness.model.basicdata.BusinessBasicData;
-import org.mxchange.jcontactsbusiness.model.basicdata.CompanyBasicData;
import java.text.MessageFormat;
import java.util.List;
import java.util.Objects;
*/
package org.mxchange.jcontactsbusiness.model.branchoffice;
-import org.mxchange.jcontactsbusiness.model.branchoffice.BranchOffice;
import java.text.MessageFormat;
import java.util.List;
import javax.ejb.Stateless;
*/
package org.mxchange.jcontactsbusiness.model.employee;
-import org.mxchange.jcontactsbusiness.model.employee.Employee;
import java.text.MessageFormat;
import java.util.List;
import javax.ejb.Stateless;
*/
package org.mxchange.jcountry.model.data;
-import org.mxchange.jcountry.model.data.CountrySingletonBeanRemote;
-import org.mxchange.jcountry.model.data.CountryData;
-import org.mxchange.jcountry.model.data.Country;
import java.text.MessageFormat;
import java.util.GregorianCalendar;
import java.util.List;
import javax.ejb.Stateless;
import org.mxchange.jfinancials.database.BaseFinancialsDatabaseBean;
import org.mxchange.jphone.exceptions.MobileProviderAlreadyAddedException;
-import org.mxchange.jphone.model.phonenumbers.mobileprovider.AdminMobileProviderSessionBeanRemote;
-import org.mxchange.jphone.model.phonenumbers.mobileprovider.MobileProvider;
/**
* An administrative singleton EJB for mobile provider informations