]> git.mxchange.org Git - pizzaservice-ejb.git/blob - src/java/org/mxchange/pizzaapplication/model/customer/PizzaCustomerSessionBean.java
Continued with customer EJB:
[pizzaservice-ejb.git] / src / java / org / mxchange / pizzaapplication / model / customer / PizzaCustomerSessionBean.java
1 /*
2  * Copyright (C) 2016 Roland Haeder
3  *
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.
8  *
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.
13  *
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/>.
16  */
17 package org.mxchange.pizzaapplication.model.customer;
18
19 import de.chotime.jratecalc.model.customer.RateCalcCustomerSessionBeanRemote;
20 import javax.ejb.Stateless;
21 import org.mxchange.pizzaaplication.database.BasePizzaDatabaseBean;
22 ;
23 import org.mxchange.jcustomercore.exceptions.CustomerAlreadyRegisteredException;
24 import org.mxchange.jcustomercore.model.customer.Customer;import org.mxchange.jcustomercore.exceptions.CustomerAlreadyRegisteredException;
25 import org.mxchange.jcustomercore.model.customer.Customer;
26
27 /**
28  * A stateless customer session bean (EJB)
29  * <p>
30  * @author Roland Haeder<rhaeder@cho-time.de>
31  */
32 @Stateless (name = "customer", description = "A bean handling customer data")
33 public class PizzaCustomerSessionBean extends BasePizzaDatabaseBean implements RateCalcCustomerSessionBeanRemote {
34
35         /**
36          * Serial number
37          */
38         private static final long serialVersionUID = 15_624_759_104_372L;
39
40         @Override
41         public Customer fillCustomerData (final Customer customer) {
42                 throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
43         }
44
45         @Override
46         public boolean isReqistered (final Customer customer) {
47                 throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
48         }
49
50         @Override
51         public Customer registerCustomer (final Customer customer) throws CustomerAlreadyRegisteredException {
52                 throw new UnsupportedOperationException("Registration by guests is not supported with RateCalc application."); //NOI18N
53         }
54
55 }