|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.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 (src) |
and(QueryExp (src) first,
QueryExp (src) second)
And Query expression. |
static QueryExp (src) |
anySubString(AttributeValueExp (src) attr,
StringValueExp (src) string)
Tests an attribute contains a string as a subset. |
static AttributeValueExp (src) |
attr(java.lang.String value)
An attribute expression |
static AttributeValueExp (src) |
attr(java.lang.String className,
java.lang.String value)
An attribute expression restricted to a specific class |
static QueryExp (src) |
between(ValueExp (src) test,
ValueExp (src) lower,
ValueExp (src) higher)
Tests a value is between two other values. |
static AttributeValueExp (src) |
classattr()
What is this? |
static ValueExp (src) |
div(ValueExp (src) first,
ValueExp (src) second)
An expression that divides the first expression by the second |
static QueryExp (src) |
eq(ValueExp (src) first,
ValueExp (src) second)
Equals Comparison. |
static QueryExp (src) |
finalSubString(AttributeValueExp (src) attr,
StringValueExp (src) string)
Tests an attribute ends with a string as a subset. |
static QueryExp (src) |
geq(ValueExp (src) first,
ValueExp (src) second)
Greater than or Equals Comparison. |
static QueryExp (src) |
gt(ValueExp (src) first,
ValueExp (src) second)
Greater than. |
static QueryExp (src) |
in(ValueExp (src) test,
ValueExp (src) [] list)
Tests a value is in one of the listed values. |
static QueryExp (src) |
initialSubString(AttributeValueExp (src) attr,
StringValueExp (src) string)
Tests an attribute starts with a string as a subset. |
static QueryExp (src) |
leq(ValueExp (src) first,
ValueExp (src) second)
Less than or equal. |
static QueryExp (src) |
lt(ValueExp (src) first,
ValueExp (src) second)
Less than. |
static QueryExp (src) |
match(AttributeValueExp (src) attr,
StringValueExp (src) string)
Tests an attribute equals a string value. |
static ValueExp (src) |
minus(ValueExp (src) first,
ValueExp (src) second)
An expression that subtracts the second expression from the first |
static QueryExp (src) |
not(QueryExp (src) expression)
Not Query expression. |
static QueryExp (src) |
or(QueryExp (src) first,
QueryExp (src) second)
Or Query expression. |
static ValueExp (src) |
plus(ValueExp (src) first,
ValueExp (src) second)
An expression that adds the second expression to the first |
static ValueExp (src) |
times(ValueExp (src) first,
ValueExp (src) second)
An expression that multiplies the first expression by the second |
static ValueExp (src) |
value(boolean value)
Create a boolean value expression for use in a Query. |
static ValueExp (src) |
value(double value)
Create a double value expression for use in a Query. |
static ValueExp (src) |
value(float value)
Create a float value expression for use in a Query. |
static ValueExp (src) |
value(int value)
Create an integer value expression for use in a Query. |
static ValueExp (src) |
value(long value)
Create a long value expression for use in a Query. |
static ValueExp (src) |
value(java.lang.Number value)
Create a number value expression for use in a Query. |
static StringValueExp (src) |
value(java.lang.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 (src) and(QueryExp (src) first, QueryExp (src) second)
first
- the first expressionsecond
- the second expression
public static QueryExp (src) anySubString(AttributeValueExp (src) attr, StringValueExp (src) string)
attr
- the attributestring
- the string
public static AttributeValueExp (src) attr(java.lang.String value)
value
- the name of the attribute
public static AttributeValueExp (src) attr(java.lang.String className, java.lang.String value)
className
- the name of the classvalue
- the name of the attribute
public static QueryExp (src) between(ValueExp (src) test, ValueExp (src) lower, ValueExp (src) higher)
test
- the value to testlower
- the lower boundhigher
- the higer bound
public static AttributeValueExp (src) classattr()
public static ValueExp (src) div(ValueExp (src) first, ValueExp (src) second)
first
- the first expressionsecond
- the second expression
public static QueryExp (src) eq(ValueExp (src) first, ValueExp (src) second)
first
- the first expressionsecond
- the second expression
public static QueryExp (src) finalSubString(AttributeValueExp (src) attr, StringValueExp (src) string)
attr
- the attributestring
- the string
public static QueryExp (src) geq(ValueExp (src) first, ValueExp (src) second)
first
- the first expressionsecond
- the second expression
public static QueryExp (src) gt(ValueExp (src) first, ValueExp (src) second)
first
- the first expressionsecond
- the second expression
public static QueryExp (src) in(ValueExp (src) test, ValueExp (src) [] list)
test
- the value to testlist
- an array of values
public static QueryExp (src) initialSubString(AttributeValueExp (src) attr, StringValueExp (src) string)
attr
- the attributestring
- the string
public static QueryExp (src) leq(ValueExp (src) first, ValueExp (src) second)
first
- the first expressionsecond
- the second expression
public static QueryExp (src) lt(ValueExp (src) first, ValueExp (src) second)
first
- the first expressionsecond
- the second expression
public static QueryExp (src) match(AttributeValueExp (src) attr, StringValueExp (src) string)
attr
- the attributestring
- the string
public static ValueExp (src) minus(ValueExp (src) first, ValueExp (src) second)
first
- the first expressionsecond
- the second expression
public static QueryExp (src) not(QueryExp (src) expression)
expression
- the expression to negate
public static QueryExp (src) or(QueryExp (src) first, QueryExp (src) second)
first
- the first expressionsecond
- the second expression
public static ValueExp (src) plus(ValueExp (src) first, ValueExp (src) second)
first
- the first expressionsecond
- the second expression
public static ValueExp (src) times(ValueExp (src) first, ValueExp (src) second)
first
- the first expressionsecond
- the second expression
public static ValueExp (src) value(boolean value)
public static ValueExp (src) value(double value)
public static ValueExp (src) value(float value)
public static ValueExp (src) value(int value)
public static ValueExp (src) value(long value)
public static ValueExp (src) value(java.lang.Number value)
public static StringValueExp (src) value(java.lang.String value)
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |