Java Doc for QLParser.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » ejb » ql » 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 » EJB Server resin 3.1.5 » resin » com.caucho.ejb.ql 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.ejb.ql.Query
      com.caucho.ejb.ql.QLParser

QLParser
public class QLParser extends Query (Code)
Contains the parser for EJB-QL queries and stores the parsed expressions.

The expression tree is rooted at Expr.


Inner Class :static class FromItem
Inner Class :static class LinkItem

Field Summary
final static  intAND
    
final static  intARG
    
final static  intAS
    
final static  intASC
    
final static  intBETWEEN
    
final static  intBY
    
final static  intDESC
    
final static  intDISTINCT
    
final static  intDOUBLE
    
final static  intEMPTY
    
final static  intEQ
    
final static  intESCAPE
    
final static  intEXTERNAL_DOT
    
final static  intFALSE
    
final static  intFROM
    
final static  intGE
    
final static  intGT
    
final static  intIDENTIFIER
    
final static  intIN
    
final static  intINTEGER
    
final static  intIS
    
final static  L10NL
    
final static  intLE
    
final static  intLIKE
    
final static  intLIMIT
    
final static  intLONG
    
final static  intLT
    
final static  intMEMBER
    
final static  intNE
    
final static  intNOT
    
final static  intNULL
    
final static  intOF
    
final static  intOFFSET
    
final static  intOR
    
final static  intORDER
    
final static  intSELECT
    
final static  intSTRING
    
final static  intTHIS
    
final static  intTRUE
    
final static  intUNKNOWN
    
final static  intWHERE
    
final static  Loggerlog
    

Constructor Summary
public  QLParser(EjbEntityBean bean, String methodName, ApiMethod method, Class returnType)
     Creates a new select method.

Method Summary
public  voidaddArg(Expr expr)
    
 voidaddFromItem(String id, String table)
    
 voidaddIdentifier(String name, PathExpr expr)
    
public  booleanequals(Object b)
    
public  ConfigExceptionerror(String msg)
     Creates an error.
 ArrayList<Expr>getArgList()
     Gets the select method arguments in SQL order.
 ArrayList<Boolean>getAscendingList()
     Returns true if the order is ascending.
public  EjbEntityBeangetBeanByName(String ejbName)
     Gets a persistent bean by its type.
public  EjbEntityBeangetBeanByType(Class type)
     Gets a persistent bean by its type.
 ArrayList<FromItem>getFromList()
    
public  ArrayList<FunctionSignature>getFunctions()
     Returns the function map.
 PathExprgetIdentifier(String name)
    
 ExprgetLimitMax()
    
 ExprgetLimitOffset()
    
public  StringgetName()
     Returns the name of the select method.
 ArrayList<Expr>getOrderExprList()
     Gets the order by expression.
public  EjbEntityBeangetPersistentBean()
    
public  StringgetQuery()
    
public  booleangetQueryLoadsBean()
    
public  StringgetReturnEJB()
     Returns the return type of the select method.
public  ClassgetReturnType()
     Returns the return type of the select method.
public  ExprgetSelectExpr()
    
public static  ArrayList<FunctionSignature>getStandardFunctions()
    
 IdExprgetThisExpr()
     Gets the this expression.
public  intgetUnique()
    
 ExprgetWhereExpr()
     Gets the where expression.
public  booleanisDistinct()
    
static  booleanmethodEquals(ApiMethod a, ApiMethod b)
    
public static  voidparseOrderBy(EjbEntityBean bean, String orderBy, ArrayList<String> orderList, ArrayList<Boolean> orderAscendingList)
    
public  voidparseOrderBy(String orderBy, ArrayList<String> orderList, ArrayList<Boolean> orderAscendingList)
     Parses the select method's query.
public  EjbQueryparseQuery(String query)
     Parses the select method's query.
public  voidsetBooleanFalse(String literal)
     Sets the boolean false.
public  voidsetBooleanTrue(String literal)
     Sets the boolean true.
public  voidsetFunctions(ArrayList<FunctionSignature> functions)
     Sets the function map.
public  voidsetLocation(String location)
     Sets the location.
public  voidsetQueryLoadsBean(boolean loadBean)
    
 voidsetReturnType(Class returnType)
    
public  StringtoString()
     Returns a debuggable description of the select.

Field Detail
AND
final static int AND(Code)



ARG
final static int ARG(Code)



AS
final static int AS(Code)



ASC
final static int ASC(Code)



BETWEEN
final static int BETWEEN(Code)



BY
final static int BY(Code)



DESC
final static int DESC(Code)



DISTINCT
final static int DISTINCT(Code)



DOUBLE
final static int DOUBLE(Code)



EMPTY
final static int EMPTY(Code)



EQ
final static int EQ(Code)



ESCAPE
final static int ESCAPE(Code)



EXTERNAL_DOT
final static int EXTERNAL_DOT(Code)



FALSE
final static int FALSE(Code)



FROM
final static int FROM(Code)



GE
final static int GE(Code)



GT
final static int GT(Code)



IDENTIFIER
final static int IDENTIFIER(Code)



IN
final static int IN(Code)



INTEGER
final static int INTEGER(Code)



IS
final static int IS(Code)



L
final static L10N L(Code)



LE
final static int LE(Code)



LIKE
final static int LIKE(Code)



LIMIT
final static int LIMIT(Code)



LONG
final static int LONG(Code)



LT
final static int LT(Code)



MEMBER
final static int MEMBER(Code)



NE
final static int NE(Code)



NOT
final static int NOT(Code)



NULL
final static int NULL(Code)



OF
final static int OF(Code)



OFFSET
final static int OFFSET(Code)



OR
final static int OR(Code)



ORDER
final static int ORDER(Code)



SELECT
final static int SELECT(Code)



STRING
final static int STRING(Code)



THIS
final static int THIS(Code)



TRUE
final static int TRUE(Code)



UNKNOWN
final static int UNKNOWN(Code)



WHERE
final static int WHERE(Code)



log
final static Logger log(Code)




Constructor Detail
QLParser
public QLParser(EjbEntityBean bean, String methodName, ApiMethod method, Class returnType) throws ConfigException(Code)
Creates a new select method.
Parameters:
  bean - the owning persistent bean
Parameters:
  methodName - the method name to implement
Parameters:
  method - the method signature




Method Detail
addArg
public void addArg(Expr expr)(Code)
Adds a select method argument



addFromItem
void addFromItem(String id, String table)(Code)



addIdentifier
void addIdentifier(String name, PathExpr expr) throws ConfigException(Code)
Adds a new identifier
Parameters:
  name - the name of the identifier the IdExpr corresponding to the identifier



equals
public boolean equals(Object b)(Code)



error
public ConfigException error(String msg)(Code)
Creates an error.



getArgList
ArrayList<Expr> getArgList()(Code)
Gets the select method arguments in SQL order.



getAscendingList
ArrayList<Boolean> getAscendingList()(Code)
Returns true if the order is ascending.



getBeanByName
public EjbEntityBean getBeanByName(String ejbName)(Code)
Gets a persistent bean by its type.



getBeanByType
public EjbEntityBean getBeanByType(Class type)(Code)
Gets a persistent bean by its type.



getFromList
ArrayList<FromItem> getFromList()(Code)
Gets the from table



getFunctions
public ArrayList<FunctionSignature> getFunctions()(Code)
Returns the function map.



getIdentifier
PathExpr getIdentifier(String name) throws ConfigException(Code)
Adds a new identifier
Parameters:
  name - the name of the identifier the IdExpr corresponding to the identifier



getLimitMax
Expr getLimitMax()(Code)
Returns any limit max expression



getLimitOffset
Expr getLimitOffset()(Code)
Returns any limit offset expression



getName
public String getName()(Code)
Returns the name of the select method.



getOrderExprList
ArrayList<Expr> getOrderExprList()(Code)
Gets the order by expression.



getPersistentBean
public EjbEntityBean getPersistentBean()(Code)
Returns the owning bean



getQuery
public String getQuery()(Code)
Returns the EJB-QL string



getQueryLoadsBean
public boolean getQueryLoadsBean()(Code)



getReturnEJB
public String getReturnEJB()(Code)
Returns the return type of the select method.



getReturnType
public Class getReturnType()(Code)
Returns the return type of the select method.



getSelectExpr
public Expr getSelectExpr()(Code)
Gets the select expression



getStandardFunctions
public static ArrayList<FunctionSignature> getStandardFunctions()(Code)



getThisExpr
IdExpr getThisExpr()(Code)
Gets the this expression.



getUnique
public int getUnique()(Code)



getWhereExpr
Expr getWhereExpr()(Code)
Gets the where expression.



isDistinct
public boolean isDistinct()(Code)



methodEquals
static boolean methodEquals(ApiMethod a, ApiMethod b)(Code)



parseOrderBy
public static void parseOrderBy(EjbEntityBean bean, String orderBy, ArrayList<String> orderList, ArrayList<Boolean> orderAscendingList) throws ConfigException(Code)



parseOrderBy
public void parseOrderBy(String orderBy, ArrayList<String> orderList, ArrayList<Boolean> orderAscendingList) throws ConfigException(Code)
Parses the select method's query.
Parameters:
  query - the source query string.



parseQuery
public EjbQuery parseQuery(String query) throws ConfigException(Code)
Parses the select method's query.
Parameters:
  query - the source query string.



setBooleanFalse
public void setBooleanFalse(String literal)(Code)
Sets the boolean false.



setBooleanTrue
public void setBooleanTrue(String literal)(Code)
Sets the boolean true.



setFunctions
public void setFunctions(ArrayList<FunctionSignature> functions)(Code)
Sets the function map.



setLocation
public void setLocation(String location)(Code)
Sets the location.



setQueryLoadsBean
public void setQueryLoadsBean(boolean loadBean)(Code)



setReturnType
void setReturnType(Class returnType)(Code)
Sets the return type of the select method



toString
public String toString()(Code)
Returns a debuggable description of the select.



Fields inherited from com.caucho.ejb.ql.Query
final static int AND(Code)(Java Doc)
final static int ARG(Code)(Java Doc)
final static int AS(Code)(Java Doc)
final static int ASC(Code)(Java Doc)
final static int BETWEEN(Code)(Java Doc)
final static int BY(Code)(Java Doc)
final static int DESC(Code)(Java Doc)
final static int DISTINCT(Code)(Java Doc)
final static int DOUBLE(Code)(Java Doc)
final static int EMPTY(Code)(Java Doc)
final static int EQ(Code)(Java Doc)
final static int ESCAPE(Code)(Java Doc)
final static int EXTERNAL_DOT(Code)(Java Doc)
final static int FALSE(Code)(Java Doc)
final static int FROM(Code)(Java Doc)
final static int GE(Code)(Java Doc)
final static int GT(Code)(Java Doc)
final static int IDENTIFIER(Code)(Java Doc)
final static int IN(Code)(Java Doc)
final static int INTEGER(Code)(Java Doc)
final static int IS(Code)(Java Doc)
final static int LE(Code)(Java Doc)
final static int LIKE(Code)(Java Doc)
final static int LIMIT(Code)(Java Doc)
final static int LONG(Code)(Java Doc)
final static int LT(Code)(Java Doc)
final static int MEMBER(Code)(Java Doc)
final static int NE(Code)(Java Doc)
final static int NOT(Code)(Java Doc)
final static int NULL(Code)(Java Doc)
final static int OF(Code)(Java Doc)
final static int OFFSET(Code)(Java Doc)
final static int OR(Code)(Java Doc)
final static int ORDER(Code)(Java Doc)
final static int SELECT(Code)(Java Doc)
final static int STRING(Code)(Java Doc)
final static int THIS(Code)(Java Doc)
final static int TRUE(Code)(Java Doc)
final static int UNKNOWN(Code)(Java Doc)
final static int WHERE(Code)(Java Doc)

Methods inherited from com.caucho.ejb.ql.Query
public ConfigException error(String msg)(Code)(Java Doc)
public int getArgIndex(int index)(Code)(Java Doc)
EjbConfig getConfig()(Code)(Java Doc)
ApiMethod getMethod()(Code)(Java Doc)
public void setArgSize(int index, int size)(Code)(Java Doc)
void setConfig(EjbConfig config)(Code)(Java Doc)
void setMethod(ApiMethod method)(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.