import java.io.Serializable;
import javax.ejb.Remote;
-import org.mxchange.jphone.phonenumbers.cellphone.DialableCellphoneNumber;
+import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber;
/**
* A remote administrative interface for any kind of phone numbers.
* <p>
* @param cellPhoneNumber Cell phone data to be deleted
*/
- void deleteCellphoneData (final DialableCellphoneNumber cellPhoneNumber);
+ void deleteMobileData (final DialableMobileNumber cellPhoneNumber);
/**
* Updates data from given cell phone number instance in database
* <p>
* @return Updated cell phone number instance
*/
- DialableCellphoneNumber updateCellphoneData (final DialableCellphoneNumber cellPhoneNumber);
+ DialableMobileNumber updateMobileData (final DialableMobileNumber cellPhoneNumber);
}
import java.util.List;
import javax.ejb.Remote;
import org.mxchange.jphone.exceptions.PhoneEntityNotFoundException;
-import org.mxchange.jphone.phonenumbers.cellphone.DialableCellphoneNumber;
import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
+import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber;
/**
* A remote interface for phone numbers (any kind)
* <p>
* @throws PhoneEntityNotFoundException If the entity was not found
*/
- DialableCellphoneNumber findCellphoneById (Long cellphoneId) throws PhoneEntityNotFoundException;
+ DialableMobileNumber findMobileNumberById (Long cellphoneId) throws PhoneEntityNotFoundException;
/**
* Returns a list of all cell phone numbers
* <p>
* @return All cell phone numbers
*/
- List<DialableCellphoneNumber> allCellphoneNumbers ();
+ List<DialableMobileNumber> allMobileNumbers ();
/**
* Returns a list of all land-line numbers