01: package com.titan.customer;
02:
03: import java.rmi.RemoteException;
04: import javax.ejb.CreateException;
05: import javax.ejb.FinderException;
06: import java.util.Collection;
07: import com.titan.cruise.CruiseLocal;
08:
09: public interface CustomerHomeLocal extends javax.ejb.EJBLocalHome {
10:
11: public CustomerLocal create(Integer id) throws CreateException;
12:
13: public CustomerLocal findByPrimaryKey(Integer id)
14: throws FinderException;
15:
16: public Collection findAllCustomers() throws FinderException;
17:
18: public Collection findByName(String lastName, String firstName)
19: throws FinderException;
20:
21: public CustomerLocal findByExactName(String lastName,
22: String firstName) throws FinderException;
23:
24: public Collection findByNameAndState(String lastName,
25: String firstName, String state) throws FinderException;
26:
27: public CustomerLocal findSmith90() throws FinderException;
28:
29: public Collection findByGoodCredit() throws FinderException;
30:
31: public Collection findByCity(String city, String state)
32: throws FinderException;
33:
34: public Collection findInHotStates() throws FinderException;
35:
36: public Collection findWithNoReservations() throws FinderException;
37:
38: public Collection findOnCruise(CruiseLocal cruise)
39: throws FinderException;
40:
41: public Collection findByState(String state) throws FinderException;
42: }
|