X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2Fjava%2Forg%2Fmxchange%2Fjphone%2Fmodel%2Fphonenumbers%2Fphone%2FPizzaPhoneSessionBean.java;h=84b51cb7350b9e6e5d96d296d330290647c3cd3d;hb=66b338333804d0bdb33250d2c5a020435de714e6;hp=ad6624d312a44fb861f90f30f872d540b90a1488;hpb=aa89f017718e57eb00e42412068304eb35777bfc;p=pizzaservice-ejb.git diff --git a/src/java/org/mxchange/jphone/model/phonenumbers/phone/PizzaPhoneSessionBean.java b/src/java/org/mxchange/jphone/model/phonenumbers/phone/PizzaPhoneSessionBean.java index ad6624d..84b51cb 100644 --- a/src/java/org/mxchange/jphone/model/phonenumbers/phone/PizzaPhoneSessionBean.java +++ b/src/java/org/mxchange/jphone/model/phonenumbers/phone/PizzaPhoneSessionBean.java @@ -25,9 +25,6 @@ import org.mxchange.jphone.model.phonenumbers.fax.DialableFaxNumber; import org.mxchange.jphone.model.phonenumbers.fax.FaxNumber; import org.mxchange.jphone.model.phonenumbers.landline.DialableLandLineNumber; import org.mxchange.jphone.model.phonenumbers.landline.LandLineNumber; -import org.mxchange.jphone.model.phonenumbers.mobile.DialableMobileNumber; -import org.mxchange.jphone.model.phonenumbers.mobile.MobileNumber; -import org.mxchange.pizzaaplication.enterprise.BasePizzaEnterpriseBean; /** * A general phone EJB @@ -52,7 +49,7 @@ public class PizzaPhoneSessionBean extends BasePizzaEnterpriseBean implements Ph @SuppressWarnings ("unchecked") @Override - public List allFaxNumbers () { + public List fetchAllFaxNumbers () { // Trace message this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.allFaxNumbers: CALLED!", this.getClass().getSimpleName())); //NOI18N @@ -71,7 +68,7 @@ public class PizzaPhoneSessionBean extends BasePizzaEnterpriseBean implements Ph @SuppressWarnings ("unchecked") @Override - public List allLandLineNumbers () { + public List fetchAllLandLineNumbers () { // Trace message this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.allLandLineNumbers: CALLED!", this.getClass().getSimpleName())); //NOI18N @@ -88,23 +85,4 @@ public class PizzaPhoneSessionBean extends BasePizzaEnterpriseBean implements Ph return list; } - @SuppressWarnings ("unchecked") - @Override - public List allMobileNumbers () { - // Trace message - this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.allMobileNumbers: CALLED!", this.getClass().getSimpleName())); //NOI18N - - // Get query - final Query query = this.getEntityManager().createNamedQuery("AllMobileNumbers", MobileNumber.class); //NOI18N - - // Get list from it - final List list = query.getResultList(); - - // Trace message - this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.allMobileNumbers: list.size()={1} - EXIT!", this.getClass().getSimpleName(), list.size())); //NOI18N - - // Return it - return list; - } - }