2 * Copyright (C) 2016 Roland Haeder
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU Affero General Public License as
6 * published by the Free Software Foundation, either version 3 of the
7 * License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Affero General Public License for more details.
14 * You should have received a copy of the GNU Affero General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 package org.mxchange.pizzaapplication.model.customer;
19 import javax.ejb.Stateless;
20 import org.mxchange.jcustomercore.exceptions.CustomerAlreadyRegisteredException;
21 import org.mxchange.jcustomercore.model.customer.Customer;
22 import org.mxchange.pizzaaplication.database.BasePizzaDatabaseBean;
24 * A stateless customer session bean (EJB)
26 * @author Roland Haeder<rhaeder@cho-time.de>
28 @Stateless (name = "customer", description = "A bean handling customer data")
29 public class PizzaCustomerSessionBean extends BasePizzaDatabaseBean implements PizzaCustomerSessionBeanRemote {
34 private static final long serialVersionUID = 15_624_759_104_372L;
37 public Customer fillCustomerData (final Customer customer) {
38 throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
42 public boolean isReqistered (final Customer customer) {
43 throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
47 public Customer registerCustomer (final Customer customer) throws CustomerAlreadyRegisteredException {
48 throw new UnsupportedOperationException("Registration by guests is not supported with Pizza application."); //NOI18N