01: package org.objectweb.jonas.jtests.beans.ejbql;
02:
03: import java.util.Collection;
04:
05: import javax.ejb.CreateException;
06: import javax.ejb.FinderException;
07:
08: public interface CustomerHomeLocal extends javax.ejb.EJBLocalHome {
09:
10: public CustomerLocal create(Integer id) throws CreateException;
11:
12: public CustomerLocal findByPrimaryKey(Integer id)
13: throws FinderException;
14:
15: public Collection findCustomersAll() throws FinderException;
16:
17: public Collection findByName(String lastName, String firstName)
18: throws FinderException;
19:
20: public CustomerLocal findByExactName(String lastName,
21: String firstName) throws FinderException;
22:
23: public Collection findByNameAndState(String lastName,
24: String firstName, String state) throws FinderException;
25:
26: public CustomerLocal findSmith90() throws FinderException;
27:
28: public Collection findByGoodCredit() throws FinderException;
29:
30: public Collection findByCity(String city, String state)
31: throws FinderException;
32:
33: public Collection findInHotStates() throws FinderException;
34:
35: public Collection findWithoutReservations() throws FinderException;
36:
37: public Collection findOnCruise(CruiseLocal cruise)
38: throws FinderException;
39:
40: public Collection findByAddressLocal(AddressLocal add)
41: throws FinderException;
42:
43: public Collection findByParameterIsNull(CreditCardLocal cc)
44: throws FinderException;
45:
46: public Collection findByState(String state) throws FinderException;
47:
48: public Collection findAllCreditCardAddress(String citie)
49: throws FinderException;
50:
51: public Collection findAllCustomersWithReservation()
52: throws FinderException;
53:
54: public Collection findAllCustomersWithReservationDistinct()
55: throws FinderException;
56:
57: public CustomerLocal findCustomerWithPhone(PhoneLocal phone)
58: throws FinderException;
59:
60: public Collection findCustomersWithCreditCard()
61: throws FinderException;
62:
63: }
|