1 22 package org.jboss.test.testbean2.interfaces; 23 24 25 import javax.ejb.EJBHome ; 26 import java.rmi.RemoteException ; 27 import javax.ejb.CreateException ; 28 import javax.ejb.FinderException ; 29 import java.util.Collection ; 30 import javax.ejb.Handle ; 31 import java.sql.Date ; 32 import java.sql.Timestamp ; 33 34 import org.jboss.test.testbean.interfaces.EnterpriseEntity; 35 import org.jboss.test.testbean.interfaces.StatefulSession; 36 import org.jboss.test.testbean.interfaces.StatelessSession; 37 38 public interface AllTypesHome extends EJBHome { 39 40 public AllTypes create(String pk) throws RemoteException , CreateException ; 41 42 public AllTypes create(boolean aBoolean, byte aByte, short aShort, int anInt, 43 long aLong, float aFloat, double aDouble, String aString, 44 Date aDate, Timestamp aTimestamp, MyObject anObject ) 45 46 throws RemoteException , CreateException ; 47 48 49 public AllTypes findByPrimaryKey(String name) 51 throws RemoteException , FinderException ; 52 53 public Collection findAll() 54 throws RemoteException , FinderException ; 55 56 public Collection findByABoolean(boolean b) 57 throws RemoteException , FinderException ; 58 59 public Collection findByAByte(byte b) 60 throws RemoteException , FinderException ; 61 62 public Collection findByAShort(short s) 63 throws RemoteException , FinderException ; 64 65 public Collection findByAnInt(int i) 66 throws RemoteException , FinderException ; 67 68 public Collection findByALong(long l) 69 throws RemoteException , FinderException ; 70 71 public Collection findByAFloat(float f) 72 throws RemoteException , FinderException ; 73 74 public Collection findByADouble(double d) 75 throws RemoteException , FinderException ; 76 77 80 public Collection findByAString(String s) 81 throws RemoteException , FinderException ; 82 83 public Collection findByADate(Date d) 84 throws RemoteException , FinderException ; 85 86 public Collection findByATimestamp(Timestamp t) 87 throws RemoteException , FinderException ; 88 89 public Collection findByAnObject(MyObject o) 90 throws RemoteException , FinderException ; 91 92 public Collection findByEnterpriseEntity(EnterpriseEntity e) 93 throws RemoteException , FinderException ; 94 95 public Collection findByStatefulSession(StatefulSession s) 96 throws RemoteException , FinderException ; 97 98 public Collection findByStatelessSession(StatelessSession s) 99 throws RemoteException , FinderException ; 100 101 102 public Collection findByMinInt(int min) 104 throws RemoteException , FinderException ; 105 106 public Collection findByIntAndDouble(int i, double d) 107 throws RemoteException , FinderException ; 108 109 110 } 111 | Popular Tags |