KickJava   Java API By Example, From Geeks To Geeks.

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


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: Simple.java,v 1.7 2004/05/26 12:44:16 durieuxp Exp $
23  * --------------------------------------------------------------------------
24  */

25
26 // Simple.java
27

28 package org.objectweb.jonas.jtests.beans.transacted;
29
30 import java.rmi.RemoteException JavaDoc;
31 import javax.ejb.EJBObject JavaDoc;
32 import javax.ejb.TimerHandle JavaDoc;
33
34 /**
35  * This interface is implemented by different types of beans (EB,SL)
36  */

37 public interface Simple extends EJBObject JavaDoc {
38     // every method returns true if called inside a tx, false if not.
39
public boolean opwith_notsupported() throws RemoteException JavaDoc;// TX_NOT_SUPPORTED
40
public boolean opwith_requires_new() throws RemoteException JavaDoc;// TX_REQUIRES_NEW
41
public boolean opwith_required() throws RemoteException JavaDoc; // TX_REQUIRED
42
public boolean opwith_mandatory() throws RemoteException JavaDoc; // TX_MANDATORY
43
public boolean opwith_supports() throws RemoteException JavaDoc; // TX_SUPPORTS
44
public boolean supports_call_required() throws RemoteException JavaDoc; // TX_SUPPORTS
45
public boolean opwith_never() throws RemoteException JavaDoc; // TX_NEVER
46
public boolean required_call_requires_new() throws RemoteException JavaDoc; // TX_REQUIRED
47
public boolean call_requires_new_on(Simple other) throws RemoteException JavaDoc; // TX_REQUIRED
48
public int setTimer(int dur, int period) throws RemoteException JavaDoc;
49     public int setTimerGetHandle(int dur, int period) throws RemoteException JavaDoc;
50     public void cancelTimer(int id) throws RemoteException JavaDoc;
51     public long getTimeRemaining(int id) throws RemoteException JavaDoc;
52     public int getTimerCount() throws RemoteException JavaDoc;
53     public int getTimerNumber() throws RemoteException JavaDoc;
54     public TimerHandle JavaDoc getTimerHandle(int id) throws RemoteException JavaDoc;
55 }
56
Popular Tags