Package com.mckoi.database.sql
Class SQL
- java.lang.Object
-
- com.mckoi.database.sql.SQL
-
- All Implemented Interfaces:
SQLConstants
public class SQL extends java.lang.Object implements SQLConstants
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classSQL.JJCalls
-
Field Summary
Fields Modifier and Type Field Description private booleancase_insensitive_identifiersSet to true if the SQL identifiers are converted to upper case.private SQL.JJCalls[]jj_2_rtnsprivate intjj_endposprivate java.util.Vectorjj_expentriesprivate int[]jj_expentryprivate intjj_gcprivate intjj_gen(package private) SimpleCharStreamjj_input_streamprivate intjj_kindprivate intjj_laprivate int[]jj_la1private int[]jj_la1_0private int[]jj_la1_1private int[]jj_la1_2private int[]jj_la1_3private int[]jj_la1_4private int[]jj_la1_5private int[]jj_la1_6private Tokenjj_lastposprivate int[]jj_lasttokensTokenjj_ntprivate intjj_ntkprivate booleanjj_rescanprivate Tokenjj_scanposprivate booleanjj_semLAbooleanlookingAheadprivate intparameter_idThe parameter id.TokentokenSQLTokenManagertoken_source-
Fields inherited from interface com.mckoi.database.sql.SQLConstants
ACCOUNT, ACTION, ADD, AFTER, ALL, ALTER, AND, ANY, AS, ASC, ASSIGNMENT, AUTOCOMMIT, BEFORE, BETWEEN, BIGINT, BINARY, BIT, BLOB, BOOLEAN, BOOLEAN_LITERAL, BOTH, CACHE, CALL, CALLBACK, CANONICAL_DECOMPOSITION, CASCADE, CAST, CHAR, CHARACTER, CHECK, CLOB, COLLATE, COMMIT, COMPACT, CONCAT, CONSTRAINT, COUNT, CREATE, CROSS, CTALIAS, CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP, CYCLE, DATE, DECIMAL, DEFAULT, DEFERRABLE, DEFERRED, DELETE, DESC, DESCRIBE, DIGIT, DISTINCT, DIVIDE, DOT_DELIMINATED_REF, DOUBLE, DROP, EACH, EOF, EQUALS, EXCEPT, EXECUTE, EXISTS, EXPLAIN, FLOAT, FOR, FOREIGN, FROM, FULL_DECOMPOSITION, FUNCTION, GLOBVARIABLE, GR, GRANT, GREQ, GROUPBY, GROUPMAX, GROUPS, HAVING, IDENTICAL_STRENGTH, IDENTIFIER, IF, IGNORE, IMMEDIATE, IN, INCREMENT, INDEX, INDEX_BLIST, INDEX_NONE, INITIALLY, INNER, INSERT, INT, INTEGER, INTERSECT, INTO, IS, JAVA, JAVA_OBJECT, JAVA_OBJECT_ARRAY_REF, JOIN, KEY, LANGUAGE, LE, LEADING, LEEQ, LEFT, LETTER, LIKE, LIMIT, LOCK, LONG, LONGVARBINARY, LONGVARCHAR, MAXVALUE, MINVALUE, NAME, NATURAL, NEW, NO, NO_DECOMPOSITION, NOT, NOTEQ, NULL_LITERAL, NUMBER_LITERAL, NUMERIC, OLD, ON, OPTIMIZE, OPTION, OR, ORDERBY, OUTER, PARAMETER_REF, PASSWORD, PRIMARY, PRIMARY_STRENGTH, PRIVILEGES, PROCEDURE, PUBLIC, QUOTED_DELIMINATED_REF, QUOTED_VARIABLE, QUOTEDGLOBVARIABLE, READCOMMITTED, READUNCOMMITTED, REAL, REFERENCES, REGEX, REGEX_LITERAL, REPEATABLEREAD, RESTRICT, RETURNS, REVOKE, RIGHT, ROLLBACK, ROW, SCHEMA, SECONDARY_STRENGTH, SELECT, SEQUENCE, SERIALIZABLE, SET, SHOW, SHUTDOWN, SMALLINT, SOME, SQLADD, SQLCOLUMN, SQLDEFAULT, SQLRETURN, STAR, START, STRING, STRING_LITERAL, SUBTRACT, TABLE, TEMPORARY, TERTIARY_STRENGTH, TEXT, TIME, TIMESTAMP, TINYINT, TO, tokenImage, TRAILING, TRANSACTIONISOLATIONLEVEL, TRIGGER, TRIM, UNION, UNIQUE, UNLOCK, UPDATE, USAGE, USE, USER, USING, VALUES, VARBINARY, VARCHAR, VARYING, VIEW, WHERE, WITH
-
-
Constructor Summary
Constructors Constructor Description SQL(SQLTokenManager tm)SQL(java.io.InputStream stream)SQL(java.io.Reader stream)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddOperatorToExpression(Expression exp, Operator op)Helper for expression parsing.StatementTreeAlter()StatementTreeAlterTable()StatementTreeAlterUser()voidAssignmentList(java.util.ArrayList assignment_list)java.util.ArrayListBasicColumnList(java.util.ArrayList list)java.lang.StringBeforeOrAfter()voidBetweenPredicate(Expression exp, java.util.Stack stack)voidBooleanOperator(Expression exp, java.util.Stack stack)StatementTreeCall()java.lang.StringcaseCheck(java.lang.String identif)If the parser has been defined as case insensitive then this returns the uppercase version of the given string.voidColumnConstraint(ColumnDef column)voidColumnDataType(ColumnDef column)voidColumnDeclarationList(java.util.ArrayList column_list, java.util.ArrayList constraint_list)ColumnDefColumnDefinition()java.lang.StringColumnName()VariableColumnNameVariable()voidColumnOrConstraintDefinition(java.util.ArrayList column_list, java.util.ArrayList constraint_list)StatementTreeCompact()StatementTreeCompleteTransaction()voidConditionsExpression(SearchExpression se)voidConstraintAttributes(ConstraintDef constraint)java.lang.StringConstraintName()StatementTreeCreate()StatementTreeCreateFunction()StatementTreeCreateIndex()StatementTreeCreateSchema()StatementTreeCreateSequence()ParameterSubstitutioncreateSubstitution(java.lang.String image)Creates and returns a parameter substitution.StatementTreeCreateTable()StatementTreeCreateTrigger()StatementTreeCreateUser()StatementTreeCreateView()StatementTreeDelete()StatementTreeDescribe()voiddisable_tracing()ExpressionDoExpression()ExpressionDoNonBooleanExpression()StatementTreeDrop()StatementTreeDropFunction()StatementTreeDropIndex()StatementTreeDropSchema()StatementTreeDropSequence()StatementTreeDropTable()StatementTreeDropTrigger()StatementTreeDropUser()StatementTreeDropView()voidenable_tracing()voidexpEnd(Expression exp, java.util.Stack stack)Helper for expression parsing.voidexpEndParen(Expression exp, java.util.Stack stack)Helper for expression parsing.voidexpOperator(Expression exp, java.util.Stack stack, Operator op)Helper for expression parsing.voidexpression(Expression exp, java.util.Stack stack)Parse an expression.Expression[]ExpressionList()ExpressionExpressionTest()voidflushOperatorStack(Expression exp, java.util.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.voidFromClauseJoin(FromClause from_clause)FunctionDefFunction()TokenFunctionIdentifier()java.lang.StringFunctionName()Expression[]FunctionParams()ParseExceptiongenerateParseException()AlterTableActionGetAlterTableAction()intGetBinarySQLType()java.lang.StringGetBooleanOperator()intGetBooleanSQLType()intGetCollateDecomposition()intGetCollateStrength()java.lang.StringGetComposite()intGetDateSQLType()TokengetNextToken()java.lang.StringGetNumericOperator()intGetNumericSQLType()java.lang.StringGetStringOperator()intGetStringSQLType()java.lang.StringGetSubQueryBooleanOperator()TableSelectExpressionGetTableSelectExpression()TokengetToken(int index)TTypeGetTType()StatementTreeGrant()VariableGroupMaxColumn()NOTE: This is an extension, allows for us to specify a column to return the max value for each row representing a group.java.lang.StringIndexName()StatementTreeInsert()voidInsertDataList(java.util.ArrayList data_list)java.lang.ObjectInsertElement()java.util.ArrayListInsertExpressionList()FunctionDefJavaInstantiation()private booleanjj_2_1(int xla)private booleanjj_2_10(int xla)private booleanjj_2_11(int xla)private booleanjj_2_12(int xla)private booleanjj_2_13(int xla)private booleanjj_2_14(int xla)private booleanjj_2_15(int xla)private booleanjj_2_16(int xla)private booleanjj_2_17(int xla)private booleanjj_2_2(int xla)private booleanjj_2_3(int xla)private booleanjj_2_4(int xla)private booleanjj_2_5(int xla)private booleanjj_2_6(int xla)private booleanjj_2_7(int xla)private booleanjj_2_8(int xla)private booleanjj_2_9(int xla)private booleanjj_3_1()private booleanjj_3_10()private booleanjj_3_11()private booleanjj_3_12()private booleanjj_3_13()private booleanjj_3_14()private booleanjj_3_15()private booleanjj_3_16()private booleanjj_3_17()private booleanjj_3_2()private booleanjj_3_3()private booleanjj_3_4()private booleanjj_3_5()private booleanjj_3_6()private booleanjj_3_7()private booleanjj_3_8()private booleanjj_3_9()private booleanjj_3R_100()private booleanjj_3R_101()private booleanjj_3R_102()private booleanjj_3R_103()private booleanjj_3R_104()private booleanjj_3R_105()private booleanjj_3R_106()private booleanjj_3R_107()private booleanjj_3R_108()private booleanjj_3R_109()private booleanjj_3R_110()private booleanjj_3R_111()private booleanjj_3R_112()private booleanjj_3R_113()private booleanjj_3R_114()private booleanjj_3R_115()private booleanjj_3R_116()private booleanjj_3R_117()private booleanjj_3R_118()private booleanjj_3R_119()private booleanjj_3R_120()private booleanjj_3R_121()private booleanjj_3R_122()private booleanjj_3R_123()private booleanjj_3R_124()private booleanjj_3R_125()private booleanjj_3R_126()private booleanjj_3R_127()private booleanjj_3R_128()private booleanjj_3R_129()private booleanjj_3R_130()private booleanjj_3R_131()private booleanjj_3R_132()private booleanjj_3R_133()private booleanjj_3R_134()private booleanjj_3R_135()private booleanjj_3R_136()private booleanjj_3R_137()private booleanjj_3R_138()private booleanjj_3R_17()private booleanjj_3R_18()private booleanjj_3R_19()private booleanjj_3R_20()private booleanjj_3R_21()private booleanjj_3R_22()private booleanjj_3R_23()private booleanjj_3R_24()private booleanjj_3R_25()private booleanjj_3R_26()private booleanjj_3R_27()private booleanjj_3R_28()private booleanjj_3R_29()private booleanjj_3R_30()private booleanjj_3R_31()private booleanjj_3R_32()private booleanjj_3R_33()private booleanjj_3R_34()private booleanjj_3R_35()private booleanjj_3R_36()private booleanjj_3R_37()private booleanjj_3R_38()private booleanjj_3R_39()private booleanjj_3R_40()private booleanjj_3R_41()private booleanjj_3R_42()private booleanjj_3R_43()private booleanjj_3R_44()private booleanjj_3R_45()private booleanjj_3R_46()private booleanjj_3R_47()private booleanjj_3R_48()private booleanjj_3R_49()private booleanjj_3R_50()private booleanjj_3R_51()private booleanjj_3R_52()private booleanjj_3R_53()private booleanjj_3R_54()private booleanjj_3R_55()private booleanjj_3R_56()private booleanjj_3R_57()private booleanjj_3R_58()private booleanjj_3R_59()private booleanjj_3R_60()private booleanjj_3R_61()private booleanjj_3R_62()private booleanjj_3R_63()private booleanjj_3R_64()private booleanjj_3R_65()private booleanjj_3R_66()private booleanjj_3R_67()private booleanjj_3R_68()private booleanjj_3R_69()private booleanjj_3R_70()private booleanjj_3R_71()private booleanjj_3R_72()private booleanjj_3R_73()private booleanjj_3R_74()private booleanjj_3R_75()private booleanjj_3R_76()private booleanjj_3R_77()private booleanjj_3R_78()private booleanjj_3R_79()private booleanjj_3R_80()private booleanjj_3R_81()private booleanjj_3R_82()private booleanjj_3R_83()private booleanjj_3R_84()private booleanjj_3R_85()private booleanjj_3R_86()private booleanjj_3R_87()private booleanjj_3R_88()private booleanjj_3R_89()private booleanjj_3R_90()private booleanjj_3R_91()private booleanjj_3R_92()private booleanjj_3R_93()private booleanjj_3R_94()private booleanjj_3R_95()private booleanjj_3R_96()private booleanjj_3R_97()private booleanjj_3R_98()private booleanjj_3R_99()private voidjj_add_error_token(int kind, int pos)private Tokenjj_consume_token(int kind)private intjj_ntk()private voidjj_rescan_token()private voidjj_save(int index, int xla)private booleanjj_scan_token(int kind)static voidmain(java.lang.String[] args)voidnonBooleanExpression(Expression exp, java.util.Stack stack)Parses a non-boolean expression.voidNumericOperator(Expression exp, java.util.Stack stack)voidOperand(Expression exp, java.util.Stack stack)voidOpPart(Expression exp, java.util.Stack stack)booleanOrderingSpec()ExpressionparseExpression()intPositiveIntegerConstant()java.util.ArrayListPrivList(java.util.ArrayList list)voidPrivListItem(java.util.ArrayList list)java.lang.StringPrivObject()java.lang.StringProcArgumentName()java.lang.StringProcedureName()voidProcParameterList(java.util.ArrayList decl_names, java.util.ArrayList decl_types)java.lang.StringReferentialTrigger()voidReInit(SQLTokenManager tm)voidReInit(java.io.InputStream stream)voidReInit(java.io.Reader stream)voidreset()Resets the parameter id.StatementTreeRevoke()java.lang.StringSchemaName()StatementTreeSelect()SelectColumnSelectColumn()voidSelectColumnList(java.util.ArrayList list)voidSelectGroupByList(java.util.ArrayList list)voidSelectOrderByList(java.util.ArrayList list)voidSelectTableList(FromClause from_clause)java.lang.StringSequenceName()StatementTreeSet()booleanSetQuantifier()StatementTreeShow()StatementTreeShutDown()TokenSQLIdentifier()StatementTreeStatement()voidStringOperator(Expression exp, java.util.Stack stack)voidSubQueryExpression(Expression exp, java.util.Stack stack)voidSubQueryOperator(Expression exp, java.util.Stack stack)java.lang.StringTableAliasName()ConstraintDefTableConstraintDefinition()voidTableDeclaration(FromClause from_clause)java.lang.StringTableName()voidTest()java.lang.StringTriggerName()java.lang.StringTriggerType()voidTriggerTypes(java.util.ArrayList list)StatementTreeUpdate()voidUserManagerCommand(StatementTree cmd)java.lang.StringUserName()java.util.ArrayListUserNameList(java.util.ArrayList list)
-
-
-
Field Detail
-
case_insensitive_identifiers
private boolean case_insensitive_identifiers
Set to true if the SQL identifiers are converted to upper case. NOTE: Purely experimental feature!
-
parameter_id
private int parameter_id
The parameter id.
-
token_source
public SQLTokenManager token_source
-
jj_input_stream
SimpleCharStream jj_input_stream
-
token
public Token token
-
jj_nt
public Token jj_nt
-
jj_ntk
private int jj_ntk
-
jj_scanpos
private Token jj_scanpos
-
jj_lastpos
private Token jj_lastpos
-
jj_la
private int jj_la
-
lookingAhead
public boolean lookingAhead
-
jj_semLA
private boolean jj_semLA
-
jj_gen
private int jj_gen
-
jj_la1
private final int[] jj_la1
-
jj_la1_0
private final int[] jj_la1_0
-
jj_la1_1
private final int[] jj_la1_1
-
jj_la1_2
private final int[] jj_la1_2
-
jj_la1_3
private final int[] jj_la1_3
-
jj_la1_4
private final int[] jj_la1_4
-
jj_la1_5
private final int[] jj_la1_5
-
jj_la1_6
private final int[] jj_la1_6
-
jj_2_rtns
private final SQL.JJCalls[] jj_2_rtns
-
jj_rescan
private boolean jj_rescan
-
jj_gc
private int jj_gc
-
jj_expentries
private java.util.Vector jj_expentries
-
jj_expentry
private int[] jj_expentry
-
jj_kind
private int jj_kind
-
jj_lasttokens
private int[] jj_lasttokens
-
jj_endpos
private int jj_endpos
-
-
Constructor Detail
-
SQL
public SQL(java.io.InputStream stream)
-
SQL
public SQL(java.io.Reader stream)
-
SQL
public SQL(SQLTokenManager tm)
-
-
Method Detail
-
reset
public void reset()
Resets the parameter id. This MUST be called before a parser is used to parse a statement.
-
createSubstitution
public ParameterSubstitution createSubstitution(java.lang.String image)
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.
-
caseCheck
public java.lang.String caseCheck(java.lang.String identif)
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.
-
expEndParen
public void expEndParen(Expression exp, java.util.Stack stack)
Helper for expression parsing. Called when an end parenthese has been found.
-
expOperator
public void expOperator(Expression exp, java.util.Stack stack, Operator op)
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.
-
flushOperatorStack
public void flushOperatorStack(Expression exp, java.util.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.
-
expEnd
public void expEnd(Expression exp, java.util.Stack stack)
Helper for expression parsing. Called when an entire expression has been read in. We need to empty the stack.
-
addOperatorToExpression
public void addOperatorToExpression(Expression exp, Operator op)
Helper for expression parsing. Adds an operator to the given expression.
-
main
public static void main(java.lang.String[] args) throws ParseException- Throws:
ParseException
-
Test
public final void Test() throws ParseException- Throws:
ParseException
-
parseExpression
public final Expression parseExpression() throws ParseException
- Throws:
ParseException
-
Statement
public final StatementTree Statement() throws ParseException
- Throws:
ParseException
-
Create
public final StatementTree Create() throws ParseException
- Throws:
ParseException
-
Drop
public final StatementTree Drop() throws ParseException
- Throws:
ParseException
-
Select
public final StatementTree Select() throws ParseException
- Throws:
ParseException
-
Update
public final StatementTree Update() throws ParseException
- Throws:
ParseException
-
Alter
public final StatementTree Alter() throws ParseException
- Throws:
ParseException
-
AlterTable
public final StatementTree AlterTable() throws ParseException
- Throws:
ParseException
-
Compact
public final StatementTree Compact() throws ParseException
- Throws:
ParseException
-
CreateTable
public final StatementTree CreateTable() throws ParseException
- Throws:
ParseException
-
CreateTrigger
public final StatementTree CreateTrigger() throws ParseException
- Throws:
ParseException
-
DropTrigger
public final StatementTree DropTrigger() throws ParseException
- Throws:
ParseException
-
CreateFunction
public final StatementTree CreateFunction() throws ParseException
- Throws:
ParseException
-
DropFunction
public final StatementTree DropFunction() throws ParseException
- Throws:
ParseException
-
CreateSchema
public final StatementTree CreateSchema() throws ParseException
- Throws:
ParseException
-
DropSchema
public final StatementTree DropSchema() throws ParseException
- Throws:
ParseException
-
CreateView
public final StatementTree CreateView() throws ParseException
- Throws:
ParseException
-
DropView
public final StatementTree DropView() throws ParseException
- Throws:
ParseException
-
CreateIndex
public final StatementTree CreateIndex() throws ParseException
- Throws:
ParseException
-
DropTable
public final StatementTree DropTable() throws ParseException
- Throws:
ParseException
-
DropIndex
public final StatementTree DropIndex() throws ParseException
- Throws:
ParseException
-
Call
public final StatementTree Call() throws ParseException
- Throws:
ParseException
-
CreateSequence
public final StatementTree CreateSequence() throws ParseException
- Throws:
ParseException
-
DropSequence
public final StatementTree DropSequence() throws ParseException
- Throws:
ParseException
-
CreateUser
public final StatementTree CreateUser() throws ParseException
- Throws:
ParseException
-
AlterUser
public final StatementTree AlterUser() throws ParseException
- Throws:
ParseException
-
DropUser
public final StatementTree DropUser() throws ParseException
- Throws:
ParseException
-
UserManagerCommand
public final void UserManagerCommand(StatementTree cmd) throws ParseException
- Throws:
ParseException
-
Delete
public final StatementTree Delete() throws ParseException
- Throws:
ParseException
-
Insert
public final StatementTree Insert() throws ParseException
- Throws:
ParseException
-
Describe
public final StatementTree Describe() throws ParseException
- Throws:
ParseException
-
Show
public final StatementTree Show() throws ParseException
- Throws:
ParseException
-
Grant
public final StatementTree Grant() throws ParseException
- Throws:
ParseException
-
Revoke
public final StatementTree Revoke() throws ParseException
- Throws:
ParseException
-
CompleteTransaction
public final StatementTree CompleteTransaction() throws ParseException
- Throws:
ParseException
-
Set
public final StatementTree Set() throws ParseException
- Throws:
ParseException
-
ShutDown
public final StatementTree ShutDown() throws ParseException
- Throws:
ParseException
-
TriggerType
public final java.lang.String TriggerType() throws ParseException- Throws:
ParseException
-
BeforeOrAfter
public final java.lang.String BeforeOrAfter() throws ParseException- Throws:
ParseException
-
TriggerTypes
public final void TriggerTypes(java.util.ArrayList list) throws ParseException- Throws:
ParseException
-
PrivObject
public final java.lang.String PrivObject() throws ParseException- Throws:
ParseException
-
PrivList
public final java.util.ArrayList PrivList(java.util.ArrayList list) throws ParseException- Throws:
ParseException
-
PrivListItem
public final void PrivListItem(java.util.ArrayList list) throws ParseException- Throws:
ParseException
-
GetTableSelectExpression
public final TableSelectExpression GetTableSelectExpression() throws ParseException
- Throws:
ParseException
-
GetAlterTableAction
public final AlterTableAction GetAlterTableAction() throws ParseException
- Throws:
ParseException
-
InsertElement
public final java.lang.Object InsertElement() throws ParseException- Throws:
ParseException
-
InsertExpressionList
public final java.util.ArrayList InsertExpressionList() throws ParseException- Throws:
ParseException
-
InsertDataList
public final void InsertDataList(java.util.ArrayList data_list) throws ParseException- Throws:
ParseException
-
SetQuantifier
public final boolean SetQuantifier() throws ParseException- Throws:
ParseException
-
SelectColumnList
public final void SelectColumnList(java.util.ArrayList list) throws ParseException- Throws:
ParseException
-
SelectColumn
public final SelectColumn SelectColumn() throws ParseException
- Throws:
ParseException
-
SelectGroupByList
public final void SelectGroupByList(java.util.ArrayList list) throws ParseException- Throws:
ParseException
-
GroupMaxColumn
public final Variable GroupMaxColumn() throws ParseException
NOTE: This is an extension, allows for us to specify a column to return the max value for each row representing a group.- Throws:
ParseException
-
SelectOrderByList
public final void SelectOrderByList(java.util.ArrayList list) throws ParseException- Throws:
ParseException
-
OrderingSpec
public final boolean OrderingSpec() throws ParseException- Throws:
ParseException
-
TableDeclaration
public final void TableDeclaration(FromClause from_clause) throws ParseException
- Throws:
ParseException
-
SelectTableList
public final void SelectTableList(FromClause from_clause) throws ParseException
- Throws:
ParseException
-
FromClauseJoin
public final void FromClauseJoin(FromClause from_clause) throws ParseException
- Throws:
ParseException
-
ProcParameterList
public final void ProcParameterList(java.util.ArrayList decl_names, java.util.ArrayList decl_types) throws ParseException- Throws:
ParseException
-
AssignmentList
public final void AssignmentList(java.util.ArrayList assignment_list) throws ParseException- Throws:
ParseException
-
ColumnDeclarationList
public final void ColumnDeclarationList(java.util.ArrayList column_list, java.util.ArrayList constraint_list) throws ParseException- Throws:
ParseException
-
ColumnOrConstraintDefinition
public final void ColumnOrConstraintDefinition(java.util.ArrayList column_list, java.util.ArrayList constraint_list) throws ParseException- Throws:
ParseException
-
ColumnDefinition
public final ColumnDef ColumnDefinition() throws ParseException
- Throws:
ParseException
-
ColumnConstraint
public final void ColumnConstraint(ColumnDef column) throws ParseException
- Throws:
ParseException
-
GetCollateStrength
public final int GetCollateStrength() throws ParseException- Throws:
ParseException
-
GetCollateDecomposition
public final int GetCollateDecomposition() throws ParseException- Throws:
ParseException
-
GetStringSQLType
public final int GetStringSQLType() throws ParseException- Throws:
ParseException
-
GetNumericSQLType
public final int GetNumericSQLType() throws ParseException- Throws:
ParseException
-
GetBooleanSQLType
public final int GetBooleanSQLType() throws ParseException- Throws:
ParseException
-
GetDateSQLType
public final int GetDateSQLType() throws ParseException- Throws:
ParseException
-
GetBinarySQLType
public final int GetBinarySQLType() throws ParseException- Throws:
ParseException
-
GetTType
public final TType GetTType() throws ParseException
- Throws:
ParseException
-
ColumnDataType
public final void ColumnDataType(ColumnDef column) throws ParseException
- Throws:
ParseException
-
TableConstraintDefinition
public final ConstraintDef TableConstraintDefinition() throws ParseException
- Throws:
ParseException
-
ReferentialTrigger
public final java.lang.String ReferentialTrigger() throws ParseException- Throws:
ParseException
-
ConstraintAttributes
public final void ConstraintAttributes(ConstraintDef constraint) throws ParseException
- Throws:
ParseException
-
BasicColumnList
public final java.util.ArrayList BasicColumnList(java.util.ArrayList list) throws ParseException- Throws:
ParseException
-
UserNameList
public final java.util.ArrayList UserNameList(java.util.ArrayList list) throws ParseException- Throws:
ParseException
-
ConditionsExpression
public final void ConditionsExpression(SearchExpression se) throws ParseException
- Throws:
ParseException
-
ExpressionTest
public final Expression ExpressionTest() throws ParseException
- Throws:
ParseException
-
DoExpression
public final Expression DoExpression() throws ParseException
- Throws:
ParseException
-
DoNonBooleanExpression
public final Expression DoNonBooleanExpression() throws ParseException
- Throws:
ParseException
-
expression
public final void expression(Expression exp, java.util.Stack stack) throws ParseException
Parse an expression.- Throws:
ParseException
-
nonBooleanExpression
public final void nonBooleanExpression(Expression exp, java.util.Stack stack) throws ParseException
Parses a non-boolean expression.- Throws:
ParseException
-
OpPart
public final void OpPart(Expression exp, java.util.Stack stack) throws ParseException
- Throws:
ParseException
-
Operand
public final void Operand(Expression exp, java.util.Stack stack) throws ParseException
- Throws:
ParseException
-
SubQueryExpression
public final void SubQueryExpression(Expression exp, java.util.Stack stack) throws ParseException
- Throws:
ParseException
-
PositiveIntegerConstant
public final int PositiveIntegerConstant() throws ParseException- Throws:
ParseException
-
SubQueryOperator
public final void SubQueryOperator(Expression exp, java.util.Stack stack) throws ParseException
- Throws:
ParseException
-
BetweenPredicate
public final void BetweenPredicate(Expression exp, java.util.Stack stack) throws ParseException
- Throws:
ParseException
-
BooleanOperator
public final void BooleanOperator(Expression exp, java.util.Stack stack) throws ParseException
- Throws:
ParseException
-
NumericOperator
public final void NumericOperator(Expression exp, java.util.Stack stack) throws ParseException
- Throws:
ParseException
-
StringOperator
public final void StringOperator(Expression exp, java.util.Stack stack) throws ParseException
- Throws:
ParseException
-
GetBooleanOperator
public final java.lang.String GetBooleanOperator() throws ParseException- Throws:
ParseException
-
GetSubQueryBooleanOperator
public final java.lang.String GetSubQueryBooleanOperator() throws ParseException- Throws:
ParseException
-
GetNumericOperator
public final java.lang.String GetNumericOperator() throws ParseException- Throws:
ParseException
-
GetStringOperator
public final java.lang.String GetStringOperator() throws ParseException- Throws:
ParseException
-
FunctionIdentifier
public final Token FunctionIdentifier() throws ParseException
- Throws:
ParseException
-
Function
public final FunctionDef Function() throws ParseException
- Throws:
ParseException
-
JavaInstantiation
public final FunctionDef JavaInstantiation() throws ParseException
- Throws:
ParseException
-
FunctionParams
public final Expression[] FunctionParams() throws ParseException
- Throws:
ParseException
-
ExpressionList
public final Expression[] ExpressionList() throws ParseException
- Throws:
ParseException
-
GetComposite
public final java.lang.String GetComposite() throws ParseException- Throws:
ParseException
-
TableName
public final java.lang.String TableName() throws ParseException- Throws:
ParseException
-
SequenceName
public final java.lang.String SequenceName() throws ParseException- Throws:
ParseException
-
TriggerName
public final java.lang.String TriggerName() throws ParseException- Throws:
ParseException
-
IndexName
public final java.lang.String IndexName() throws ParseException- Throws:
ParseException
-
UserName
public final java.lang.String UserName() throws ParseException- Throws:
ParseException
-
SchemaName
public final java.lang.String SchemaName() throws ParseException- Throws:
ParseException
-
ConstraintName
public final java.lang.String ConstraintName() throws ParseException- Throws:
ParseException
-
ColumnName
public final java.lang.String ColumnName() throws ParseException- Throws:
ParseException
-
ColumnNameVariable
public final Variable ColumnNameVariable() throws ParseException
- Throws:
ParseException
-
TableAliasName
public final java.lang.String TableAliasName() throws ParseException- Throws:
ParseException
-
ProcedureName
public final java.lang.String ProcedureName() throws ParseException- Throws:
ParseException
-
FunctionName
public final java.lang.String FunctionName() throws ParseException- Throws:
ParseException
-
ProcArgumentName
public final java.lang.String ProcArgumentName() throws ParseException- Throws:
ParseException
-
SQLIdentifier
public final Token SQLIdentifier() throws ParseException
- Throws:
ParseException
-
jj_2_1
private final boolean jj_2_1(int xla)
-
jj_2_2
private final boolean jj_2_2(int xla)
-
jj_2_3
private final boolean jj_2_3(int xla)
-
jj_2_4
private final boolean jj_2_4(int xla)
-
jj_2_5
private final boolean jj_2_5(int xla)
-
jj_2_6
private final boolean jj_2_6(int xla)
-
jj_2_7
private final boolean jj_2_7(int xla)
-
jj_2_8
private final boolean jj_2_8(int xla)
-
jj_2_9
private final boolean jj_2_9(int xla)
-
jj_2_10
private final boolean jj_2_10(int xla)
-
jj_2_11
private final boolean jj_2_11(int xla)
-
jj_2_12
private final boolean jj_2_12(int xla)
-
jj_2_13
private final boolean jj_2_13(int xla)
-
jj_2_14
private final boolean jj_2_14(int xla)
-
jj_2_15
private final boolean jj_2_15(int xla)
-
jj_2_16
private final boolean jj_2_16(int xla)
-
jj_2_17
private final boolean jj_2_17(int xla)
-
jj_3R_137
private final boolean jj_3R_137()
-
jj_3R_36
private final boolean jj_3R_36()
-
jj_3R_130
private final boolean jj_3R_130()
-
jj_3R_120
private final boolean jj_3R_120()
-
jj_3R_55
private final boolean jj_3R_55()
-
jj_3R_20
private final boolean jj_3R_20()
-
jj_3R_136
private final boolean jj_3R_136()
-
jj_3R_19
private final boolean jj_3R_19()
-
jj_3_11
private final boolean jj_3_11()
-
jj_3R_122
private final boolean jj_3R_122()
-
jj_3R_90
private final boolean jj_3R_90()
-
jj_3R_18
private final boolean jj_3R_18()
-
jj_3R_63
private final boolean jj_3R_63()
-
jj_3R_121
private final boolean jj_3R_121()
-
jj_3R_29
private final boolean jj_3R_29()
-
jj_3R_119
private final boolean jj_3R_119()
-
jj_3R_28
private final boolean jj_3R_28()
-
jj_3R_87
private final boolean jj_3R_87()
-
jj_3R_54
private final boolean jj_3R_54()
-
jj_3R_132
private final boolean jj_3R_132()
-
jj_3_9
private final boolean jj_3_9()
-
jj_3R_135
private final boolean jj_3R_135()
-
jj_3R_129
private final boolean jj_3R_129()
-
jj_3_10
private final boolean jj_3_10()
-
jj_3R_118
private final boolean jj_3R_118()
-
jj_3_6
private final boolean jj_3_6()
-
jj_3R_85
private final boolean jj_3R_85()
-
jj_3R_48
private final boolean jj_3R_48()
-
jj_3R_126
private final boolean jj_3R_126()
-
jj_3R_83
private final boolean jj_3R_83()
-
jj_3_15
private final boolean jj_3_15()
-
jj_3R_30
private final boolean jj_3R_30()
-
jj_3R_53
private final boolean jj_3R_53()
-
jj_3R_25
private final boolean jj_3R_25()
-
jj_3R_134
private final boolean jj_3R_134()
-
jj_3R_131
private final boolean jj_3R_131()
-
jj_3R_117
private final boolean jj_3R_117()
-
jj_3R_128
private final boolean jj_3R_128()
-
jj_3R_82
private final boolean jj_3R_82()
-
jj_3R_127
private final boolean jj_3R_127()
-
jj_3R_52
private final boolean jj_3R_52()
-
jj_3R_31
private final boolean jj_3R_31()
-
jj_3R_98
private final boolean jj_3R_98()
-
jj_3_17
private final boolean jj_3_17()
-
jj_3R_86
private final boolean jj_3R_86()
-
jj_3R_116
private final boolean jj_3R_116()
-
jj_3R_51
private final boolean jj_3R_51()
-
jj_3R_91
private final boolean jj_3R_91()
-
jj_3R_125
private final boolean jj_3R_125()
-
jj_3R_115
private final boolean jj_3R_115()
-
jj_3R_104
private final boolean jj_3R_104()
-
jj_3R_50
private final boolean jj_3R_50()
-
jj_3_5
private final boolean jj_3_5()
-
jj_3_4
private final boolean jj_3_4()
-
jj_3R_49
private final boolean jj_3R_49()
-
jj_3R_26
private final boolean jj_3R_26()
-
jj_3R_114
private final boolean jj_3R_114()
-
jj_3R_124
private final boolean jj_3R_124()
-
jj_3R_88
private final boolean jj_3R_88()
-
jj_3R_27
private final boolean jj_3R_27()
-
jj_3R_106
private final boolean jj_3R_106()
-
jj_3R_103
private final boolean jj_3R_103()
-
jj_3R_94
private final boolean jj_3R_94()
-
jj_3R_113
private final boolean jj_3R_113()
-
jj_3R_123
private final boolean jj_3R_123()
-
jj_3R_58
private final boolean jj_3R_58()
-
jj_3R_102
private final boolean jj_3R_102()
-
jj_3R_89
private final boolean jj_3R_89()
-
jj_3R_93
private final boolean jj_3R_93()
-
jj_3R_112
private final boolean jj_3R_112()
-
jj_3R_101
private final boolean jj_3R_101()
-
jj_3R_60
private final boolean jj_3R_60()
-
jj_3R_97
private final boolean jj_3R_97()
-
jj_3R_80
private final boolean jj_3R_80()
-
jj_3R_57
private final boolean jj_3R_57()
-
jj_3R_64
private final boolean jj_3R_64()
-
jj_3R_79
private final boolean jj_3R_79()
-
jj_3R_78
private final boolean jj_3R_78()
-
jj_3R_77
private final boolean jj_3R_77()
-
jj_3R_76
private final boolean jj_3R_76()
-
jj_3R_95
private final boolean jj_3R_95()
-
jj_3R_92
private final boolean jj_3R_92()
-
jj_3R_96
private final boolean jj_3R_96()
-
jj_3R_75
private final boolean jj_3R_75()
-
jj_3R_35
private final boolean jj_3R_35()
-
jj_3R_59
private final boolean jj_3R_59()
-
jj_3R_34
private final boolean jj_3R_34()
-
jj_3R_56
private final boolean jj_3R_56()
-
jj_3R_33
private final boolean jj_3R_33()
-
jj_3R_65
private final boolean jj_3R_65()
-
jj_3R_32
private final boolean jj_3R_32()
-
jj_3R_100
private final boolean jj_3R_100()
-
jj_3R_46
private final boolean jj_3R_46()
-
jj_3_3
private final boolean jj_3_3()
-
jj_3R_17
private final boolean jj_3R_17()
-
jj_3_2
private final boolean jj_3_2()
-
jj_3R_74
private final boolean jj_3R_74()
-
jj_3R_110
private final boolean jj_3R_110()
-
jj_3R_108
private final boolean jj_3R_108()
-
jj_3R_73
private final boolean jj_3R_73()
-
jj_3R_111
private final boolean jj_3R_111()
-
jj_3R_72
private final boolean jj_3R_72()
-
jj_3R_84
private final boolean jj_3R_84()
-
jj_3R_45
private final boolean jj_3R_45()
-
jj_3R_44
private final boolean jj_3R_44()
-
jj_3R_109
private final boolean jj_3R_109()
-
jj_3R_107
private final boolean jj_3R_107()
-
jj_3_16
private final boolean jj_3_16()
-
jj_3R_105
private final boolean jj_3R_105()
-
jj_3R_99
private final boolean jj_3R_99()
-
jj_3R_71
private final boolean jj_3R_71()
-
jj_3R_81
private final boolean jj_3R_81()
-
jj_3R_70
private final boolean jj_3R_70()
-
jj_3R_69
private final boolean jj_3R_69()
-
jj_3R_43
private final boolean jj_3R_43()
-
jj_3R_38
private final boolean jj_3R_38()
-
jj_3R_68
private final boolean jj_3R_68()
-
jj_3R_67
private final boolean jj_3R_67()
-
jj_3R_66
private final boolean jj_3R_66()
-
jj_3R_42
private final boolean jj_3R_42()
-
jj_3_8
private final boolean jj_3_8()
-
jj_3_14
private final boolean jj_3_14()
-
jj_3R_39
private final boolean jj_3R_39()
-
jj_3_13
private final boolean jj_3_13()
-
jj_3_1
private final boolean jj_3_1()
-
jj_3R_41
private final boolean jj_3R_41()
-
jj_3R_40
private final boolean jj_3R_40()
-
jj_3R_21
private final boolean jj_3R_21()
-
jj_3R_47
private final boolean jj_3R_47()
-
jj_3_7
private final boolean jj_3_7()
-
jj_3R_62
private final boolean jj_3R_62()
-
jj_3R_37
private final boolean jj_3R_37()
-
jj_3R_24
private final boolean jj_3R_24()
-
jj_3_12
private final boolean jj_3_12()
-
jj_3R_23
private final boolean jj_3R_23()
-
jj_3R_22
private final boolean jj_3R_22()
-
jj_3R_61
private final boolean jj_3R_61()
-
jj_3R_138
private final boolean jj_3R_138()
-
jj_3R_133
private final boolean jj_3R_133()
-
ReInit
public void ReInit(java.io.InputStream stream)
-
ReInit
public void ReInit(java.io.Reader stream)
-
ReInit
public void ReInit(SQLTokenManager tm)
-
jj_consume_token
private final Token jj_consume_token(int kind) throws ParseException
- Throws:
ParseException
-
jj_scan_token
private final boolean jj_scan_token(int kind)
-
getNextToken
public final Token getNextToken()
-
getToken
public final Token getToken(int index)
-
jj_ntk
private final int jj_ntk()
-
jj_add_error_token
private void jj_add_error_token(int kind, int pos)
-
generateParseException
public final ParseException generateParseException()
-
enable_tracing
public final void enable_tracing()
-
disable_tracing
public final void disable_tracing()
-
jj_rescan_token
private final void jj_rescan_token()
-
jj_save
private final void jj_save(int index, int xla)
-
-