KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > jtests > beans > transacted > SimpleEHome


1 /*
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 1999 Bull S.A.
4  * Contact: jonas-team@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19  * USA
20  *
21  * --------------------------------------------------------------------------
22  * $Id: SimpleEHome.java,v 1.5 2004/06/29 14:49:20 durieuxp Exp $
23  * --------------------------------------------------------------------------
24  */

25
26 // SimpleEHome.java
27

28 package org.objectweb.jonas.jtests.beans.transacted;
29
30 import java.rmi.RemoteException JavaDoc;
31
32 import javax.ejb.CreateException JavaDoc;
33 import javax.ejb.EJBHome JavaDoc;
34 import javax.ejb.FinderException JavaDoc;
35
36 public interface SimpleEHome extends EJBHome JavaDoc {
37     // create methods
38
public Simple create(int i) throws RemoteException JavaDoc, CreateException JavaDoc; // notsupported
39
public Simple createForRequired(long i) throws RemoteException JavaDoc, CreateException JavaDoc; // required
40
public Simple createForNever(short i) throws RemoteException JavaDoc, CreateException JavaDoc; // never
41
public Simple createForRequiresNew(String JavaDoc i) throws RemoteException JavaDoc, CreateException JavaDoc; // requiresnew
42
public Simple createForMandatory(char i) throws RemoteException JavaDoc, CreateException JavaDoc; // mandatory
43
public Simple createForSupports(boolean i) throws RemoteException JavaDoc, CreateException JavaDoc; // supports
44
public Simple createWithTimer(int i, long dur) throws RemoteException JavaDoc, CreateException JavaDoc;
45     // finder methods
46
public Simple findByPrimaryKey(String JavaDoc pk) throws RemoteException JavaDoc, FinderException JavaDoc;
47     public Simple finder_notsupported() throws RemoteException JavaDoc, FinderException JavaDoc;
48     public Simple finder_required() throws RemoteException JavaDoc, FinderException JavaDoc;
49     public Simple finder_supports(boolean i) throws RemoteException JavaDoc, FinderException JavaDoc;
50     public Simple finder_requiresnew() throws RemoteException JavaDoc, FinderException JavaDoc;
51     public Simple finder_mandatory() throws RemoteException JavaDoc, FinderException JavaDoc;
52     public Simple finder_never() throws RemoteException JavaDoc, FinderException JavaDoc;
53     // home methods: returns true if called inside a tx, false if not.
54
public boolean opwith_notsupported() throws RemoteException JavaDoc;
55     public boolean opwith_requires_new() throws RemoteException JavaDoc;
56     public boolean opwith_required() throws RemoteException JavaDoc;
57     public boolean opwith_mandatory() throws RemoteException JavaDoc;
58     public boolean opwith_supports() throws RemoteException JavaDoc;
59     public boolean opwith_never() throws RemoteException JavaDoc;
60 }
61
Popular Tags