Java Doc for SpeedoQLAbstractVisitor.java in  » Database-ORM » Speedo_1.4.5 » org » objectweb » speedo » query » jdo » parser » 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 » Speedo_1.4.5 » org.objectweb.speedo.query.jdo.parser 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.objectweb.speedo.query.lib.SpeedoQueryHelper
      org.objectweb.speedo.query.jdo.parser.SpeedoQLAbstractVisitor

All known Subclasses:   org.objectweb.speedo.query.jdo.parser.SpeedoQLQueryFilterVisitor,  org.objectweb.speedo.query.jdo.parser.SpeedoQLVariableVisitor,
SpeedoQLAbstractVisitor
public class SpeedoQLAbstractVisitor extends SpeedoQueryHelper implements SpeedoQLVisitor(Code)
Base class with visitor utility class and default implementation of visit methods

Inner Class :protected class VisitorException extends RuntimeException

Field Summary
final public static  ByteBEGIN_OPERAND_SUBSTRING
    
final public static  intCONTAINS_OPERATOR
    
final public static  intENDS_WITH_OPERATOR
    
final public static  intEQUALS_IGNORE_CASE_OPERATOR
    
final public static  intEQUALS_OPERATOR
    
final public static  intEXTENT
    
final public static  intIN_COLLECTION
    
final public static  intIS_EMPTY
    
final public static  intIS_EMPTY_OPERATOR
    
final public static  intIS_NOT_EMPTY
    
final public static  ByteLENGTH_OPERAND_SUBSTRING
    
final public static  intLENGTH_OPERATOR
    
final public static  intMATCHES_OPERATOR
    
final public static  intMEMBEROF
    
final public static  String[]METHODS_OPERATOR
    
final public static  intNAVIGATION
    
final public static  intSTARTS_WITH_OPERATOR
    
final public static  ByteSTR_OPERAND_SUBSTRING
    
final public static  intSUBSTRING_OPERATOR
    
final public static  intTO_LOWER_OPERATOR
    
final public static  intTO_UPPER_OPERATOR
    
final public static  intUNDEFINED
     int value to define the type of the IdValue object UNDEFINED : in case we don't know (default) JORM_NAME : jorm name (end point of the recursivity) NAVIGATION : the object is field to a field ...
public  StringlastName
    
protected  Mapparams
     params is an hashtable to store the parameters.
protected  Mapvars
     vars is an hashtable to store the variables.


Method Summary
public  Stringalias2fullname(String alias)
    
public  StringbuildStringwithout(String[] ss, int toforget, String sep)
    
protected  StringgetEndString(String total)
    
protected  FieldgetMedorFieldFromPath(String path, Map ids)
    
public  intisMethodOperator(String str)
    
final public static  StringoperationToString(int oc)
    
public  voidsetCurrentClass(String curClass)
    
public  voidsetParams(Map params)
    
public  voidsetVars(Map vars)
    
protected  String[]splitEndPath(String path, String prefix)
    
public  Objectvisit(SimpleNode node)
     Visit method to call from constructor.
public  Objectvisit(SimpleNode node, Object data)
    
public  Objectvisit(ASTSpeedoPrimary node, Object data)
    
public  Objectvisit(ASTSpeedoQL node, Object data)
    
public  Objectvisit(ASTPrimary node, Object data)
    
public  Objectvisit(ASTRelationalExpression node, Object data)
    
public  Objectvisit(ASTAdditiveExpression node, Object data)
    
public  Objectvisit(ASTUnaryExpression node, Object data)
    
public  Objectvisit(ASTCastExpression node, Object data)
    
public  Objectvisit(ASTArgumentList node, Object data)
    
public  Objectvisit(ASTLiteral node, Object data)
    
public  Objectvisit(ASTType node, Object data)
    
public  Objectvisit(ASTQualifiedName node, Object data)
    
public  StringwithoutThis(String aname)
    

Field Detail
BEGIN_OPERAND_SUBSTRING
final public static Byte BEGIN_OPERAND_SUBSTRING(Code)



CONTAINS_OPERATOR
final public static int CONTAINS_OPERATOR(Code)



ENDS_WITH_OPERATOR
final public static int ENDS_WITH_OPERATOR(Code)



EQUALS_IGNORE_CASE_OPERATOR
final public static int EQUALS_IGNORE_CASE_OPERATOR(Code)



EQUALS_OPERATOR
final public static int EQUALS_OPERATOR(Code)



EXTENT
final public static int EXTENT(Code)



IN_COLLECTION
final public static int IN_COLLECTION(Code)



IS_EMPTY
final public static int IS_EMPTY(Code)



IS_EMPTY_OPERATOR
final public static int IS_EMPTY_OPERATOR(Code)



IS_NOT_EMPTY
final public static int IS_NOT_EMPTY(Code)



LENGTH_OPERAND_SUBSTRING
final public static Byte LENGTH_OPERAND_SUBSTRING(Code)



LENGTH_OPERATOR
final public static int LENGTH_OPERATOR(Code)



MATCHES_OPERATOR
final public static int MATCHES_OPERATOR(Code)



MEMBEROF
final public static int MEMBEROF(Code)



METHODS_OPERATOR
final public static String[] METHODS_OPERATOR(Code)



NAVIGATION
final public static int NAVIGATION(Code)



STARTS_WITH_OPERATOR
final public static int STARTS_WITH_OPERATOR(Code)



STR_OPERAND_SUBSTRING
final public static Byte STR_OPERAND_SUBSTRING(Code)



SUBSTRING_OPERATOR
final public static int SUBSTRING_OPERATOR(Code)



TO_LOWER_OPERATOR
final public static int TO_LOWER_OPERATOR(Code)



TO_UPPER_OPERATOR
final public static int TO_UPPER_OPERATOR(Code)



UNDEFINED
final public static int UNDEFINED(Code)
int value to define the type of the IdValue object UNDEFINED : in case we don't know (default) JORM_NAME : jorm name (end point of the recursivity) NAVIGATION : the object is field to a field ... CONTAINS_IN : the id is a variable and used in a contains method CONTAINS_MEMBEROF : the id is a parameter and used in a contains method



lastName
public String lastName(Code)



params
protected Map params(Code)
params is an hashtable to store the parameters. key: name of the parameter value: a BasicFieldOperand



vars
protected Map vars(Code)
vars is an hashtable to store the variables. key: name of the variable value: the PType of the variable (from the declaration)





Method Detail
alias2fullname
public String alias2fullname(String alias)(Code)



buildStringwithout
public String buildStringwithout(String[] ss, int toforget, String sep)(Code)



getEndString
protected String getEndString(String total)(Code)



getMedorFieldFromPath
protected Field getMedorFieldFromPath(String path, Map ids) throws MedorException, ParseException(Code)
return the JormField for a given path
Parameters:
  path - the path of the JormField to return
Parameters:
  ids - the map of (id,QueryTree)pairs;
throws:
  org.objectweb.speedo.query.parser.ParseException - if identification variable not found.
throws:
  org.objectweb.medor.api.MedorException - if corresponding fielc does not exist



isMethodOperator
public int isMethodOperator(String str)(Code)



operationToString
final public static String operationToString(int oc)(Code)



setCurrentClass
public void setCurrentClass(String curClass)(Code)



setParams
public void setParams(Map params)(Code)
SETTER METHODS ************************************



setVars
public void setVars(Map vars)(Code)



splitEndPath
protected String[] splitEndPath(String path, String prefix)(Code)



visit
public Object visit(SimpleNode node) throws Exception(Code)
Visit method to call from constructor. Child node visitors get a java.util.Stack as data parameter.
throws:
  java.lang.Exception - any nested exception thrown from other visit method



visit
public Object visit(SimpleNode node, Object data)(Code)
Generic visit method that traverses all child nodes



visit
public Object visit(ASTSpeedoPrimary node, Object data)(Code)



visit
public Object visit(ASTSpeedoQL node, Object data)(Code)



visit
public Object visit(ASTPrimary node, Object data)(Code)



visit
public Object visit(ASTRelationalExpression node, Object data)(Code)



visit
public Object visit(ASTAdditiveExpression node, Object data)(Code)



visit
public Object visit(ASTUnaryExpression node, Object data)(Code)



visit
public Object visit(ASTCastExpression node, Object data)(Code)



visit
public Object visit(ASTArgumentList node, Object data)(Code)



visit
public Object visit(ASTLiteral node, Object data)(Code)



visit
public Object visit(ASTType node, Object data)(Code)



visit
public Object visit(ASTQualifiedName node, Object data)(Code)



withoutThis
public String withoutThis(String aname)(Code)



Fields inherited from org.objectweb.speedo.query.lib.SpeedoQueryHelper
protected String curClass(Code)(Java Doc)
public boolean debug(Code)(Java Doc)
protected Map ids(Code)(Java Doc)
protected boolean includeSubClasses(Code)(Java Doc)
protected Manager jmiManager(Code)(Java Doc)
public Logger logger(Code)(Java Doc)

Methods inherited from org.objectweb.speedo.query.lib.SpeedoQueryHelper
protected QueryTreeField define(QueryBuilder theqb, String id, String alias) throws MedorException, SpeedoException(Code)(Java Doc)
protected PNameField extent(String classname, String alias) throws SpeedoException, MedorException(Code)(Java Doc)
public Logger getLogger()(Code)(Java Doc)
public LoggerFactory getLoggerFactory()(Code)(Java Doc)
protected String mergePath(String[] path, int begin, int length)(Code)(Java Doc)
protected String mergePath(String[] path)(Code)(Java Doc)
public void setLogger(Logger logger)(Code)(Java Doc)
public void setLoggerFactory(LoggerFactory loggerFactory)(Code)(Java Doc)
protected String[] splitPath(String path)(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.