KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > jtests > beans > relatives > RelativeLocalHome


1 /*
2  * Software distributed under the License is distributed on an "AS IS" basis,
3  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
4  * License for the specific language governing rights and limitations under the
5  * License.
6  *-----------------------------------------------------------------------------
7  * $Id: RelativeLocalHome.java,v 1.3 2002/11/25 16:17:54 chassand Exp $
8  *-----------------------------------------------------------------------------
9  */

10 package org.objectweb.jonas.jtests.beans.relatives;
11
12 import javax.ejb.CreateException JavaDoc;
13 import javax.ejb.EJBLocalHome JavaDoc;
14 import javax.ejb.FinderException JavaDoc;
15 import java.util.Collection JavaDoc;
16 import java.util.Date JavaDoc;
17
18 /**
19  * Created on Sep 25, 2002
20  * @author Christophe Ney - cney@batisseurs.com
21  */

22 public interface RelativeLocalHome extends EJBLocalHome JavaDoc {
23
24     /**
25      * create a new RelativeLocal.
26      * The fullName must be unique since it is used as primaryKey.
27      */

28     RelativeLocal create(String JavaDoc fullName, Date JavaDoc birthdate, int luckyNumber)
29         throws CreateException JavaDoc;
30
31
32     /**
33      * find a relative using it's full name.
34      */

35     RelativeLocal findByPrimaryKey(String JavaDoc fullName) throws FinderException JavaDoc;
36
37
38     /**
39      * find the collection of relatives using the query in the deployment
40      * descriptor.
41      */

42     Collection JavaDoc findFromGivenQuery(String JavaDoc fullName, Date JavaDoc birthdate,
43                                   int luckyNumber) throws FinderException JavaDoc;
44
45 }
46
Popular Tags