} else if (null == mobileNumber) {
// Throw NPE
throw new NullPointerException("mobileNumber is null"); //NOI18N
- } else if (mobileNumber.getPhoneId() == null) {
+ } else if (mobileNumber.getMobileId() == null) {
// Throw it again
throw new NullPointerException("mobileNumber.phoneId is null"); //NOI18N
- } else if (mobileNumber.getPhoneId() < 1) {
+ } else if (mobileNumber.getMobileId() < 1) {
// Invalid id
- throw new IllegalArgumentException(MessageFormat.format("mobileNumber.phoneId={0} is not valid", mobileNumber.getPhoneId())); //NOI18N
+ throw new IllegalArgumentException(MessageFormat.format("mobileNumber.phoneId={0} is not valid", mobileNumber.getMobileId())); //NOI18N
} else if (mobileNumber.getMobileProvider() == null) {
// Throw NPE again
throw new NullPointerException("mobileNumber.mobileProvider is null"); //NOI18N
} else if (null == mobileNumber) {
// Throw NPE
throw new NullPointerException("mobileNumber is null"); //NOI18N
- } else if (mobileNumber.getPhoneId() instanceof Long) {
+ } else if (mobileNumber.getMobileId() instanceof Long) {
// Throw it again
- throw new IllegalStateException(MessageFormat.format("mobileNumber.phoneId={0} is not null", mobileNumber.getPhoneId())); //NOI18N
+ throw new IllegalStateException(MessageFormat.format("mobileNumber.phoneId={0} is not null", mobileNumber.getMobileId())); //NOI18N
} else if (mobileNumber.getMobileProvider() == null) {
// Throw NPE again
throw new NullPointerException("mobileNumber.mobileProvider is null"); //NOI18N
}
// Set created instance
- mobileNumber.setPhoneEntryCreated(new Date());
+ mobileNumber.setMobileEntryCreated(new Date());
// Set mobile number in contact
contact.setContactMobileNumber(mobileNumber);
} else if (contact.getContactMobileNumber() == null) {
// Not set cell phone instance
throw new PhoneNumberNotLinkedException(mobileNumber);
- } else if (contact.getContactMobileNumber().getPhoneId() == null) {
+ } else if (contact.getContactMobileNumber().getMobileId() == null) {
// Throw NPE again
throw new NullPointerException("contact.contactMobileNumber.phoneId is null"); //NOI18N
- } else if (contact.getContactMobileNumber().getPhoneId() < 1) {
+ } else if (contact.getContactMobileNumber().getMobileId() < 1) {
// Invalid id number
- throw new IllegalArgumentException(MessageFormat.format("contact.contactMobileNumber.phoneId={0} is invalid.", contact.getContactMobileNumber().getPhoneId())); //NOI18N
- } else if (!Objects.equals(mobileNumber.getPhoneId(), contact.getContactMobileNumber().getPhoneId())) {
+ throw new IllegalArgumentException(MessageFormat.format("contact.contactMobileNumber.phoneId={0} is invalid.", contact.getContactMobileNumber().getMobileId())); //NOI18N
+ } else if (!Objects.equals(mobileNumber.getMobileId(), contact.getContactMobileNumber().getMobileId())) {
// Not same object
- throw new IllegalArgumentException(MessageFormat.format("contact.contactMobileNumber.phoneId={0} and mobileNumber.phoneId={1} are not the same.", contact.getContactMobileNumber().getPhoneId(), mobileNumber.getPhoneId())); //NOI18N
+ throw new IllegalArgumentException(MessageFormat.format("contact.contactMobileNumber.phoneId={0} and mobileNumber.phoneId={1} are not the same.", contact.getContactMobileNumber().getMobileId(), mobileNumber.getMobileId())); //NOI18N
}
// Remove it from contact