Java Doc for JDOQL.java in  » Database-ORM » XORM » org » xorm » query » jdoql » 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 » Database ORM » XORM » org.xorm.query.jdoql 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.xorm.query.AbstractQueryLanguage
      org.xorm.query.jdoql.JDOQL

JDOQL
public class JDOQL extends AbstractQueryLanguage implements JDOQLConstants(Code)
This class, generated by JavaCC, contains the grammar described in the Java Data Objects specification, transformed from LALR to LL by unrolling any instances of left recursion. For the sake of clarity, I have removed the production name(), which is listed in the JDO spec. At the raw grammar level, we don't have enough contextual information to determine which IDs are fields, parameters, or variables. The symbolic names fieldAccess() and methodInvocation() are dealt with inline in the _primary() production, rather than having top-level names. The output of this parser is an instance of org.xorm.query.Expression that represents the Expression parse tree. Because Expression trees can be created from other sources for use in XORM (for example, the CodeQuery class converts JVM bytecode to Expressions) I felt it was best NOT to use JJTree.
author:
   Wes Biggs

Inner Class :final static class JJCalls

Field Summary
 SimpleCharStreamjj_input_stream
    
public  booleanlookingAhead
    
public  JDOQLTokenManagertoken_source
    
public  Tokentokenjj_nt
    

Constructor Summary
public  JDOQL()
    
public  JDOQL(java.io.InputStream stream)
    
public  JDOQL(java.io.Reader stream)
    
public  JDOQL(JDOQLTokenManager tm)
    

Method Summary
public  voidReInit(java.io.InputStream stream)
    
public  voidReInit(java.io.Reader stream)
    
public  voidReInit(JDOQLTokenManager tm)
    
final public  void_additive()
    
final public  void_and()
    
final public  void_argumentList()
    
final public  void_conditionalAnd()
    
final public  void_conditionalOr()
    
final public  void_equality()
    
final public  void_exclusiveOr()
    
final public  void_inclusiveOr()
    
final public  void_multiplicative()
    
final public  void_primary()
    
final public  void_relational()
    
final public  voidadditive()
    
final public  voidand()
    
final public  voidargumentList()
    
final public  voidcast()
    
final public  voidclear()
     This is an empty-grammar pattern that gives the expression generator a hint that it's now working on a new expression.
public  voidcompile()
    
final public  voidconditionalAnd()
    
final public  voidconditionalOr()
    
final public  voiddisable_tracing()
    
final public  voidenable_tracing()
    
final public  voidequality()
    
final public  voidexclusiveOr()
    
final public  voidexpression()
     This is the top-level method that gets called to parse the JDOQL filter expression.
final public  ParseExceptiongenerateParseException()
    
public  ExpressiongetExpression()
    
final public  TokengetNextToken()
    
final public  TokengetToken(int index)
    
final public  voidinclusiveOr()
    
final public  voidliteral()
    
public static  voidmain(String args)
     Test bootstrap.
final public  voidmultiplicative()
    
final public  voidprimary()
    
public static  CharacterreadChar(StringReader reader)
     Returns the character read after escaping, or null if at the end of the input.
final public  voidrelational()
    
public  voidsetFilter(Object filter)
    
final public  voidtype()
    
final public  voidunary()
    
final public  voidunaryNotPlusMinus()
    

Field Detail
jj_input_stream
SimpleCharStream jj_input_stream(Code)



lookingAhead
public boolean lookingAhead(Code)



token_source
public JDOQLTokenManager token_source(Code)



tokenjj_nt
public Token tokenjj_nt(Code)




Constructor Detail
JDOQL
public JDOQL()(Code)



JDOQL
public JDOQL(java.io.InputStream stream)(Code)



JDOQL
public JDOQL(java.io.Reader stream)(Code)



JDOQL
public JDOQL(JDOQLTokenManager tm)(Code)




Method Detail
ReInit
public void ReInit(java.io.InputStream stream)(Code)



ReInit
public void ReInit(java.io.Reader stream)(Code)



ReInit
public void ReInit(JDOQLTokenManager tm)(Code)



_additive
final public void _additive() throws ParseException(Code)



_and
final public void _and() throws ParseException(Code)



_argumentList
final public void _argumentList() throws ParseException(Code)



_conditionalAnd
final public void _conditionalAnd() throws ParseException(Code)



_conditionalOr
final public void _conditionalOr() throws ParseException(Code)



_equality
final public void _equality() throws ParseException(Code)



_exclusiveOr
final public void _exclusiveOr() throws ParseException(Code)



_inclusiveOr
final public void _inclusiveOr() throws ParseException(Code)



_multiplicative
final public void _multiplicative() throws ParseException(Code)



_primary
final public void _primary() throws ParseException(Code)



_relational
final public void _relational() throws ParseException(Code)



additive
final public void additive() throws ParseException(Code)



and
final public void and() throws ParseException(Code)



argumentList
final public void argumentList() throws ParseException(Code)



cast
final public void cast() throws ParseException(Code)



clear
final public void clear() throws ParseException(Code)
This is an empty-grammar pattern that gives the expression generator a hint that it's now working on a new expression.



compile
public void compile() throws QuerySyntaxException(Code)



conditionalAnd
final public void conditionalAnd() throws ParseException(Code)



conditionalOr
final public void conditionalOr() throws ParseException(Code)



disable_tracing
final public void disable_tracing()(Code)



enable_tracing
final public void enable_tracing()(Code)



equality
final public void equality() throws ParseException(Code)



exclusiveOr
final public void exclusiveOr() throws ParseException(Code)



expression
final public void expression() throws ParseException(Code)
This is the top-level method that gets called to parse the JDOQL filter expression.



generateParseException
final public ParseException generateParseException()(Code)



getExpression
public Expression getExpression()(Code)



getNextToken
final public Token getNextToken()(Code)



getToken
final public Token getToken(int index)(Code)



inclusiveOr
final public void inclusiveOr() throws ParseException(Code)



literal
final public void literal() throws ParseException(Code)



main
public static void main(String args) throws ParseException, IOException(Code)
Test bootstrap. Allows you to enter JDOQL expressions using STDIN and see the results. For the purposes of testing, variables var, var2 and var3 and parameters param, param2, and param3 are declared.



multiplicative
final public void multiplicative() throws ParseException(Code)



primary
final public void primary() throws ParseException(Code)



readChar
public static Character readChar(StringReader reader)(Code)
Returns the character read after escaping, or null if at the end of the input.



relational
final public void relational() throws ParseException(Code)



setFilter
public void setFilter(Object filter)(Code)



type
final public void type() throws ParseException(Code)



unary
final public void unary() throws ParseException(Code)



unaryNotPlusMinus
final public void unaryNotPlusMinus() throws ParseException(Code)



Fields inherited from org.xorm.query.AbstractQueryLanguage
protected Class clazz(Code)(Java Doc)
protected LinkedHashMap paramNameToType(Code)(Java Doc)
protected HashMap varNameToType(Code)(Java Doc)

Methods inherited from org.xorm.query.AbstractQueryLanguage
public void addOrdering(QueryOrdering ordering)(Code)(Java Doc)
abstract public void compile() throws QuerySyntaxException(Code)(Java Doc)
public void declareParameter(String name, Class type)(Code)(Java Doc)
public void declareVariable(String name, Class type)(Code)(Java Doc)
public Class getCandidateClass()(Code)(Java Doc)
abstract public Expression getExpression()(Code)(Java Doc)
public QueryOrdering[] getOrdering()(Code)(Java Doc)
public List getParameterNames()(Code)(Java Doc)
public Class getParameterType(String name)(Code)(Java Doc)
public Set getVariableNames()(Code)(Java Doc)
public Class getVariableType(String name)(Code)(Java Doc)
public void setClass(Class clazz)(Code)(Java Doc)
abstract public void setFilter(Object filter)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

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.