XMOJO 5 API Docs

javax.management
Interface QueryExp

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
QueryExpSupport

public interface QueryExp
extends java.io.Serializable

QueryExp interface represents relational constraints that can be used in database query "where clauses." Instances of QueryExp are returned by the static methods of the Query class.


Method Summary
 boolean apply(ObjectName object)
          Applies the QueryExp on an MBean.
 void setMBeanServer(MBeanServer server)
          Sets the MBeanServer on which the query is to be accessed.
 

Method Detail

apply

public boolean apply(ObjectName object)
              throws BadStringOperationException,
                     BadBinaryOpValueExpException,
                     BadAttributeValueExpException,
                     InvalidApplicationException
Applies the QueryExp on an MBean.
Parameters:
object - The name of the MBean on which the QueryExp will be applied.
Returns:
True if the query was successfully applied to the MBean, false otherwise
Throws:
BadStringOperationException - - This exception is thrown when an invalid string operation is passed to a method for constructing a query.
BadBinaryOpValueExpException - This exception is thrown when an invalid expression is passed to a method for constructing a query.
BadAttributeValueExpException - This is thrown when an invalid MBean attribute is passed to a query constructing method.
InvalidApplicationException - This exception is thrown when an attempt is made to apply either of the following: A subquery expression to an MBean A qualified attribute expression to an MBean of the wrong class.

setMBeanServer

public void setMBeanServer(MBeanServer server)
Sets the MBeanServer on which the query is to be accessed.
Parameters:
server - - The MBeanServer on which the query is to be accessed.

XMOJO 5 API Docs

Copyright ©2003 XMOJO.org. All Rights Reserved.