Java Doc for SQL.java in  » Database-DBMS » mckoi » com » mckoi » database » sql » 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 » mckoi » com.mckoi.database.sql 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.mckoi.database.sql.SQL

SQL
public class SQL implements SQLConstants(Code)

Inner Class :final static class JJCalls

Field Summary
 SimpleCharStreamjj_input_stream
    
public  booleanlookingAhead
    
public  SQLTokenManagertoken_source
    
public  Tokentokenjj_nt
    

Constructor Summary
public  SQL(java.io.InputStream stream)
    
public  SQL(java.io.Reader stream)
    
public  SQL(SQLTokenManager tm)
    

Method Summary
final public  StatementTreeAlter()
    
final public  StatementTreeAlterTable()
    
final public  StatementTreeAlterUser()
    
final public  voidAssignmentList(ArrayList assignment_list)
    
final public  ArrayListBasicColumnList(ArrayList list)
    
final public  StringBeforeOrAfter()
    
final public  voidBetweenPredicate(Expression exp, Stack stack)
    
final public  voidBooleanOperator(Expression exp, Stack stack)
    
final public  StatementTreeCall()
    
final public  voidColumnConstraint(ColumnDef column)
    
final public  voidColumnDataType(ColumnDef column)
    
final public  voidColumnDeclarationList(ArrayList column_list, ArrayList constraint_list)
    
final public  ColumnDefColumnDefinition()
    
final public  StringColumnName()
    
final public  VariableColumnNameVariable()
    
final public  voidColumnOrConstraintDefinition(ArrayList column_list, ArrayList constraint_list)
    
final public  StatementTreeCompact()
    
final public  StatementTreeCompleteTransaction()
    
final public  voidConditionsExpression(SearchExpression se)
    
final public  voidConstraintAttributes(ConstraintDef constraint)
    
final public  StringConstraintName()
    
final public  StatementTreeCreate()
    
final public  StatementTreeCreateFunction()
    
final public  StatementTreeCreateIndex()
    
final public  StatementTreeCreateSchema()
    
final public  StatementTreeCreateSequence()
    
final public  StatementTreeCreateTable()
    
final public  StatementTreeCreateTrigger()
    
final public  StatementTreeCreateUser()
    
final public  StatementTreeCreateView()
    
final public  StatementTreeDelete()
    
final public  StatementTreeDescribe()
    
final public  ExpressionDoExpression()
    
final public  ExpressionDoNonBooleanExpression()
    
final public  StatementTreeDrop()
    
final public  StatementTreeDropFunction()
    
final public  StatementTreeDropIndex()
    
final public  StatementTreeDropSchema()
    
final public  StatementTreeDropSequence()
    
final public  StatementTreeDropTable()
    
final public  StatementTreeDropTrigger()
    
final public  StatementTreeDropUser()
    
final public  StatementTreeDropView()
    
final public  Expression[]ExpressionList()
    
final public  ExpressionExpressionTest()
    
final public  voidFromClauseJoin(FromClause from_clause)
    
final public  FunctionDefFunction()
    
final public  TokenFunctionIdentifier()
    
final public  StringFunctionName()
    
final public  Expression[]FunctionParams()
    
final public  AlterTableActionGetAlterTableAction()
    
final public  intGetBinarySQLType()
    
final public  StringGetBooleanOperator()
    
final public  intGetBooleanSQLType()
    
final public  intGetCollateDecomposition()
    
final public  intGetCollateStrength()
    
final public  StringGetComposite()
    
final public  intGetDateSQLType()
    
final public  StringGetNumericOperator()
    
final public  intGetNumericSQLType()
    
final public  StringGetStringOperator()
    
final public  intGetStringSQLType()
    
final public  StringGetSubQueryBooleanOperator()
    
final public  TTypeGetTType()
    
final public  TableSelectExpressionGetTableSelectExpression()
    
final public  StatementTreeGrant()
    
final public  VariableGroupMaxColumn()
     NOTE: This is an extension, allows for us to specify a column to return the max value for each row representing a group.
final public  StringIndexName()
    
final public  StatementTreeInsert()
    
final public  voidInsertDataList(ArrayList data_list)
    
final public  ObjectInsertElement()
    
final public  ArrayListInsertExpressionList()
    
final public  FunctionDefJavaInstantiation()
    
final public  voidNumericOperator(Expression exp, Stack stack)
    
final public  voidOpPart(Expression exp, Stack stack)
    
final public  voidOperand(Expression exp, Stack stack)
    
final public  booleanOrderingSpec()
    
final public  intPositiveIntegerConstant()
    
final public  ArrayListPrivList(ArrayList list)
    
final public  voidPrivListItem(ArrayList list)
    
final public  StringPrivObject()
    
final public  StringProcArgumentName()
    
final public  voidProcParameterList(ArrayList decl_names, ArrayList decl_types)
    
final public  StringProcedureName()
    
public  voidReInit(java.io.InputStream stream)
    
public  voidReInit(java.io.Reader stream)
    
public  voidReInit(SQLTokenManager tm)
    
final public  StringReferentialTrigger()
    
final public  StatementTreeRevoke()
    
final public  TokenSQLIdentifier()
    
final public  StringSchemaName()
    
final public  StatementTreeSelect()
    
final public  SelectColumnSelectColumn()
    
final public  voidSelectColumnList(ArrayList list)
    
final public  voidSelectGroupByList(ArrayList list)
    
final public  voidSelectOrderByList(ArrayList list)
    
final public  voidSelectTableList(FromClause from_clause)
    
final public  StringSequenceName()
    
final public  StatementTreeSet()
    
final public  booleanSetQuantifier()
    
final public  StatementTreeShow()
    
final public  StatementTreeShutDown()
    
final public  StatementTreeStatement()
    
final public  voidStringOperator(Expression exp, Stack stack)
    
final public  voidSubQueryExpression(Expression exp, Stack stack)
    
final public  voidSubQueryOperator(Expression exp, Stack stack)
    
final public  StringTableAliasName()
    
final public  ConstraintDefTableConstraintDefinition()
    
final public  voidTableDeclaration(FromClause from_clause)
    
final public  StringTableName()
    
final public  voidTest()
    
final public  StringTriggerName()
    
final public  StringTriggerType()
    
final public  voidTriggerTypes(ArrayList list)
    
final public  StatementTreeUpdate()
    
final public  voidUserManagerCommand(StatementTree cmd)
    
final public  StringUserName()
    
final public  ArrayListUserNameList(ArrayList list)
    
public  voidaddOperatorToExpression(Expression exp, Operator op)
     Helper for expression parsing.
public  StringcaseCheck(String identif)
     If the parser has been defined as case insensitive then this returns the uppercase version of the given string.
public  ParameterSubstitutioncreateSubstitution(String image)
     Creates and returns a parameter substitution.
final public  voiddisable_tracing()
    
final public  voidenable_tracing()
    
public  voidexpEnd(Expression exp, Stack stack)
     Helper for expression parsing. Called when an entire expression has been read in.
public  voidexpEndParen(Expression exp, Stack stack)
     Helper for expression parsing.
public  voidexpOperator(Expression exp, Stack stack, Operator op)
     Helper for expression parsing. Called when an operator has been read in.
final public  voidexpression(Expression exp, Stack stack)
     Parse an expression.
public  voidflushOperatorStack(Expression exp, Stack stack, int precedence)
     Flush the operator stack until the stack is either empty or the top element is either a "(" or of a precedence lower than the given precedence.
final public  ParseExceptiongenerateParseException()
    
final public  TokengetNextToken()
    
final public  TokengetToken(int index)
    
public static  voidmain(String args)
    
final public  voidnonBooleanExpression(Expression exp, Stack stack)
     Parses a non-boolean expression.
final public  ExpressionparseExpression()
    
public  voidreset()
     Resets the parameter id.

Field Detail
jj_input_stream
SimpleCharStream jj_input_stream(Code)



lookingAhead
public boolean lookingAhead(Code)



token_source
public SQLTokenManager token_source(Code)



tokenjj_nt
public Token tokenjj_nt(Code)




Constructor Detail
SQL
public SQL(java.io.InputStream stream)(Code)



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



SQL
public SQL(SQLTokenManager tm)(Code)




Method Detail
Alter
final public StatementTree Alter() throws ParseException(Code)



AlterTable
final public StatementTree AlterTable() throws ParseException(Code)



AlterUser
final public StatementTree AlterUser() throws ParseException(Code)



AssignmentList
final public void AssignmentList(ArrayList assignment_list) throws ParseException(Code)



BasicColumnList
final public ArrayList BasicColumnList(ArrayList list) throws ParseException(Code)



BeforeOrAfter
final public String BeforeOrAfter() throws ParseException(Code)



BetweenPredicate
final public void BetweenPredicate(Expression exp, Stack stack) throws ParseException(Code)



BooleanOperator
final public void BooleanOperator(Expression exp, Stack stack) throws ParseException(Code)



Call
final public StatementTree Call() throws ParseException(Code)



ColumnConstraint
final public void ColumnConstraint(ColumnDef column) throws ParseException(Code)



ColumnDataType
final public void ColumnDataType(ColumnDef column) throws ParseException(Code)



ColumnDeclarationList
final public void ColumnDeclarationList(ArrayList column_list, ArrayList constraint_list) throws ParseException(Code)



ColumnDefinition
final public ColumnDef ColumnDefinition() throws ParseException(Code)



ColumnName
final public String ColumnName() throws ParseException(Code)



ColumnNameVariable
final public Variable ColumnNameVariable() throws ParseException(Code)



ColumnOrConstraintDefinition
final public void ColumnOrConstraintDefinition(ArrayList column_list, ArrayList constraint_list) throws ParseException(Code)



Compact
final public StatementTree Compact() throws ParseException(Code)



CompleteTransaction
final public StatementTree CompleteTransaction() throws ParseException(Code)



ConditionsExpression
final public void ConditionsExpression(SearchExpression se) throws ParseException(Code)



ConstraintAttributes
final public void ConstraintAttributes(ConstraintDef constraint) throws ParseException(Code)



ConstraintName
final public String ConstraintName() throws ParseException(Code)



Create
final public StatementTree Create() throws ParseException(Code)



CreateFunction
final public StatementTree CreateFunction() throws ParseException(Code)



CreateIndex
final public StatementTree CreateIndex() throws ParseException(Code)



CreateSchema
final public StatementTree CreateSchema() throws ParseException(Code)



CreateSequence
final public StatementTree CreateSequence() throws ParseException(Code)



CreateTable
final public StatementTree CreateTable() throws ParseException(Code)



CreateTrigger
final public StatementTree CreateTrigger() throws ParseException(Code)



CreateUser
final public StatementTree CreateUser() throws ParseException(Code)



CreateView
final public StatementTree CreateView() throws ParseException(Code)



Delete
final public StatementTree Delete() throws ParseException(Code)



Describe
final public StatementTree Describe() throws ParseException(Code)



DoExpression
final public Expression DoExpression() throws ParseException(Code)



DoNonBooleanExpression
final public Expression DoNonBooleanExpression() throws ParseException(Code)



Drop
final public StatementTree Drop() throws ParseException(Code)



DropFunction
final public StatementTree DropFunction() throws ParseException(Code)



DropIndex
final public StatementTree DropIndex() throws ParseException(Code)



DropSchema
final public StatementTree DropSchema() throws ParseException(Code)



DropSequence
final public StatementTree DropSequence() throws ParseException(Code)



DropTable
final public StatementTree DropTable() throws ParseException(Code)



DropTrigger
final public StatementTree DropTrigger() throws ParseException(Code)



DropUser
final public StatementTree DropUser() throws ParseException(Code)



DropView
final public StatementTree DropView() throws ParseException(Code)



ExpressionList
final public Expression[] ExpressionList() throws ParseException(Code)



ExpressionTest
final public Expression ExpressionTest() throws ParseException(Code)



FromClauseJoin
final public void FromClauseJoin(FromClause from_clause) throws ParseException(Code)



Function
final public FunctionDef Function() throws ParseException(Code)



FunctionIdentifier
final public Token FunctionIdentifier() throws ParseException(Code)



FunctionName
final public String FunctionName() throws ParseException(Code)



FunctionParams
final public Expression[] FunctionParams() throws ParseException(Code)



GetAlterTableAction
final public AlterTableAction GetAlterTableAction() throws ParseException(Code)



GetBinarySQLType
final public int GetBinarySQLType() throws ParseException(Code)



GetBooleanOperator
final public String GetBooleanOperator() throws ParseException(Code)



GetBooleanSQLType
final public int GetBooleanSQLType() throws ParseException(Code)



GetCollateDecomposition
final public int GetCollateDecomposition() throws ParseException(Code)



GetCollateStrength
final public int GetCollateStrength() throws ParseException(Code)



GetComposite
final public String GetComposite() throws ParseException(Code)



GetDateSQLType
final public int GetDateSQLType() throws ParseException(Code)



GetNumericOperator
final public String GetNumericOperator() throws ParseException(Code)



GetNumericSQLType
final public int GetNumericSQLType() throws ParseException(Code)



GetStringOperator
final public String GetStringOperator() throws ParseException(Code)



GetStringSQLType
final public int GetStringSQLType() throws ParseException(Code)



GetSubQueryBooleanOperator
final public String GetSubQueryBooleanOperator() throws ParseException(Code)



GetTType
final public TType GetTType() throws ParseException(Code)



GetTableSelectExpression
final public TableSelectExpression GetTableSelectExpression() throws ParseException(Code)



Grant
final public StatementTree Grant() throws ParseException(Code)



GroupMaxColumn
final public Variable GroupMaxColumn() throws ParseException(Code)
NOTE: This is an extension, allows for us to specify a column to return the max value for each row representing a group.



IndexName
final public String IndexName() throws ParseException(Code)



Insert
final public StatementTree Insert() throws ParseException(Code)



InsertDataList
final public void InsertDataList(ArrayList data_list) throws ParseException(Code)



InsertElement
final public Object InsertElement() throws ParseException(Code)



InsertExpressionList
final public ArrayList InsertExpressionList() throws ParseException(Code)



JavaInstantiation
final public FunctionDef JavaInstantiation() throws ParseException(Code)



NumericOperator
final public void NumericOperator(Expression exp, Stack stack) throws ParseException(Code)



OpPart
final public void OpPart(Expression exp, Stack stack) throws ParseException(Code)



Operand
final public void Operand(Expression exp, Stack stack) throws ParseException(Code)



OrderingSpec
final public boolean OrderingSpec() throws ParseException(Code)



PositiveIntegerConstant
final public int PositiveIntegerConstant() throws ParseException(Code)



PrivList
final public ArrayList PrivList(ArrayList list) throws ParseException(Code)



PrivListItem
final public void PrivListItem(ArrayList list) throws ParseException(Code)



PrivObject
final public String PrivObject() throws ParseException(Code)



ProcArgumentName
final public String ProcArgumentName() throws ParseException(Code)



ProcParameterList
final public void ProcParameterList(ArrayList decl_names, ArrayList decl_types) throws ParseException(Code)



ProcedureName
final public String ProcedureName() throws ParseException(Code)



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



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



ReInit
public void ReInit(SQLTokenManager tm)(Code)



ReferentialTrigger
final public String ReferentialTrigger() throws ParseException(Code)



Revoke
final public StatementTree Revoke() throws ParseException(Code)



SQLIdentifier
final public Token SQLIdentifier() throws ParseException(Code)



SchemaName
final public String SchemaName() throws ParseException(Code)



Select
final public StatementTree Select() throws ParseException(Code)



SelectColumn
final public SelectColumn SelectColumn() throws ParseException(Code)



SelectColumnList
final public void SelectColumnList(ArrayList list) throws ParseException(Code)



SelectGroupByList
final public void SelectGroupByList(ArrayList list) throws ParseException(Code)



SelectOrderByList
final public void SelectOrderByList(ArrayList list) throws ParseException(Code)



SelectTableList
final public void SelectTableList(FromClause from_clause) throws ParseException(Code)



SequenceName
final public String SequenceName() throws ParseException(Code)



Set
final public StatementTree Set() throws ParseException(Code)



SetQuantifier
final public boolean SetQuantifier() throws ParseException(Code)



Show
final public StatementTree Show() throws ParseException(Code)



ShutDown
final public StatementTree ShutDown() throws ParseException(Code)



Statement
final public StatementTree Statement() throws ParseException(Code)



StringOperator
final public void StringOperator(Expression exp, Stack stack) throws ParseException(Code)



SubQueryExpression
final public void SubQueryExpression(Expression exp, Stack stack) throws ParseException(Code)



SubQueryOperator
final public void SubQueryOperator(Expression exp, Stack stack) throws ParseException(Code)



TableAliasName
final public String TableAliasName() throws ParseException(Code)



TableConstraintDefinition
final public ConstraintDef TableConstraintDefinition() throws ParseException(Code)



TableDeclaration
final public void TableDeclaration(FromClause from_clause) throws ParseException(Code)



TableName
final public String TableName() throws ParseException(Code)



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



TriggerName
final public String TriggerName() throws ParseException(Code)



TriggerType
final public String TriggerType() throws ParseException(Code)



TriggerTypes
final public void TriggerTypes(ArrayList list) throws ParseException(Code)



Update
final public StatementTree Update() throws ParseException(Code)



UserManagerCommand
final public void UserManagerCommand(StatementTree cmd) throws ParseException(Code)



UserName
final public String UserName() throws ParseException(Code)



UserNameList
final public ArrayList UserNameList(ArrayList list) throws ParseException(Code)



addOperatorToExpression
public void addOperatorToExpression(Expression exp, Operator op)(Code)
Helper for expression parsing. Adds an operator to the given expression.



caseCheck
public String caseCheck(String identif)(Code)
If the parser has been defined as case insensitive then this returns the uppercase version of the given string. NOTE: This actually doesn't do anything because the case is now resolved outside the parser.



createSubstitution
public ParameterSubstitution createSubstitution(String image)(Code)
Creates and returns a parameter substitution. This is called when the parser comes across a '?' style object. This object is used to mark an expression with a place mark that can be substituted for a value later.



disable_tracing
final public void disable_tracing()(Code)



enable_tracing
final public void enable_tracing()(Code)



expEnd
public void expEnd(Expression exp, Stack stack)(Code)
Helper for expression parsing. Called when an entire expression has been read in. We need to empty the stack.



expEndParen
public void expEndParen(Expression exp, Stack stack)(Code)
Helper for expression parsing. Called when an end parenthese has been found.



expOperator
public void expOperator(Expression exp, Stack stack, Operator op)(Code)
Helper for expression parsing. Called when an operator has been read in. This needs to check precedence and add the operator to the expression as appropriate.



expression
final public void expression(Expression exp, Stack stack) throws ParseException(Code)
Parse an expression.



flushOperatorStack
public void flushOperatorStack(Expression exp, Stack stack, int precedence)(Code)
Flush the operator stack until the stack is either empty or the top element is either a "(" or of a precedence lower than the given precedence.



generateParseException
final public ParseException generateParseException()(Code)



getNextToken
final public Token getNextToken()(Code)



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



main
public static void main(String args) throws ParseException(Code)



nonBooleanExpression
final public void nonBooleanExpression(Expression exp, Stack stack) throws ParseException(Code)
Parses a non-boolean expression.



parseExpression
final public Expression parseExpression() throws ParseException(Code)



reset
public void reset()(Code)
Resets the parameter id. This MUST be called before a parser is used to parse a statement.



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.