KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > alarm > beans > AlarmRecordHome


1 /**
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 1999-2004 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  * Initial developer: JOnAS Team
22  * --------------------------------------------------------------------------
23  * $Id: AlarmRecordHome.java,v 1.2 2004/04/09 12:56:41 benoitf Exp $
24  * --------------------------------------------------------------------------
25  */

26
27 package org.objectweb.alarm.beans;
28
29 import java.rmi.RemoteException JavaDoc;
30 import java.util.Collection JavaDoc;
31
32 import javax.ejb.CreateException JavaDoc;
33 import javax.ejb.EJBHome JavaDoc;
34 import javax.ejb.FinderException JavaDoc;
35
36 /**
37  * Home interface for the bean AlarmRecord
38  */

39 public interface AlarmRecordHome extends EJBHome JavaDoc {
40
41     /**
42      * @return
43      * @throws CreateException
44      * @throws RemoteException
45      */

46     AlarmRecord create() throws CreateException JavaDoc, RemoteException JavaDoc;
47
48     /**
49      * @param ad
50      * @return
51      * @throws CreateException
52      * @throws RemoteException
53      */

54     AlarmRecord create(AlarmData ad) throws CreateException JavaDoc, RemoteException JavaDoc;
55
56     /**
57      * @param pk
58      * @return
59      * @throws FinderException
60      * @throws RemoteException
61      */

62     AlarmRecord findByPrimaryKey(String JavaDoc pk) throws FinderException JavaDoc, RemoteException JavaDoc;
63
64     /**
65      * @param from
66      * @param mess
67      * @return
68      * @throws FinderException
69      * @throws RemoteException
70      */

71     AlarmRecord findAlarm(String JavaDoc from, String JavaDoc mess) throws FinderException JavaDoc, RemoteException JavaDoc;
72
73     /**
74      * @return
75      * @throws FinderException
76      * @throws RemoteException
77      */

78     Collection JavaDoc findAll() throws FinderException JavaDoc, RemoteException JavaDoc;
79
80     /**
81      * @param from
82      * @param sev
83      * @return
84      * @throws FinderException
85      * @throws RemoteException
86      */

87     Collection JavaDoc findByInterest(String JavaDoc from, int sev) throws FinderException JavaDoc, RemoteException JavaDoc;
88
89     /**
90      * @param sev
91      * @return
92      * @throws FinderException
93      * @throws RemoteException
94      */

95     Collection JavaDoc findBySeverity(int sev) throws FinderException JavaDoc, RemoteException JavaDoc;
96 }
Popular Tags