Java Doc for Query.java in  » JMX » XMOJO » 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 » XMOJO » javax.management 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.management.Query

Query
public class Query (Code)
This Query class supports construction of query object constraints. The static methods provided return query expressions that may be used in listing and enumerating MBeans. Individual constraint constructing 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("John")));


Field Summary
final static  intAND
    
final static  intANY
    
final static  intBET
    
final public static  intDIV
    
final public static  intEQ
    
final static  intFINAL
    
final public static  intGE
    
final public static  intGT
    
final static  intIN
    
final static  intINITIAL
    
final public static  intLE
    
final public static  intLT
    
final static  intMATCH
    
final public static  intMINUS
    
final static  intNOT
    
final static  intOR
    
final public static  intPLUS
    
final public static  intTIMES
    

Constructor Summary
public  Query()
     Constructs a query object.

Method Summary
public static  QueryExpand(QueryExp q1, QueryExp q2)
     Returns a query expression that is the conjunction of two other query expressions.
public static  QueryExpanySubString(AttributeValueExp a, StringValueExp s)
     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.
public static  QueryExpbetween(ValueExp v1, ValueExp v2, ValueExp v3)
     Returns a query expression that represents the constraint that one value is between two other values.
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 v1, ValueExp v2)
     Returns a binary expression representing the quotient of two numeric values.
Parameters:
  v1 - - The first '/' operand.
Parameters:
  v2 - - The second '/' operand.
public static  QueryExpeq(ValueExp v1, ValueExp v2)
     Returns a query expression that represents an equality constraint on two values.
public static  QueryExpfinalSubString(AttributeValueExp a, StringValueExp s)
     Returns a query expression that represents a matching constraint on a string argument.
public static  QueryExpgeq(ValueExp v1, ValueExp v2)
     Returns a query expression that represents a "greater than or equal to" constraint on two values.
public static  QueryExpgt(ValueExp v1, ValueExp v2)
     Returns a query expression that represents a "greater than" constraint on two values.
public static  QueryExpin(ValueExp va1, ValueExp[] valueList)
     Returns an expression constraining a value to be one of an explicit list.
public static  QueryExpinitialSubString(AttributeValueExp a, StringValueExp s)
     Returns a query expression that represents a matching constraint on a string argument.
public static  QueryExpleq(ValueExp v1, ValueExp v2)
     Returns a query expression that represents a "less than or equal to" constraint on two values.
public static  QueryExplt(ValueExp v1, ValueExp v2)
     Returns a query expression that represents a "less than" constraint on two values.
public static  QueryExpmatch(AttributeValueExp a, StringValueExp s)
     Returns a query expression that represents a matching constraint on a string argument.
public static  ValueExpminus(ValueExp v1, ValueExp v2)
     Returns a binary expression representing the difference of two numeric values.
Parameters:
  v1 - - The first '-' operand.
Parameters:
  v2 - - The second '-' operand.
public static  QueryExpnot(QueryExp queryExp)
     Returns a constraint that is the negation of its argument.
public static  QueryExpor(QueryExp q1, QueryExp q2)
     Returns a query expression that is the disjunction of two other query expressions.
public static  ValueExpplus(ValueExp v1, ValueExp v2)
     Returns a binary expression representing the sum of two numeric values or the concatenation of two string values.
Parameters:
  v1 - - The first '+' operand.
Parameters:
  v2 - - The second '+' operand.
public static  ValueExptimes(ValueExp v1, ValueExp v2)
     Returns a binary expression representing the product of two numeric values.
Parameters:
  v1 - - The first '*' operand.
Parameters:
  v2 - - The second '*' operand.
public static  ValueExpvalue(int val)
     Returns a numeric value expression that can be used in any Query call that expects a ValueExp.
public static  ValueExpvalue(long val)
     Returns a numeric value expression that can be used in any Query call that expects a ValueExp.
public static  ValueExpvalue(float val)
     Returns a numeric value expression that can be used in any Query call that expects a ValueExp.
public static  ValueExpvalue(double val)
     Returns a numeric value expression that can be used in any Query call that expects a ValueExp.
public static  ValueExpvalue(boolean val)
     Returns a boolean value expression that can be used in any Query call that expects a ValueExp.
public static  ValueExpvalue(Number val)
     Returns a numeric value expression that can be used in any Query call that expects a ValueExp.
public static  StringValueExpvalue(String val)
     Returns a new string expression.

Field Detail
AND
final static int AND(Code)



ANY
final static int ANY(Code)



BET
final static int BET(Code)



DIV
final public static int DIV(Code)



EQ
final public static int EQ(Code)



FINAL
final static int FINAL(Code)



GE
final public static int GE(Code)



GT
final public static int GT(Code)



IN
final static int IN(Code)



INITIAL
final static int INITIAL(Code)



LE
final public static int LE(Code)



LT
final public static int LT(Code)



MATCH
final static int MATCH(Code)



MINUS
final public static int MINUS(Code)



NOT
final static int NOT(Code)



OR
final static int OR(Code)



PLUS
final public static int PLUS(Code)



TIMES
final public static int TIMES(Code)




Constructor Detail
Query
public Query()(Code)
Constructs a query object.




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



anySubString
public static QueryExp anySubString(AttributeValueExp a, StringValueExp s)(Code)
Returns a query expression that represents a matching constraint on a string argument. The value must contain the given string value.
Parameters:
  a - - An attribute expression
Parameters:
  s - - 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 v1, ValueExp v2, ValueExp v3)(Code)
Returns a query expression that represents the constraint that one value is between two other values.
Parameters:
  v1 - - A value expression that is "between" v2 and v3
Parameters:
  v2 - - Value expression that represents a boundary of the constraint
Parameters:
  v3 - - 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 v1, ValueExp v2)(Code)
Returns a binary expression representing the quotient of two numeric values.
Parameters:
  v1 - - The first '/' operand.
Parameters:
  v2 - - The second '/' operand. A ValueExp representing the quotient of two arguments.



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



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



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



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



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



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



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



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



match
public static QueryExp match(AttributeValueExp a, StringValueExp s)(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:
  a - - An attribute expression
Parameters:
  s - - A string value expression representing a matching constraint A query expression that represents the matching constrainton the string argument.



minus
public static ValueExp minus(ValueExp v1, ValueExp v2)(Code)
Returns a binary expression representing the difference of two numeric values.
Parameters:
  v1 - - The first '-' operand.
Parameters:
  v2 - - The second '-' operand. A ValueExp representing the difference of 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 q1, QueryExp q2)(Code)
Returns a query expression that is the disjunction of two other query expressions.
Parameters:
  q1 - - A query expression
Parameters:
  q2 - - Another query expression The disjunction of the two arguments.



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



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



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



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



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



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



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



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



value
public static StringValueExp value(String val)(Code)
Returns a new string expression.
Parameters:
  val - - The string value A ValueExp object containing the string 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.