01: /*
02: * JOnAS: Java(TM) Open Application Server
03: * Copyright (C) 1999 Bull S.A.
04: * Contact: jonas-team@objectweb.org
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * 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 5022 2004-06-29 14:49:20Z durieuxp $
23: * --------------------------------------------------------------------------
24: */
25:
26: // SimpleEHome.java
27: package org.objectweb.jonas.jtests.beans.transacted;
28:
29: import java.rmi.RemoteException;
30:
31: import javax.ejb.CreateException;
32: import javax.ejb.EJBHome;
33: import javax.ejb.FinderException;
34:
35: public interface SimpleEHome extends EJBHome {
36: // create methods
37: public Simple create(int i) throws RemoteException, CreateException; // notsupported
38:
39: public Simple createForRequired(long i) throws RemoteException,
40: CreateException; // required
41:
42: public Simple createForNever(short i) throws RemoteException,
43: CreateException; // never
44:
45: public Simple createForRequiresNew(String i)
46: throws RemoteException, CreateException; // requiresnew
47:
48: public Simple createForMandatory(char i) throws RemoteException,
49: CreateException; // mandatory
50:
51: public Simple createForSupports(boolean i) throws RemoteException,
52: CreateException; // supports
53:
54: public Simple createWithTimer(int i, long dur)
55: throws RemoteException, CreateException;
56:
57: // finder methods
58: public Simple findByPrimaryKey(String pk) throws RemoteException,
59: FinderException;
60:
61: public Simple finder_notsupported() throws RemoteException,
62: FinderException;
63:
64: public Simple finder_required() throws RemoteException,
65: FinderException;
66:
67: public Simple finder_supports(boolean i) throws RemoteException,
68: FinderException;
69:
70: public Simple finder_requiresnew() throws RemoteException,
71: FinderException;
72:
73: public Simple finder_mandatory() throws RemoteException,
74: FinderException;
75:
76: public Simple finder_never() throws RemoteException,
77: FinderException;
78:
79: // home methods: returns true if called inside a tx, false if not.
80: public boolean opwith_notsupported() throws RemoteException;
81:
82: public boolean opwith_requires_new() throws RemoteException;
83:
84: public boolean opwith_required() throws RemoteException;
85:
86: public boolean opwith_mandatory() throws RemoteException;
87:
88: public boolean opwith_supports() throws RemoteException;
89:
90: public boolean opwith_never() throws RemoteException;
91: }
|