| java.lang.Object javax.management.Query
Query | public class Query (Code) | | This class is a factory for constructing queries.
REVIEW: Full explanation. See the spec for now for what it's worth.
author: Adrian Brock. version: $Revision: 57200 $ |
Field Summary | |
final public static int | DIV | final public static int | EQ | final public static int | GE | final public static int | GT | final public static int | LE | final public static int | LT | final public static int | MINUS | final public static int | PLUS | final public static int | TIMES |
Constructor Summary | |
public | Query() |
Method Summary | |
public static QueryExp | and(QueryExp first, QueryExp second) And Query expression. | public static QueryExp | anySubString(AttributeValueExp attr, StringValueExp string) Tests an attribute contains a string as a subset. | public static AttributeValueExp | attr(String value) | public static AttributeValueExp | attr(String className, String value) | public static QueryExp | between(ValueExp test, ValueExp lower, ValueExp higher) Tests a value is between two other values. | public static AttributeValueExp | classattr() | public static ValueExp | div(ValueExp first, ValueExp second) | public static QueryExp | eq(ValueExp first, ValueExp second) Equals Comparison. | public static QueryExp | finalSubString(AttributeValueExp attr, StringValueExp string) Tests an attribute ends with a string as a subset. | public static QueryExp | geq(ValueExp first, ValueExp second) Greater than or Equals Comparison. | public static QueryExp | gt(ValueExp first, ValueExp second) Greater than. | public static QueryExp | in(ValueExp test, ValueExp[] list) Tests a value is in one of the listed values. | public static QueryExp | initialSubString(AttributeValueExp attr, StringValueExp string) Tests an attribute starts with a string as a subset. | public static QueryExp | leq(ValueExp first, ValueExp second) Less than or equal. | public static QueryExp | lt(ValueExp first, ValueExp second) Less than. | public static QueryExp | match(AttributeValueExp attr, StringValueExp string) Tests an attribute equals a string value. | public static ValueExp | minus(ValueExp first, ValueExp second) | public static QueryExp | not(QueryExp expression) Not Query expression. | public static QueryExp | or(QueryExp first, QueryExp second) Or Query expression. | public static ValueExp | plus(ValueExp first, ValueExp second) | public static ValueExp | times(ValueExp first, ValueExp second) | public static ValueExp | value(boolean value) Create a boolean value expression for use in a Query. | public static ValueExp | value(double value) Create a double value expression for use in a Query. | public static ValueExp | value(float value) Create a float value expression for use in a Query. | public static ValueExp | value(int value) Create an integer value expression for use in a Query. | public static ValueExp | value(long value) Create a long value expression for use in a Query. | public static ValueExp | value(Number value) Create a number value expression for use in a Query. | public static StringValueExp | value(String value) Create a string value expression for use in a Query. |
DIV | final public static int DIV(Code) | | Divide expression
|
EQ | final public static int EQ(Code) | | Equals expression
|
GE | final public static int GE(Code) | | Greater than or equals expression
|
GT | final public static int GT(Code) | | Greater than expression
|
LE | final public static int LE(Code) | | Less than or equals expression
|
LT | final public static int LT(Code) | | Less than expression
|
MINUS | final public static int MINUS(Code) | | Minus expression
|
PLUS | final public static int PLUS(Code) | | Plus expression
|
TIMES | final public static int TIMES(Code) | | Times expression
|
Query | public Query()(Code) | | Construct a new Query
|
and | public static QueryExp and(QueryExp first, QueryExp second)(Code) | | And Query expression. Return true only when both expressions are true.
Parameters: first - the first expression Parameters: second - the second expression the expression |
anySubString | public static QueryExp anySubString(AttributeValueExp attr, StringValueExp string)(Code) | | Tests an attribute contains a string as a subset. Return true
when this is the case, false otherwise.
Parameters: attr - the attribute Parameters: string - the string the expression |
attr | public static AttributeValueExp attr(String value)(Code) | | An attribute expression
Parameters: value - the name of the attribute the expression |
attr | public static AttributeValueExp attr(String className, String value)(Code) | | An attribute expression restricted to a specific class
Parameters: className - the name of the class Parameters: value - the name of the attribute the expression |
between | public static QueryExp between(ValueExp test, ValueExp lower, ValueExp higher)(Code) | | Tests a value is between two other values. Returns true when this is
case, false otherwise.
Parameters: test - the value to test Parameters: lower - the lower bound Parameters: higher - the higer bound the expression |
div | public static ValueExp div(ValueExp first, ValueExp second)(Code) | | An expression that divides the first expression by the second
Parameters: first - the first expression Parameters: second - the second expression the expression |
eq | public static QueryExp eq(ValueExp first, ValueExp second)(Code) | | Equals Comparison.
Parameters: first - the first expression Parameters: second - the second expression true when first equals second |
finalSubString | public static QueryExp finalSubString(AttributeValueExp attr, StringValueExp string)(Code) | | Tests an attribute ends with a string as a subset. Return true
when this is the case, false otherwise.
Parameters: attr - the attribute Parameters: string - the string the expression |
geq | public static QueryExp geq(ValueExp first, ValueExp second)(Code) | | Greater than or Equals Comparison.
Parameters: first - the first expression Parameters: second - the second expression true when first >= second |
gt | public static QueryExp gt(ValueExp first, ValueExp second)(Code) | | Greater than.
Parameters: first - the first expression Parameters: second - the second expression true when first > second |
in | public static QueryExp in(ValueExp test, ValueExp[] list)(Code) | | Tests a value is in one of the listed values. Returns true when this is
case, false otherwise.
Parameters: test - the value to test Parameters: list - an array of values the expression |
initialSubString | public static QueryExp initialSubString(AttributeValueExp attr, StringValueExp string)(Code) | | Tests an attribute starts with a string as a subset. Return true
when this is the case, false otherwise.
Parameters: attr - the attribute Parameters: string - the string the expression |
leq | public static QueryExp leq(ValueExp first, ValueExp second)(Code) | | Less than or equal.
Parameters: first - the first expression Parameters: second - the second expression true when first <= second |
lt | public static QueryExp lt(ValueExp first, ValueExp second)(Code) | | Less than.
Parameters: first - the first expression Parameters: second - the second expression true when first < second |
match | public static QueryExp match(AttributeValueExp attr, StringValueExp string)(Code) | | Tests an attribute equals a string value. Return true
when this is the case, false otherwise.
Parameters: attr - the attribute Parameters: string - the string the expression |
minus | public static ValueExp minus(ValueExp first, ValueExp second)(Code) | | An expression that subtracts the second expression from the first
Parameters: first - the first expression Parameters: second - the second expression the expression |
not | public static QueryExp not(QueryExp expression)(Code) | | Not Query expression. Return true only when expression is false.
Parameters: expression - the expression to negate the expression |
or | public static QueryExp or(QueryExp first, QueryExp second)(Code) | | Or Query expression. Return true when either expression is true.
Parameters: first - the first expression Parameters: second - the second expression the expression |
plus | public static ValueExp plus(ValueExp first, ValueExp second)(Code) | | An expression that adds the second expression to the first
Parameters: first - the first expression Parameters: second - the second expression the expression |
times | public static ValueExp times(ValueExp first, ValueExp second)(Code) | | An expression that multiplies the first expression by the second
Parameters: first - the first expression Parameters: second - the second expression the expression |
value | public static ValueExp value(boolean value)(Code) | | Create a boolean value expression for use in a Query.
the expression |
value | public static ValueExp value(double value)(Code) | | Create a double value expression for use in a Query.
the expression |
value | public static ValueExp value(float value)(Code) | | Create a float value expression for use in a Query.
the expression |
value | public static ValueExp value(int value)(Code) | | Create an integer value expression for use in a Query.
the expression |
value | public static ValueExp value(long value)(Code) | | Create a long value expression for use in a Query.
the expression |
value | public static ValueExp value(Number value)(Code) | | Create a number value expression for use in a Query.
the expression |
|
|