Java Doc for Query.java in  » JMX » jfoxmx » javax » management » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » JMX » jfoxmx » javax.management 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.management.Query

Query
public class Query (Code)
Constructs query object constraints. The static methods provided return query expressions that may be used in listing and enumerating MBeans. Individual constraint construction methods allow only appropriate types as arguments. Composition of calls can construct arbitrary nestings of constraints, as the following example illustrates: QueryExp exp = Query.and(Query.gt(Query.attr("age"),Query.value(5)), Query.match(Query.attr("name"), Query.value("Smith")));
author:
   Young Yang


Field Summary
final public static  intDIV
    
final public static  intEQ
    
final public static  intGE
    
final public static  intGT
    
final public static  intLE
    
final public static  intLT
    
final public static  intMINUS
    
final public static  intPLUS
    
final public static  intTIMES
    


Method Summary
public static  QueryExpand(QueryExp leftexp, QueryExp rightexp)
     Returns a query expression that is the conjunction of two other query expressions.
Parameters:
  leftexp - A query expression.
Parameters:
  rightexp - Another query expression.
public static  QueryExpanySubString(AttributeValueExp attrvexp, StringValueExp strvexp)
     Returns a query expression that represents a matching constraint on a string argument.
public static  AttributeValueExpattr(String name)
     Returns a new attribute expression.
Parameters:
  name - The name of the attribute.
public static  AttributeValueExpattr(String className, String name)
     Returns a new qualified attribute expression.
Parameters:
  className - The name of the class possessing the attribute.
Parameters:
  name - The name of the attribute.
public static  QueryExpbetween(ValueExp leftvexp, ValueExp checkvexp, ValueExp rightvexp)
     Returns a query expression that represents the constraint that one value is between two other values.
Parameters:
  leftvexp - A value expression that is "between" v2 and v3.
Parameters:
  checkvexp - Value expression that represents a boundary of the constraint.
Parameters:
  rightvexp - Value expression that represents a boundary of the constraint.
public static  AttributeValueExpclassattr()
     Returns a new class attribute expression which can be used in any Query call that expects a ValueExp.
public static  ValueExpdiv(ValueExp leftvexp, ValueExp rightvexp)
     Returns a binary expression representing the quotient of two numeric values.
Parameters:
  leftvexp - The first '/' operand.
Parameters:
  rightvexp - The second '/' operand.
public static  QueryExpeq(ValueExp leftvexp, ValueExp rightvexp)
     Returns a query expression that represents an equality constraint on two values.
Parameters:
  leftvexp - A value expression.
Parameters:
  rightvexp - Another value expression.
public static  QueryExpfinalSubString(AttributeValueExp attrvexp, StringValueExp strvexp)
     Returns a query expression that represents a matching constraint on a string argument.
public static  QueryExpgeq(ValueExp leftvexp, ValueExp rightvexp)
     Returns a query expression that represents a "greater than or equal to" constraint on two values.
Parameters:
  leftvexp - A value expression.
Parameters:
  rightvexp - Another value expression.
public static  QueryExpgt(ValueExp leftvexp, ValueExp rightvexp)
     Returns a query expression that represents a "greater than" constraint on two values.
Parameters:
  leftvexp - A value expression.
Parameters:
  rightvexp - Another value expression.
public static  QueryExpin(ValueExp vexp, ValueExp[] vexps)
     Returns an expression constraining a value to be one of an explicit list.
Parameters:
  vexp - A value to be constrained.
Parameters:
  vexps - An array of ValueExps.
public static  QueryExpinitialSubString(AttributeValueExp attrvexp, StringValueExp strvexp)
     Returns a query expression that represents a matching constraint on a string argument.
public static  QueryExpleq(ValueExp leftvexp, ValueExp rightvexp)
     Returns a query expression that represents a "less than or equal to" constraint on two values.
Parameters:
  leftvexp - A value expression.
Parameters:
  rightvexp - Another value expression.
public static  QueryExplt(ValueExp leftvexp, ValueExp rightvexp)
     Returns a query expression that represents a "less than" constraint on two values.
Parameters:
  leftvexp - A value expression.
Parameters:
  rightvexp - Another value expression.
public static  QueryExpmatch(AttributeValueExp attrvexp, StringValueExp strvexp)
     Returns a query expression that represents a matching constraint on a string argument.
public static  ValueExpminus(ValueExp leftvexp, ValueExp rightvexp)
     Returns a binary expression representing the difference between two numeric values.
Parameters:
  leftvexp - The first '-' operand.
Parameters:
  rightvexp - The second '-' operand.
public static  QueryExpnot(QueryExp queryexp)
     Returns a constraint that is the negation of its argument.
Parameters:
  queryexp - The constraint to negate.
public static  QueryExpor(QueryExp leftexp, QueryExp rightexp)
     Returns a query expression that is the disjunction of two other query expressions.
Parameters:
  leftexp - A query expression.
Parameters:
  rightexp - Another query expression.
public static  ValueExpplus(ValueExp leftvexp, ValueExp rightvexp)
     Returns a binary expression representing the sum of two numeric values, or the concatenation of two string values.
Parameters:
  leftvexp - The first '+' operand.
Parameters:
  rightvexp - The second '+' operand.
public static  ValueExptimes(ValueExp leftvexp, ValueExp rightvexp)
     Returns a binary expression representing the product of two numeric values.
Parameters:
  leftvexp - The first '*' operand.
Parameters:
  rightvexp - The second '*' operand.
public static  StringValueExpvalue(String value)
     Returns a new string expression.
Parameters:
  value - The string value.
public static  ValueExpvalue(Number value)
     Returns a numeric value expression that can be used in any Query call that expects a ValueExp.
Parameters:
  value - An instance of Number.
public static  ValueExpvalue(int value)
     Returns a numeric value expression that can be used in any Query call that expects a ValueExp.
Parameters:
  value - An int value.
public static  ValueExpvalue(long value)
     Returns a numeric value expression that can be used in any Query call that expects a ValueExp.
Parameters:
  value - A long value.
public static  ValueExpvalue(float value)
     Returns a numeric value expression that can be used in any Query call that expects a ValueExp.
Parameters:
  value - A float value.
public static  ValueExpvalue(double value)
     Returns a numeric value expression that can be used in any Query call that expects a ValueExp.
Parameters:
  value - A double value.
public static  ValueExpvalue(boolean flag)
     Returns a boolean value expression that can be used in any Query call that expects a ValueExp.
Parameters:
  flag - A boolean value.

Field Detail
DIV
final public static int DIV(Code)



EQ
final public static int EQ(Code)



GE
final public static int GE(Code)



GT
final public static int GT(Code)



LE
final public static int LE(Code)



LT
final public static int LT(Code)



MINUS
final public static int MINUS(Code)



PLUS
final public static int PLUS(Code)



TIMES
final public static int TIMES(Code)





Method Detail
and
public static QueryExp and(QueryExp leftexp, QueryExp rightexp)(Code)
Returns a query expression that is the conjunction of two other query expressions.
Parameters:
  leftexp - A query expression.
Parameters:
  rightexp - Another query expression. The conjunction of the two arguments.



anySubString
public static QueryExp anySubString(AttributeValueExp attrvexp, StringValueExp strvexp)(Code)
Returns a query expression that represents a matching constraint on a string argument. The value must contain the given string value.
Parameters:
  attrvexp - An attribute expression.
Parameters:
  strvexp - A string value expression representing the substring. The constraint that a matches s.



attr
public static AttributeValueExp attr(String name)(Code)
Returns a new attribute expression.
Parameters:
  name - The name of the attribute. An attribute expression for the attribute named name.



attr
public static AttributeValueExp attr(String className, String name)(Code)
Returns a new qualified attribute expression.
Parameters:
  className - The name of the class possessing the attribute.
Parameters:
  name - The name of the attribute. An attribute expression for the attribute named name.



between
public static QueryExp between(ValueExp leftvexp, ValueExp checkvexp, ValueExp rightvexp)(Code)
Returns a query expression that represents the constraint that one value is between two other values.
Parameters:
  leftvexp - A value expression that is "between" v2 and v3.
Parameters:
  checkvexp - Value expression that represents a boundary of the constraint.
Parameters:
  rightvexp - Value expression that represents a boundary of the constraint. The constraint that v1 lies between v2 and v3.



classattr
public static AttributeValueExp classattr()(Code)
Returns a new class attribute expression which can be used in any Query call that expects a ValueExp. A class attribute expression.



div
public static ValueExp div(ValueExp leftvexp, ValueExp rightvexp)(Code)
Returns a binary expression representing the quotient of two numeric values.
Parameters:
  leftvexp - The first '/' operand.
Parameters:
  rightvexp - The second '/' operand. A ValueExp representing the quotient of two arguments.



eq
public static QueryExp eq(ValueExp leftvexp, ValueExp rightvexp)(Code)
Returns a query expression that represents an equality constraint on two values.
Parameters:
  leftvexp - A value expression.
Parameters:
  rightvexp - Another value expression. A "equal to" constraint on the arguments.



finalSubString
public static QueryExp finalSubString(AttributeValueExp attrvexp, StringValueExp strvexp)(Code)
Returns a query expression that represents a matching constraint on a string argument. The value must contain the given string value.
Parameters:
  attrvexp - An attribute expression.
Parameters:
  strvexp - A string value expression representing the end of the string value. The constraint that a matches s.



geq
public static QueryExp geq(ValueExp leftvexp, ValueExp rightvexp)(Code)
Returns a query expression that represents a "greater than or equal to" constraint on two values.
Parameters:
  leftvexp - A value expression.
Parameters:
  rightvexp - Another value expression. A "greater than or equal to" constraint on the arguments.



gt
public static QueryExp gt(ValueExp leftvexp, ValueExp rightvexp)(Code)
Returns a query expression that represents a "greater than" constraint on two values.
Parameters:
  leftvexp - A value expression.
Parameters:
  rightvexp - Another value expression. A "greater than" constraint on the arguments.



in
public static QueryExp in(ValueExp vexp, ValueExp[] vexps)(Code)
Returns an expression constraining a value to be one of an explicit list.
Parameters:
  vexp - A value to be constrained.
Parameters:
  vexps - An array of ValueExps. A QueryExp that represents the constraint.



initialSubString
public static QueryExp initialSubString(AttributeValueExp attrvexp, StringValueExp strvexp)(Code)
Returns a query expression that represents a matching constraint on a string argument. The value must doStart with the given string value.
Parameters:
  attrvexp - An attribute expression.
Parameters:
  strvexp - A string value expression representing the beginning of the string value. The constraint that a matches s.



leq
public static QueryExp leq(ValueExp leftvexp, ValueExp rightvexp)(Code)
Returns a query expression that represents a "less than or equal to" constraint on two values.
Parameters:
  leftvexp - A value expression.
Parameters:
  rightvexp - Another value expression. A "less than or equal to" constraint on the arguments.



lt
public static QueryExp lt(ValueExp leftvexp, ValueExp rightvexp)(Code)
Returns a query expression that represents a "less than" constraint on two values.
Parameters:
  leftvexp - A value expression.
Parameters:
  rightvexp - Another value expression. A "less than" constraint on the arguments.



match
public static QueryExp match(AttributeValueExp attrvexp, StringValueExp strvexp)(Code)
Returns a query expression that represents a matching constraint on a string argument. The matching syntax is consistent with file globbing: Supports "?", "*", "[", each of which may be escaped with "\"; Character classes may use "!" for negation and "-" for range. (* for any character sequence ? for a single arbitrary character [...] for a character sequence). For example: a*b?c would match a string starting with the character a, followed by any number of characters, followed by a b, any single character, and a c.
Parameters:
  attrvexp - An attribute expression
Parameters:
  strvexp - A string value expression representing a matching constraint A query expression that represents the matching constraint on thestring argument.



minus
public static ValueExp minus(ValueExp leftvexp, ValueExp rightvexp)(Code)
Returns a binary expression representing the difference between two numeric values.
Parameters:
  leftvexp - The first '-' operand.
Parameters:
  rightvexp - The second '-' operand. A ValueExp representing the difference between two arguments.



not
public static QueryExp not(QueryExp queryexp)(Code)
Returns a constraint that is the negation of its argument.
Parameters:
  queryexp - The constraint to negate. A negated constraint.



or
public static QueryExp or(QueryExp leftexp, QueryExp rightexp)(Code)
Returns a query expression that is the disjunction of two other query expressions.
Parameters:
  leftexp - A query expression.
Parameters:
  rightexp - Another query expression. The disjunction of the two arguments.



plus
public static ValueExp plus(ValueExp leftvexp, ValueExp rightvexp)(Code)
Returns a binary expression representing the sum of two numeric values, or the concatenation of two string values.
Parameters:
  leftvexp - The first '+' operand.
Parameters:
  rightvexp - The second '+' operand. A ValueExp representing the sum or concatenation of the twoarguments.



times
public static ValueExp times(ValueExp leftvexp, ValueExp rightvexp)(Code)
Returns a binary expression representing the product of two numeric values.
Parameters:
  leftvexp - The first '*' operand.
Parameters:
  rightvexp - The second '*' operand. A ValueExp representing the product.



value
public static StringValueExp value(String value)(Code)
Returns a new string expression.
Parameters:
  value - The string value. A ValueExp object containing the string argument.



value
public static ValueExp value(Number value)(Code)
Returns a numeric value expression that can be used in any Query call that expects a ValueExp.
Parameters:
  value - An instance of Number. A ValueExp object containing the argument.



value
public static ValueExp value(int value)(Code)
Returns a numeric value expression that can be used in any Query call that expects a ValueExp.
Parameters:
  value - An int value. A ValueExp object containing the argument.



value
public static ValueExp value(long value)(Code)
Returns a numeric value expression that can be used in any Query call that expects a ValueExp.
Parameters:
  value - A long value. A ValueExp object containing the argument.



value
public static ValueExp value(float value)(Code)
Returns a numeric value expression that can be used in any Query call that expects a ValueExp.
Parameters:
  value - A float value. A ValueExp object containing the argument.



value
public static ValueExp value(double value)(Code)
Returns a numeric value expression that can be used in any Query call that expects a ValueExp.
Parameters:
  value - A double value. A ValueExp object containing the argument.



value
public static ValueExp value(boolean flag)(Code)
Returns a boolean value expression that can be used in any Query call that expects a ValueExp.
Parameters:
  flag - A boolean value. A ValueExp object containing the argument.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.