KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > testbean2 > interfaces > AllTypesHome


1 /*
2   * JBoss, Home of Professional Open Source
3   * Copyright 2005, JBoss Inc., and individual contributors as indicated
4   * by the @authors tag. See the copyright.txt in the distribution for a
5   * full listing of individual contributors.
6   *
7   * This is free software; you can redistribute it and/or modify it
8   * under the terms of the GNU Lesser General Public License as
9   * published by the Free Software Foundation; either version 2.1 of
10   * the License, or (at your option) any later version.
11   *
12   * This software is distributed in the hope that it will be useful,
13   * but WITHOUT ANY WARRANTY; without even the implied warranty of
14   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15   * Lesser General Public License for more details.
16   *
17   * You should have received a copy of the GNU Lesser General Public
18   * License along with this software; if not, write to the Free
19   * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20   * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21   */

22 package org.jboss.test.testbean2.interfaces;
23
24
25 import javax.ejb.EJBHome JavaDoc;
26 import java.rmi.RemoteException JavaDoc;
27 import javax.ejb.CreateException JavaDoc;
28 import javax.ejb.FinderException JavaDoc;
29 import java.util.Collection JavaDoc;
30 import javax.ejb.Handle JavaDoc;
31 import java.sql.Date JavaDoc;
32 import java.sql.Timestamp JavaDoc;
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 JavaDoc {
39
40     public AllTypes create(String JavaDoc pk) throws RemoteException JavaDoc, CreateException JavaDoc;
41     
42     public AllTypes create(boolean aBoolean, byte aByte, short aShort, int anInt,
43         long aLong, float aFloat, double aDouble, /*char aChar,*/ String JavaDoc aString,
44         Date JavaDoc aDate, Timestamp JavaDoc aTimestamp, MyObject anObject )
45         
46         throws RemoteException JavaDoc, CreateException JavaDoc;
47
48
49     // automatically generated finders
50
public AllTypes findByPrimaryKey(String JavaDoc name)
51         throws RemoteException JavaDoc, FinderException JavaDoc;
52
53     public Collection JavaDoc findAll()
54         throws RemoteException JavaDoc, FinderException JavaDoc;
55         
56     public Collection JavaDoc findByABoolean(boolean b)
57         throws RemoteException JavaDoc, FinderException JavaDoc;
58         
59     public Collection JavaDoc findByAByte(byte b)
60         throws RemoteException JavaDoc, FinderException JavaDoc;
61         
62     public Collection JavaDoc findByAShort(short s)
63         throws RemoteException JavaDoc, FinderException JavaDoc;
64         
65     public Collection JavaDoc findByAnInt(int i)
66         throws RemoteException JavaDoc, FinderException JavaDoc;
67         
68     public Collection JavaDoc findByALong(long l)
69         throws RemoteException JavaDoc, FinderException JavaDoc;
70         
71     public Collection JavaDoc findByAFloat(float f)
72         throws RemoteException JavaDoc, FinderException JavaDoc;
73         
74     public Collection JavaDoc findByADouble(double d)
75         throws RemoteException JavaDoc, FinderException JavaDoc;
76         
77 // public Collection findByAChar(char c)
78
// throws RemoteException, FinderException;
79

80     public Collection JavaDoc findByAString(String JavaDoc s)
81         throws RemoteException JavaDoc, FinderException JavaDoc;
82         
83     public Collection JavaDoc findByADate(Date JavaDoc d)
84         throws RemoteException JavaDoc, FinderException JavaDoc;
85         
86     public Collection JavaDoc findByATimestamp(Timestamp JavaDoc t)
87         throws RemoteException JavaDoc, FinderException JavaDoc;
88         
89     public Collection JavaDoc findByAnObject(MyObject o)
90         throws RemoteException JavaDoc, FinderException JavaDoc;
91         
92     public Collection JavaDoc findByEnterpriseEntity(EnterpriseEntity e)
93         throws RemoteException JavaDoc, FinderException JavaDoc;
94     
95     public Collection JavaDoc findByStatefulSession(StatefulSession s)
96         throws RemoteException JavaDoc, FinderException JavaDoc;
97
98     public Collection JavaDoc findByStatelessSession(StatelessSession s)
99         throws RemoteException JavaDoc, FinderException JavaDoc;
100         
101     
102     // finders defined in jaws.xml
103
public Collection JavaDoc findByMinInt(int min)
104         throws RemoteException JavaDoc, FinderException JavaDoc;
105         
106     public Collection JavaDoc findByIntAndDouble(int i, double d)
107         throws RemoteException JavaDoc, FinderException JavaDoc;
108         
109     
110 }
111
Popular Tags