Java Doc for Parser.java in  » Database-DBMS » hsql » org » hsqldb » 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 DBMS » hsql » org.hsqldb 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.hsqldb.Parser

Parser
class Parser (Code)
Responsible for parsing non-DDL statements. Extensively rewritten and extended in successive versions of HSQLDB.
author:
   Thomas Mueller (Hypersonic SQL Group)
version:
   1.8.0
since:
   Hypersonic SQL


Field Summary
 HsqlArrayListparameters
    
static  HashMapsimpleFunctions
    

Constructor Summary
 Parser(Session session, Database db, Tokenizer t)
     Constructs a new Parser object with the given context.

Method Summary
 intaddFilterColumns(TableFilter filter, HsqlArrayList columnList, int position)
    
 voidcheckTableWriteAccess(Table table, int userRight)
     Tests whether the parsing session has the given write access on the given Table object.
 voidclearParameters()
    
 CompiledStatementcompileCallStatement()
     Retrieves a CALL-type CompiledStatement from this parse context.
 CompiledStatementcompileDeleteStatement()
     Retrieves a DELETE-type CompiledStatement from this parse context.
 CompiledStatementcompileInsertStatement()
     Retrieves an INSERT_XXX-type CompiledStatement from this parse context.
 CompiledStatementcompileSelectStatement(int brackets)
     Retrieves a SELECT-type CompiledStatement from this parse context.
 CompiledStatementcompileUpdateStatement()
     Retrieves an UPDATE-type CompiledStatement from this parse context.
static  HsqlArrayListgetColumnNames(Database db, Table table, Tokenizer t, boolean full)
     Parses a comma-separated, right-bracket terminated list of column names.
 Expression[]getParameters()
    
 SubQuery[]getSortedSubqueries()
    
 SubQuerygetViewSubquery(View v)
    
 booleanisCompilingView()
    
 intparseCloseBrackets(int limit)
    
 HashMappedListparseColumnList()
    
 ExpressionparseExpression()
    
 intparseOpenBrackets()
    
 intparseOpenBracketsSelect()
    
 SelectparseSelect(int brackets, boolean canHaveOrder, boolean canHaveLimit, boolean limitWithOrder, boolean isMain)
     Constructs and returns a Select object.
 SubQueryparseSubquery(int brackets, HsqlName[] colNames, boolean resolveAll, int predicateType)
     The SubQuery objects are added to the end of subquery list.
 intparseUnion(String token)
     Parses the given token and any further tokens in tokenizer to return any UNION or other set operation ID.
static  HashMappedListprocessColumnList(Tokenizer tokenizer, boolean acceptAscDesc)
    
 ExpressionreadCaseExpression()
     reads a CASE ..
 ExpressionreadDefaultClause(int dataType)
     Reads a DEFAULT clause expression.
 voidreset(String sql)
     Resets this parse context with the given SQL character sequence.
 voidsetAsView(View view)
    
 voidsetCompilingView()
    

Field Detail
parameters
HsqlArrayList parameters(Code)



simpleFunctions
static HashMap simpleFunctions(Code)




Constructor Detail
Parser
Parser(Session session, Database db, Tokenizer t)(Code)
Constructs a new Parser object with the given context.
Parameters:
  db - the Database instance against which to resolve nameddatabase object references
Parameters:
  t - the token source from which to parse commands
Parameters:
  session - the connected context




Method Detail
addFilterColumns
int addFilterColumns(TableFilter filter, HsqlArrayList columnList, int position) throws HsqlException(Code)
Add all columns of a table filter to list of columns



checkTableWriteAccess
void checkTableWriteAccess(Table table, int userRight) throws HsqlException(Code)
Tests whether the parsing session has the given write access on the given Table object.


Parameters:
  table - the Table object to check
Parameters:
  userRight - the numeric code of the right to check
throws:
  HsqlException - if the session user does not have the rightor the given Table object is simply not writable (e.g. is anon-updateable View)




clearParameters
void clearParameters()(Code)



compileCallStatement
CompiledStatement compileCallStatement() throws HsqlException(Code)
Retrieves a CALL-type CompiledStatement from this parse context.



compileDeleteStatement
CompiledStatement compileDeleteStatement() throws HsqlException(Code)
Retrieves a DELETE-type CompiledStatement from this parse context.



compileInsertStatement
CompiledStatement compileInsertStatement() throws HsqlException(Code)
Retrieves an INSERT_XXX-type CompiledStatement from this parse context.



compileSelectStatement
CompiledStatement compileSelectStatement(int brackets) throws HsqlException(Code)
Retrieves a SELECT-type CompiledStatement from this parse context.



compileUpdateStatement
CompiledStatement compileUpdateStatement() throws HsqlException(Code)
Retrieves an UPDATE-type CompiledStatement from this parse context.



getColumnNames
static HsqlArrayList getColumnNames(Database db, Table table, Tokenizer t, boolean full) throws HsqlException(Code)
Parses a comma-separated, right-bracket terminated list of column names.


Parameters:
  db - the Database instance whose name manager is to provide theresulting HsqlName objects, when the full argument is true
Parameters:
  t - the tokenizer representing the character sequence to be parsed
Parameters:
  full - if true, generate a list of HsqlNames, else a list ofString objects




getParameters
Expression[] getParameters()(Code)
Destructive get method



getSortedSubqueries
SubQuery[] getSortedSubqueries()(Code)
Return the list of subqueries as an array sorted according to the order of materialization, then clear the internal subquery list



getViewSubquery
SubQuery getViewSubquery(View v)(Code)



isCompilingView
boolean isCompilingView()(Code)
determines whether the parser is used for compiling a view



parseCloseBrackets
int parseCloseBrackets(int limit) throws HsqlException(Code)



parseColumnList
HashMappedList parseColumnList() throws HsqlException(Code)



parseExpression
Expression parseExpression() throws HsqlException(Code)
Method declaration the Expression resulting from the parse
throws:
  HsqlException -



parseOpenBrackets
int parseOpenBrackets() throws HsqlException(Code)



parseOpenBracketsSelect
int parseOpenBracketsSelect() throws HsqlException(Code)



parseSelect
Select parseSelect(int brackets, boolean canHaveOrder, boolean canHaveLimit, boolean limitWithOrder, boolean isMain) throws HsqlException(Code)
Constructs and returns a Select object.
Parameters:
  canHaveOrder - whether the SELECT being parsed can have an ORDER BY
Parameters:
  canHaveLimit - whether LIMIT without ORDER BY is allowed
Parameters:
  limitWithOrder - whether LIMIT is allowed only with ORDER BY
Parameters:
  isMain - whether the SELECT being parsed is the firstselect statement in the set a new Select object
throws:
  HsqlException - if a parsing error occurs



parseSubquery
SubQuery parseSubquery(int brackets, HsqlName[] colNames, boolean resolveAll, int predicateType) throws HsqlException(Code)
The SubQuery objects are added to the end of subquery list. When parsing the SELECT for a view, optional HsqlName[] array is used for view column aliases.



parseUnion
int parseUnion(String token) throws HsqlException(Code)
Parses the given token and any further tokens in tokenizer to return any UNION or other set operation ID.



processColumnList
static HashMappedList processColumnList(Tokenizer tokenizer, boolean acceptAscDesc) throws HsqlException(Code)



readCaseExpression
Expression readCaseExpression() throws HsqlException(Code)
reads a CASE .. WHEN expression



readDefaultClause
Expression readDefaultClause(int dataType) throws HsqlException(Code)
Reads a DEFAULT clause expression.



reset
void reset(String sql)(Code)
Resets this parse context with the given SQL character sequence. Internal structures are reset as though a new parser were created with the given sql and the originally specified database and session
Parameters:
  a - new SQL character sequence to replace the current one



setAsView
void setAsView(View view)(Code)
Sets the subqueries as belonging to the View being constructed



setCompilingView
void setCompilingView()(Code)
sets a flag indicating the parser is used for compiling a view



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.