01: /* JFox, the OpenSource J2EE Application Server
02: *
03: * Copyright (C) 2002 huihoo.org
04: * Distributable under GNU LGPL license
05: * See the GNU Lesser General Public License for more details.
06: */
07:
08: package javax.management;
09:
10: import java.io.Serializable;
11:
12: /**
13: * Represents relational constraints that can be used in database query "where clauses".
14: * Instances of QueryExp are returned by the static methods of the Query class.
15: *
16: * @author <a href="mailto:young_yy@hotmail.org">Young Yang</a>
17: */
18:
19: public interface QueryExp extends Serializable {
20:
21: /**
22: * Applies the QueryExp on an MBean.
23: *
24: * @param name The name of the MBean on which the QueryExp will be applied.
25: *
26: * @return True if the query was successfully applied to the MBean, false otherwise
27: *
28: * @exception BadStringOperationException
29: * @exception BadBinaryOpValueExpException
30: * @exception BadAttributeValueExpException
31: * @exception InvalidApplicationException
32: */
33: public boolean apply(ObjectName name)
34: throws BadStringOperationException,
35: BadBinaryOpValueExpException,
36: BadAttributeValueExpException, InvalidApplicationException;
37:
38: /**
39: * Sets the MBean server on which the query is to be performed.
40: *
41: * @param s The MBean server on which the query is to be performed.
42: */
43: public void setMBeanServer(MBeanServer s);
44:
45: }
|