01: /**
02: * JOnAS: Java(TM) Open Application Server
03: * Copyright (C) 1999-2004 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: * Initial developer: JOnAS Team
22: * --------------------------------------------------------------------------
23: * $Id: AlarmRecordHome.java 4583 2004-04-09 12:56:41Z benoitf $
24: * --------------------------------------------------------------------------
25: */package org.objectweb.alarm.beans;
26:
27: import java.rmi.RemoteException;
28: import java.util.Collection;
29:
30: import javax.ejb.CreateException;
31: import javax.ejb.EJBHome;
32: import javax.ejb.FinderException;
33:
34: /**
35: * Home interface for the bean AlarmRecord
36: */
37: public interface AlarmRecordHome extends EJBHome {
38:
39: /**
40: * @return
41: * @throws CreateException
42: * @throws RemoteException
43: */
44: AlarmRecord create() throws CreateException, RemoteException;
45:
46: /**
47: * @param ad
48: * @return
49: * @throws CreateException
50: * @throws RemoteException
51: */
52: AlarmRecord create(AlarmData ad) throws CreateException,
53: RemoteException;
54:
55: /**
56: * @param pk
57: * @return
58: * @throws FinderException
59: * @throws RemoteException
60: */
61: AlarmRecord findByPrimaryKey(String pk) throws FinderException,
62: RemoteException;
63:
64: /**
65: * @param from
66: * @param mess
67: * @return
68: * @throws FinderException
69: * @throws RemoteException
70: */
71: AlarmRecord findAlarm(String from, String mess)
72: throws FinderException, RemoteException;
73:
74: /**
75: * @return
76: * @throws FinderException
77: * @throws RemoteException
78: */
79: Collection findAll() throws FinderException, RemoteException;
80:
81: /**
82: * @param from
83: * @param sev
84: * @return
85: * @throws FinderException
86: * @throws RemoteException
87: */
88: Collection findByInterest(String from, int sev)
89: throws FinderException, RemoteException;
90:
91: /**
92: * @param sev
93: * @return
94: * @throws FinderException
95: * @throws RemoteException
96: */
97: Collection findBySeverity(int sev) throws FinderException,
98: RemoteException;
99: }
|