APIdia Launch Partner
Top Description Fields Constructors Methods
javax.management

pack-priv Class AndQueryExp

extends QueryEval
implements QueryExp
Class Inheritance
All Implemented Interfaces
javax.management.QueryExp, java.io.Serializable

This class is used by the query building mechanism to represent conjunctions of relational expressions.
Since
1.5

Field Summary

Modifier and TypeField and Description
private QueryExp
private QueryExp
private static final long

Constructor Summary

AccessConstructor and Description
public
AndQueryExp()

Default constructor.

public
AndQueryExp(QueryExp q1, QueryExp q2)

Creates a new AndQueryExp with q1 and q2 QueryExp.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

True if the query was successfully applied to the MBean, false otherwise.
apply
(ObjectName
The name of the MBean on which the AndQueryExp will be applied.
name
)

Implements javax.management.QueryExp.apply.

Applies the AndQueryExp on a MBean.

public QueryExp
getLeftExp()

Returns the left query expression.

public QueryExp
getRightExp()

Returns the right query expression.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of this AndQueryExp

Inherited from javax.management.QueryEval:
getMBeanServersetMBeanServer

Field Detail

exp1back to summary
private QueryExp exp1
exp2back to summary
private QueryExp exp2
serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.management.QueryEval.serialVersionUID.

Constructor Detail

AndQueryExpback to summary
public AndQueryExp()

Default constructor.

AndQueryExpback to summary
public AndQueryExp(QueryExp q1, QueryExp q2)

Creates a new AndQueryExp with q1 and q2 QueryExp.

Method Detail

applyback to summary
public boolean apply(ObjectName name) throws BadStringOperationException, BadBinaryOpValueExpException, BadAttributeValueExpException, InvalidApplicationException

Implements javax.management.QueryExp.apply.

Applies the AndQueryExp on a MBean.

Parameters
name:ObjectName

The name of the MBean on which the AndQueryExp will be applied.

Returns:boolean

True if the query was successfully applied to the MBean, false otherwise.

Exceptions
BadStringOperationException:
The string passed to the method is invalid.
BadBinaryOpValueExpException:
The expression passed to the method is invalid.
BadAttributeValueExpException:
The attribute value passed to the method is invalid.
InvalidApplicationException:
An attempt has been made to apply a subquery expression to a managed object or a qualified attribute expression to a managed object of the wrong class.
getLeftExpback to summary
public QueryExp getLeftExp()

Returns the left query expression.

getRightExpback to summary
public QueryExp getRightExp()

Returns the right query expression.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns a string representation of this AndQueryExp

Annotations
@Override