KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > enterprise > customer_cmp_ejb > ejb > session > CustomerSessionRemote


1 /*
2  * CustomerSessionLocal.java
3  *
4  * Created on January 16, 2006, 6:43 PM
5  *
6  * To change this template, choose Tools | Options and locate the template under
7  * the Source Creation and Management node. Right-click the template and choose
8  * Open. You can then make changes to the template in the Source Editor.
9  */

10
11 /**
12  *
13  * @author Rahul Biswas
14  */

15
16 package enterprise.customer_cmp_ejb.ejb.session;
17
18 import javax.ejb.Remote JavaDoc;
19 import enterprise.customer_cmp_ejb.persistence.*;
20 import enterprise.customer_cmp_ejb.common.*;
21
22 import java.util.List JavaDoc;
23
24 @Remote JavaDoc
25 public interface CustomerSessionRemote {
26     
27     public Customer searchForCustomer(String JavaDoc id);
28     
29     public Subscription searchForSubscription(String JavaDoc id);
30     
31     public Address searchForAddress(String JavaDoc id);
32     
33     public void persist(Object JavaDoc obj);
34     
35     public List JavaDoc findAllSubscriptions();
36     
37     public List JavaDoc findCustomerByFirstName(String JavaDoc firstName);
38     
39     public List JavaDoc findCustomerByLastName(String JavaDoc lastName);
40     
41     public void remove(Object JavaDoc obj);
42     
43     public Customer addCustomerAddress(Customer cust, Address address);
44
45     public Customer removeCustomerSubscription(String JavaDoc cust, String JavaDoc subs) throws SubscriptionNotFoundException;
46     
47     public Customer addCustomerSubscription(String JavaDoc cust, String JavaDoc subs) throws DuplicateSubscriptionException;
48 }
49
Popular Tags