001: package org.objectweb.jonas.jtests.beans.ejbql;
002:
003: import javax.ejb.CreateException;
004: import javax.ejb.FinderException;
005: import java.rmi.RemoteException;
006: import java.util.Collection;
007: import java.util.Set;
008:
009: import org.objectweb.jonas.jtests.beans.ejbql.AddressRemote;
010:
011: public interface CustomerHomeRemote extends javax.ejb.EJBHome {
012:
013: public CustomerRemote create(Integer id) throws CreateException,
014: RemoteException;
015:
016: public CustomerRemote findByPrimaryKey(Integer id)
017: throws FinderException, RemoteException;
018:
019: public CustomerRemote findById(Integer id) throws FinderException,
020: RemoteException;
021:
022: public CustomerRemote findByExactName(String lastName,
023: String firstName) throws FinderException, RemoteException;
024:
025: public Collection findByName(String lastName, String firstName)
026: throws FinderException, RemoteException;
027:
028: public Collection findByNotName(String lastName, String firstName)
029: throws FinderException, RemoteException;
030:
031: public Collection findAllMike() throws FinderException,
032: RemoteException;
033:
034: public CustomerRemote findSmith90() throws FinderException,
035: RemoteException;
036:
037: public Collection findByGoodCredit() throws FinderException,
038: RemoteException;
039:
040: public Collection findByCity(String city, String state)
041: throws FinderException, RemoteException;
042:
043: public Collection findInHotStates() throws FinderException,
044: RemoteException;
045:
046: public Collection findWithoutReservations() throws FinderException,
047: RemoteException;
048:
049: public Collection findWithReservations() throws FinderException,
050: RemoteException;
051:
052: public Collection findWithOrWithoutReservations()
053: throws FinderException, RemoteException;
054:
055: public Collection findWithoutReservationsAndWithGoodCredit(boolean b)
056: throws FinderException, RemoteException;
057:
058: public Collection findBisWithoutReservationsAndWithGoodCredit(
059: boolean b) throws FinderException, RemoteException;
060:
061: public Collection findTerWithoutReservationsAndWithGoodCredit(
062: boolean b) throws FinderException, RemoteException;
063:
064: public Collection findQuadWithoutReservationsAndWithGoodCredit(
065: boolean b) throws FinderException, RemoteException;
066:
067: public Collection findWithoutReservationsOrWithGoodCredit(boolean b)
068: throws FinderException, RemoteException;
069:
070: public Collection findByNameAndState(String lastName,
071: String firstName, String state) throws FinderException,
072: RemoteException;
073:
074: public Collection findAllCreditCardAddress(String city)
075: throws FinderException, RemoteException;
076:
077: public Collection findAllCustomersWithReservation()
078: throws FinderException, RemoteException;
079:
080: public Collection findAllCustomersWithReservationDistinct()
081: throws FinderException, RemoteException;
082:
083: public Collection findByAddress(AddressRemote add)
084: throws FinderException, RemoteException;
085:
086: public Collection findByAddressId(Integer addId)
087: throws FinderException, RemoteException;
088:
089: public Collection findCustomersAll() throws FinderException,
090: RemoteException;
091:
092: public Collection findCustomersWithCreditCard()
093: throws FinderException, RemoteException;
094:
095: public Collection findCustomersWithOutCreditCard()
096: throws FinderException, RemoteException;
097:
098: public Collection findCustomersXWithOutCreditCard(String firstName)
099: throws FinderException, RemoteException;
100:
101: public Collection findCustomersWithCreditCompany()
102: throws FinderException, RemoteException;
103:
104: public Collection findAllOrderByLastname() throws FinderException,
105: RemoteException;
106:
107: public Collection findAllOrderByDescLastnameAscFirstname()
108: throws FinderException, RemoteException;
109:
110: public Collection findCustWithCCNumOrAddrZip(
111: java.lang.String ccNum, java.lang.String addrZip)
112: throws FinderException, RemoteException;
113:
114: public Collection findAllWithLimit_1(int startAt)
115: throws FinderException, RemoteException;
116:
117: public Collection findAllWithLimit_2(int startAt)
118: throws FinderException, RemoteException;
119:
120: // Home method, requires ejbHomeXXX method in bean class
121: public Collection callFindOnCruise(Integer cruiseId)
122: throws FinderException, RemoteException;
123:
124: public Collection callFindByAddressLocal(Integer add)
125: throws FinderException, RemoteException;
126:
127: public Collection callFindByParameterIsNull(Integer cc)
128: throws FinderException, RemoteException;
129:
130: public String selectAddrCity(Integer id)
131: throws javax.ejb.FinderException, RemoteException;
132:
133: public String selectLastName(Integer id)
134: throws javax.ejb.FinderException, RemoteException;
135:
136: public Set selectFirstName() throws javax.ejb.FinderException,
137: RemoteException;
138:
139: public Collection selectDistinctFirstName()
140: throws javax.ejb.FinderException, RemoteException;
141:
142: public Integer selectAddr(Integer id)
143: throws javax.ejb.FinderException, RemoteException;
144:
145: public Collection selectAllCreditCardAddr()
146: throws javax.ejb.FinderException, RemoteException;
147:
148: public Collection selectRogerAddr()
149: throws javax.ejb.FinderException, RemoteException;
150:
151: public long getCountCreditCard() throws javax.ejb.FinderException,
152: RemoteException;
153:
154: public Collection getCreditCardNumbers()
155: throws javax.ejb.FinderException, RemoteException;
156:
157: public long getCountCustomersWithId1(Integer id)
158: throws javax.ejb.FinderException, RemoteException;
159:
160: public long getCountCustomersWithId2(int id)
161: throws javax.ejb.FinderException, RemoteException;
162:
163: public long getCountCustomersRingo()
164: throws javax.ejb.FinderException, RemoteException;
165:
166: }
|