|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.Query
This class is a factory for constructing queries.
REVIEW: Full explanation. See the spec for now for what it's worth.
Field Summary | |
static int |
DIV
Divide expression |
static int |
EQ
Equals expression |
static int |
GE
Greater than or equals expression |
static int |
GT
Greater than expression |
static int |
LE
Less than or equals expression |
static int |
LT
Less than expression |
static int |
MINUS
Minus expression |
static int |
PLUS
Plus expression |
static int |
TIMES
Times expression |
Constructor Summary | |
Query()
Construct a new Query |
Method Summary | |
static QueryExp |
and(QueryExp first,
QueryExp second)
And Query expression. |
static QueryExp |
anySubString(AttributeValueExp attr,
StringValueExp string)
Tests an attribute contains a string as a subset. |
static AttributeValueExp |
attr(String value)
An attribute expression |
static AttributeValueExp |
attr(String className,
String value)
An attribute expression restricted to a specific class |
static QueryExp |
between(ValueExp test,
ValueExp lower,
ValueExp higher)
Tests a value is between two other values. |
static AttributeValueExp |
classattr()
What is this? |
static ValueExp |
div(ValueExp first,
ValueExp second)
An expression that divides the first expression by the second |
static QueryExp |
eq(ValueExp first,
ValueExp second)
Equals Comparison. |
static QueryExp |
finalSubString(AttributeValueExp attr,
StringValueExp string)
Tests an attribute ends with a string as a subset. |
static QueryExp |
geq(ValueExp first,
ValueExp second)
Greater than or Equals Comparison. |
static QueryExp |
gt(ValueExp first,
ValueExp second)
Greater than. |
static QueryExp |
in(ValueExp test,
ValueExp[] list)
Tests a value is in one of the listed values. |
static QueryExp |
initialSubString(AttributeValueExp attr,
StringValueExp string)
Tests an attribute starts with a string as a subset. |
static QueryExp |
leq(ValueExp first,
ValueExp second)
Less than or equal. |
static QueryExp |
lt(ValueExp first,
ValueExp second)
Less than. |
static QueryExp |
match(AttributeValueExp attr,
StringValueExp string)
Tests an attribute equals a string value. |
static ValueExp |
minus(ValueExp first,
ValueExp second)
An expression that subtracts the second expression from the first |
static QueryExp |
not(QueryExp expression)
Not Query expression. |
static QueryExp |
or(QueryExp first,
QueryExp second)
Or Query expression. |
static ValueExp |
plus(ValueExp first,
ValueExp second)
An expression that adds the second expression to the first |
static ValueExp |
times(ValueExp first,
ValueExp second)
An expression that multiplies the first expression by the second |
static ValueExp |
value(boolean value)
Create a boolean value expression for use in a Query. |
static ValueExp |
value(double value)
Create a double value expression for use in a Query. |
static ValueExp |
value(float value)
Create a float value expression for use in a Query. |
static ValueExp |
value(int value)
Create an integer value expression for use in a Query. |
static ValueExp |
value(long value)
Create a long value expression for use in a Query. |
static ValueExp |
value(Number value)
Create a number value expression for use in a Query. |
static StringValueExp |
value(String value)
Create a string value expression for use in a Query. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int DIV
public static final int EQ
public static final int GE
public static final int GT
public static final int LE
public static final int LT
public static final int MINUS
public static final int PLUS
public static final int TIMES
Constructor Detail |
public Query()
Method Detail |
public static QueryExp and(QueryExp first, QueryExp second)
first
- the first expressionsecond
- the second expression
public static QueryExp anySubString(AttributeValueExp attr, StringValueExp string)
attr
- the attributestring
- the string
public static AttributeValueExp attr(String value)
value
- the name of the attribute
public static AttributeValueExp attr(String className, String value)
className
- the name of the classvalue
- the name of the attribute
public static QueryExp between(ValueExp test, ValueExp lower, ValueExp higher)
test
- the value to testlower
- the lower boundhigher
- the higer bound
public static AttributeValueExp classattr()
public static ValueExp div(ValueExp first, ValueExp second)
first
- the first expressionsecond
- the second expression
public static QueryExp eq(ValueExp first, ValueExp second)
first
- the first expressionsecond
- the second expression
public static QueryExp finalSubString(AttributeValueExp attr, StringValueExp string)
attr
- the attributestring
- the string
public static QueryExp geq(ValueExp first, ValueExp second)
first
- the first expressionsecond
- the second expression
public static QueryExp gt(ValueExp first, ValueExp second)
first
- the first expressionsecond
- the second expression
public static QueryExp in(ValueExp test, ValueExp[] list)
test
- the value to testlist
- an array of values
public static QueryExp initialSubString(AttributeValueExp attr, StringValueExp string)
attr
- the attributestring
- the string
public static QueryExp leq(ValueExp first, ValueExp second)
first
- the first expressionsecond
- the second expression
public static QueryExp lt(ValueExp first, ValueExp second)
first
- the first expressionsecond
- the second expression
public static QueryExp match(AttributeValueExp attr, StringValueExp string)
attr
- the attributestring
- the string
public static ValueExp minus(ValueExp first, ValueExp second)
first
- the first expressionsecond
- the second expression
public static QueryExp not(QueryExp expression)
expression
- the expression to negate
public static QueryExp or(QueryExp first, QueryExp second)
first
- the first expressionsecond
- the second expression
public static ValueExp plus(ValueExp first, ValueExp second)
first
- the first expressionsecond
- the second expression
public static ValueExp times(ValueExp first, ValueExp second)
first
- the first expressionsecond
- the second expression
public static ValueExp value(boolean value)
public static ValueExp value(double value)
public static ValueExp value(float value)
public static ValueExp value(int value)
public static ValueExp value(long value)
public static ValueExp value(Number value)
public static StringValueExp value(String value)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |