From: Roland Haeder Date: Sun, 17 Apr 2016 10:36:15 +0000 (+0200) Subject: Added new remote interface (is session okay?) with a business method for finding... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d8064c8c90457195a3b27bbd9f9e840a6d3c4b97;p=jphone-lib.git Added new remote interface (is session okay?) with a business method for finding cellphone entries by given id number. --- diff --git a/lib/jphone-core.jar b/lib/jphone-core.jar index b880b87..4121511 100644 Binary files a/lib/jphone-core.jar and b/lib/jphone-core.jar differ diff --git a/src/org/mxchange/jphone/phonenumbers/phone/PhoneSessionBeanRemote.java b/src/org/mxchange/jphone/phonenumbers/phone/PhoneSessionBeanRemote.java new file mode 100644 index 0000000..914bf7c --- /dev/null +++ b/src/org/mxchange/jphone/phonenumbers/phone/PhoneSessionBeanRemote.java @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2016 Roland Haeder + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.mxchange.jphone.phonenumbers.phone; + +import java.io.Serializable; +import javax.ejb.Remote; +import org.mxchange.jphone.exceptions.PhoneEntityNotFoundException; +import org.mxchange.jphone.phonenumbers.cellphone.DialableCellphoneNumber; + +/** + * A remote interface for phone numbers (any kind) + *

+ * @author Roland Haeder + */ +@Remote +public interface PhoneSessionBeanRemote extends Serializable { + + /** + * Finds a cellphone entry by given id number + *

+ * @param cellphoneId Cellphone entry id number + *

+ * @return A valid cellphone instance + *

+ * @throws PhoneEntityNotFoundException If the entity was not found + */ + DialableCellphoneNumber findCellphoneById (Long cellphoneId) throws PhoneEntityNotFoundException; + +}