SQLConstants
public class SQL extends java.lang.Object implements SQLConstants
Modifier and Type | Field | Description |
---|---|---|
Token |
jj_nt |
|
boolean |
lookingAhead |
|
Token |
token |
|
SQLTokenManager |
token_source |
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 | Description |
---|---|
SQL(SQLTokenManager tm) |
|
SQL(java.io.InputStream stream) |
|
SQL(java.io.Reader stream) |
Modifier and Type | Method | Description |
---|---|---|
void |
addOperatorToExpression(Expression exp,
Operator op) |
Helper for expression parsing.
|
StatementTree |
Alter() |
|
StatementTree |
AlterTable() |
|
StatementTree |
AlterUser() |
|
void |
AssignmentList(java.util.ArrayList assignment_list) |
|
java.util.ArrayList |
BasicColumnList(java.util.ArrayList list) |
|
java.lang.String |
BeforeOrAfter() |
|
void |
BetweenPredicate(Expression exp,
java.util.Stack stack) |
|
void |
BooleanOperator(Expression exp,
java.util.Stack stack) |
|
StatementTree |
Call() |
|
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.
|
void |
ColumnConstraint(ColumnDef column) |
|
void |
ColumnDataType(ColumnDef column) |
|
void |
ColumnDeclarationList(java.util.ArrayList column_list,
java.util.ArrayList constraint_list) |
|
ColumnDef |
ColumnDefinition() |
|
java.lang.String |
ColumnName() |
|
Variable |
ColumnNameVariable() |
|
void |
ColumnOrConstraintDefinition(java.util.ArrayList column_list,
java.util.ArrayList constraint_list) |
|
StatementTree |
Compact() |
|
StatementTree |
CompleteTransaction() |
|
void |
ConditionsExpression(SearchExpression se) |
|
void |
ConstraintAttributes(ConstraintDef constraint) |
|
java.lang.String |
ConstraintName() |
|
StatementTree |
Create() |
|
StatementTree |
CreateFunction() |
|
StatementTree |
CreateIndex() |
|
StatementTree |
CreateSchema() |
|
StatementTree |
CreateSequence() |
|
ParameterSubstitution |
createSubstitution(java.lang.String image) |
Creates and returns a parameter substitution.
|
StatementTree |
CreateTable() |
|
StatementTree |
CreateTrigger() |
|
StatementTree |
CreateUser() |
|
StatementTree |
CreateView() |
|
StatementTree |
Delete() |
|
StatementTree |
Describe() |
|
void |
disable_tracing() |
|
Expression |
DoExpression() |
|
Expression |
DoNonBooleanExpression() |
|
StatementTree |
Drop() |
|
StatementTree |
DropFunction() |
|
StatementTree |
DropIndex() |
|
StatementTree |
DropSchema() |
|
StatementTree |
DropSequence() |
|
StatementTree |
DropTable() |
|
StatementTree |
DropTrigger() |
|
StatementTree |
DropUser() |
|
StatementTree |
DropView() |
|
void |
enable_tracing() |
|
void |
expEnd(Expression exp,
java.util.Stack stack) |
Helper for expression parsing.
|
void |
expEndParen(Expression exp,
java.util.Stack stack) |
Helper for expression parsing.
|
void |
expOperator(Expression exp,
java.util.Stack stack,
Operator op) |
Helper for expression parsing.
|
void |
expression(Expression exp,
java.util.Stack stack) |
Parse an expression.
|
Expression[] |
ExpressionList() |
|
Expression |
ExpressionTest() |
|
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.
|
void |
FromClauseJoin(FromClause from_clause) |
|
FunctionDef |
Function() |
|
Token |
FunctionIdentifier() |
|
java.lang.String |
FunctionName() |
|
Expression[] |
FunctionParams() |
|
ParseException |
generateParseException() |
|
AlterTableAction |
GetAlterTableAction() |
|
int |
GetBinarySQLType() |
|
java.lang.String |
GetBooleanOperator() |
|
int |
GetBooleanSQLType() |
|
int |
GetCollateDecomposition() |
|
int |
GetCollateStrength() |
|
java.lang.String |
GetComposite() |
|
int |
GetDateSQLType() |
|
Token |
getNextToken() |
|
java.lang.String |
GetNumericOperator() |
|
int |
GetNumericSQLType() |
|
java.lang.String |
GetStringOperator() |
|
int |
GetStringSQLType() |
|
java.lang.String |
GetSubQueryBooleanOperator() |
|
TableSelectExpression |
GetTableSelectExpression() |
|
Token |
getToken(int index) |
|
TType |
GetTType() |
|
StatementTree |
Grant() |
|
Variable |
GroupMaxColumn() |
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.String |
IndexName() |
|
StatementTree |
Insert() |
|
void |
InsertDataList(java.util.ArrayList data_list) |
|
java.lang.Object |
InsertElement() |
|
java.util.ArrayList |
InsertExpressionList() |
|
FunctionDef |
JavaInstantiation() |
|
static void |
main(java.lang.String[] args) |
|
void |
nonBooleanExpression(Expression exp,
java.util.Stack stack) |
Parses a non-boolean expression.
|
void |
NumericOperator(Expression exp,
java.util.Stack stack) |
|
void |
Operand(Expression exp,
java.util.Stack stack) |
|
void |
OpPart(Expression exp,
java.util.Stack stack) |
|
boolean |
OrderingSpec() |
|
Expression |
parseExpression() |
|
int |
PositiveIntegerConstant() |
|
java.util.ArrayList |
PrivList(java.util.ArrayList list) |
|
void |
PrivListItem(java.util.ArrayList list) |
|
java.lang.String |
PrivObject() |
|
java.lang.String |
ProcArgumentName() |
|
java.lang.String |
ProcedureName() |
|
void |
ProcParameterList(java.util.ArrayList decl_names,
java.util.ArrayList decl_types) |
|
java.lang.String |
ReferentialTrigger() |
|
void |
ReInit(SQLTokenManager tm) |
|
void |
ReInit(java.io.InputStream stream) |
|
void |
ReInit(java.io.Reader stream) |
|
void |
reset() |
Resets the parameter id.
|
StatementTree |
Revoke() |
|
java.lang.String |
SchemaName() |
|
StatementTree |
Select() |
|
SelectColumn |
SelectColumn() |
|
void |
SelectColumnList(java.util.ArrayList list) |
|
void |
SelectGroupByList(java.util.ArrayList list) |
|
void |
SelectOrderByList(java.util.ArrayList list) |
|
void |
SelectTableList(FromClause from_clause) |
|
java.lang.String |
SequenceName() |
|
StatementTree |
Set() |
|
boolean |
SetQuantifier() |
|
StatementTree |
Show() |
|
StatementTree |
ShutDown() |
|
Token |
SQLIdentifier() |
|
StatementTree |
Statement() |
|
void |
StringOperator(Expression exp,
java.util.Stack stack) |
|
void |
SubQueryExpression(Expression exp,
java.util.Stack stack) |
|
void |
SubQueryOperator(Expression exp,
java.util.Stack stack) |
|
java.lang.String |
TableAliasName() |
|
ConstraintDef |
TableConstraintDefinition() |
|
void |
TableDeclaration(FromClause from_clause) |
|
java.lang.String |
TableName() |
|
void |
Test() |
|
java.lang.String |
TriggerName() |
|
java.lang.String |
TriggerType() |
|
void |
TriggerTypes(java.util.ArrayList list) |
|
StatementTree |
Update() |
|
void |
UserManagerCommand(StatementTree cmd) |
|
java.lang.String |
UserName() |
|
java.util.ArrayList |
UserNameList(java.util.ArrayList list) |
public SQLTokenManager token_source
public Token token
public Token jj_nt
public boolean lookingAhead
public SQL(java.io.InputStream stream)
public SQL(java.io.Reader stream)
public SQL(SQLTokenManager tm)
public void reset()
public ParameterSubstitution createSubstitution(java.lang.String image)
public java.lang.String caseCheck(java.lang.String identif)
public void expEndParen(Expression exp, java.util.Stack stack)
public void expOperator(Expression exp, java.util.Stack stack, Operator op)
public void flushOperatorStack(Expression exp, java.util.Stack stack, int precedence)
public void expEnd(Expression exp, java.util.Stack stack)
public void addOperatorToExpression(Expression exp, Operator op)
public static void main(java.lang.String[] args) throws ParseException
ParseException
public final void Test() throws ParseException
ParseException
public final Expression parseExpression() throws ParseException
ParseException
public final StatementTree Statement() throws ParseException
ParseException
public final StatementTree Create() throws ParseException
ParseException
public final StatementTree Drop() throws ParseException
ParseException
public final StatementTree Select() throws ParseException
ParseException
public final StatementTree Update() throws ParseException
ParseException
public final StatementTree Alter() throws ParseException
ParseException
public final StatementTree AlterTable() throws ParseException
ParseException
public final StatementTree Compact() throws ParseException
ParseException
public final StatementTree CreateTable() throws ParseException
ParseException
public final StatementTree CreateTrigger() throws ParseException
ParseException
public final StatementTree DropTrigger() throws ParseException
ParseException
public final StatementTree CreateFunction() throws ParseException
ParseException
public final StatementTree DropFunction() throws ParseException
ParseException
public final StatementTree CreateSchema() throws ParseException
ParseException
public final StatementTree DropSchema() throws ParseException
ParseException
public final StatementTree CreateView() throws ParseException
ParseException
public final StatementTree DropView() throws ParseException
ParseException
public final StatementTree CreateIndex() throws ParseException
ParseException
public final StatementTree DropTable() throws ParseException
ParseException
public final StatementTree DropIndex() throws ParseException
ParseException
public final StatementTree Call() throws ParseException
ParseException
public final StatementTree CreateSequence() throws ParseException
ParseException
public final StatementTree DropSequence() throws ParseException
ParseException
public final StatementTree CreateUser() throws ParseException
ParseException
public final StatementTree AlterUser() throws ParseException
ParseException
public final StatementTree DropUser() throws ParseException
ParseException
public final void UserManagerCommand(StatementTree cmd) throws ParseException
ParseException
public final StatementTree Delete() throws ParseException
ParseException
public final StatementTree Insert() throws ParseException
ParseException
public final StatementTree Describe() throws ParseException
ParseException
public final StatementTree Show() throws ParseException
ParseException
public final StatementTree Grant() throws ParseException
ParseException
public final StatementTree Revoke() throws ParseException
ParseException
public final StatementTree CompleteTransaction() throws ParseException
ParseException
public final StatementTree Set() throws ParseException
ParseException
public final StatementTree ShutDown() throws ParseException
ParseException
public final java.lang.String TriggerType() throws ParseException
ParseException
public final java.lang.String BeforeOrAfter() throws ParseException
ParseException
public final void TriggerTypes(java.util.ArrayList list) throws ParseException
ParseException
public final java.lang.String PrivObject() throws ParseException
ParseException
public final java.util.ArrayList PrivList(java.util.ArrayList list) throws ParseException
ParseException
public final void PrivListItem(java.util.ArrayList list) throws ParseException
ParseException
public final TableSelectExpression GetTableSelectExpression() throws ParseException
ParseException
public final AlterTableAction GetAlterTableAction() throws ParseException
ParseException
public final java.lang.Object InsertElement() throws ParseException
ParseException
public final java.util.ArrayList InsertExpressionList() throws ParseException
ParseException
public final void InsertDataList(java.util.ArrayList data_list) throws ParseException
ParseException
public final boolean SetQuantifier() throws ParseException
ParseException
public final void SelectColumnList(java.util.ArrayList list) throws ParseException
ParseException
public final SelectColumn SelectColumn() throws ParseException
ParseException
public final void SelectGroupByList(java.util.ArrayList list) throws ParseException
ParseException
public final Variable GroupMaxColumn() throws ParseException
ParseException
public final void SelectOrderByList(java.util.ArrayList list) throws ParseException
ParseException
public final boolean OrderingSpec() throws ParseException
ParseException
public final void TableDeclaration(FromClause from_clause) throws ParseException
ParseException
public final void SelectTableList(FromClause from_clause) throws ParseException
ParseException
public final void FromClauseJoin(FromClause from_clause) throws ParseException
ParseException
public final void ProcParameterList(java.util.ArrayList decl_names, java.util.ArrayList decl_types) throws ParseException
ParseException
public final void AssignmentList(java.util.ArrayList assignment_list) throws ParseException
ParseException
public final void ColumnDeclarationList(java.util.ArrayList column_list, java.util.ArrayList constraint_list) throws ParseException
ParseException
public final void ColumnOrConstraintDefinition(java.util.ArrayList column_list, java.util.ArrayList constraint_list) throws ParseException
ParseException
public final ColumnDef ColumnDefinition() throws ParseException
ParseException
public final void ColumnConstraint(ColumnDef column) throws ParseException
ParseException
public final int GetCollateStrength() throws ParseException
ParseException
public final int GetCollateDecomposition() throws ParseException
ParseException
public final int GetStringSQLType() throws ParseException
ParseException
public final int GetNumericSQLType() throws ParseException
ParseException
public final int GetBooleanSQLType() throws ParseException
ParseException
public final int GetDateSQLType() throws ParseException
ParseException
public final int GetBinarySQLType() throws ParseException
ParseException
public final TType GetTType() throws ParseException
ParseException
public final void ColumnDataType(ColumnDef column) throws ParseException
ParseException
public final ConstraintDef TableConstraintDefinition() throws ParseException
ParseException
public final java.lang.String ReferentialTrigger() throws ParseException
ParseException
public final void ConstraintAttributes(ConstraintDef constraint) throws ParseException
ParseException
public final java.util.ArrayList BasicColumnList(java.util.ArrayList list) throws ParseException
ParseException
public final java.util.ArrayList UserNameList(java.util.ArrayList list) throws ParseException
ParseException
public final void ConditionsExpression(SearchExpression se) throws ParseException
ParseException
public final Expression ExpressionTest() throws ParseException
ParseException
public final Expression DoExpression() throws ParseException
ParseException
public final Expression DoNonBooleanExpression() throws ParseException
ParseException
public final void expression(Expression exp, java.util.Stack stack) throws ParseException
ParseException
public final void nonBooleanExpression(Expression exp, java.util.Stack stack) throws ParseException
ParseException
public final void OpPart(Expression exp, java.util.Stack stack) throws ParseException
ParseException
public final void Operand(Expression exp, java.util.Stack stack) throws ParseException
ParseException
public final void SubQueryExpression(Expression exp, java.util.Stack stack) throws ParseException
ParseException
public final int PositiveIntegerConstant() throws ParseException
ParseException
public final void SubQueryOperator(Expression exp, java.util.Stack stack) throws ParseException
ParseException
public final void BetweenPredicate(Expression exp, java.util.Stack stack) throws ParseException
ParseException
public final void BooleanOperator(Expression exp, java.util.Stack stack) throws ParseException
ParseException
public final void NumericOperator(Expression exp, java.util.Stack stack) throws ParseException
ParseException
public final void StringOperator(Expression exp, java.util.Stack stack) throws ParseException
ParseException
public final java.lang.String GetBooleanOperator() throws ParseException
ParseException
public final java.lang.String GetSubQueryBooleanOperator() throws ParseException
ParseException
public final java.lang.String GetNumericOperator() throws ParseException
ParseException
public final java.lang.String GetStringOperator() throws ParseException
ParseException
public final Token FunctionIdentifier() throws ParseException
ParseException
public final FunctionDef Function() throws ParseException
ParseException
public final FunctionDef JavaInstantiation() throws ParseException
ParseException
public final Expression[] FunctionParams() throws ParseException
ParseException
public final Expression[] ExpressionList() throws ParseException
ParseException
public final java.lang.String GetComposite() throws ParseException
ParseException
public final java.lang.String TableName() throws ParseException
ParseException
public final java.lang.String SequenceName() throws ParseException
ParseException
public final java.lang.String TriggerName() throws ParseException
ParseException
public final java.lang.String IndexName() throws ParseException
ParseException
public final java.lang.String UserName() throws ParseException
ParseException
public final java.lang.String SchemaName() throws ParseException
ParseException
public final java.lang.String ConstraintName() throws ParseException
ParseException
public final java.lang.String ColumnName() throws ParseException
ParseException
public final Variable ColumnNameVariable() throws ParseException
ParseException
public final java.lang.String TableAliasName() throws ParseException
ParseException
public final java.lang.String ProcedureName() throws ParseException
ParseException
public final java.lang.String FunctionName() throws ParseException
ParseException
public final java.lang.String ProcArgumentName() throws ParseException
ParseException
public final Token SQLIdentifier() throws ParseException
ParseException
public void ReInit(java.io.InputStream stream)
public void ReInit(java.io.Reader stream)
public void ReInit(SQLTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public final ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 2018. All rights reserved.