Package org.teiid.query.parser
Class SQLParser
- java.lang.Object
-
- org.teiid.query.parser.SQLParserUtil
-
- org.teiid.query.parser.SQLParser
-
- All Implemented Interfaces:
SQLParserConstants
public class SQLParser extends SQLParserUtil implements SQLParserConstants
The SQLParser is a JavaCC-generated parser that reads a SQL string and produces a Query object. The SQLParser.java file is generated by JavaCC from the SQLParser.jj file. WARNING: DO NOT MODIFY the SQLParser.java file as it will be regenerated from the .jj file and your changes will be lost!
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.teiid.query.parser.SQLParserUtil
SQLParserUtil.ParsedDataType
-
-
Field Summary
Fields Modifier and Type Field Description Token
jj_nt
Next token.Token
token
Current token.SQLParserTokenManager
token_source
Generated Token Manager.-
Fields inherited from class org.teiid.query.parser.SQLParserUtil
CONDITION_CONSTRAINT_DEFAULT, DECIMAL_AS_DOUBLE, RESULT_ANY_POSITION
-
Fields inherited from interface org.teiid.query.parser.SQLParserConstants
ACCESS, ACCESSPATTERN, ADD, AFTER, ALL, ALL_IN_GROUP, ALLOCATE, ALTER, ANALYZE, AND, ANY, ARE, ARRAY, ARRAY_AGG, ARRAYTABLE, AS, ASC, ASENSITIVE, ASYMETRIC, ATOMIC, AUTHENTICATED, AUTO_INCREMENT, AUTORIZATION, AVG, BEGIN, BETWEEN, BIGDECIMAL, BIGINT, BIGINTEGER, BINARY, BINARYSTRINGVAL, BLOB, BOOLEAN, BOTH, BREAK, BY, BYTE, CALL, CALLED, CASCADED, CASE, CAST, CHAIN, CHAR, CHARACTER, CHECK, CLOB, CLOSE, COLLATE, COLON, COLUMN, COLUMNS, COMMA, COMMIT, CONCAT_OP, CONDITION, CONNECT, CONSTRAINT, CONTENT, CONTINUE, CONTROL, CONVERT, CORRESPONDING, COUNT, COUNT_BIG, CREATE, CRITERIA, CROSS, CUME_DIST, CURRENT, CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP, CURRENT_USER, CURSOR, CYCLE, DATA, DATABASE, DATALINK, DATE, DAY, DEALLOCATE, DEC, DECIMAL, DECIMALVAL, DECLARE, DEFAULT, DEFAULT_KEYWORD, DELETE, DELIMITER, DENSE_RANK, DEREF, DESC, DESCRIBE, DETERMINISTIC, DIGIT, DISABLED, DISCONNECT, DISTINCT, DLNEWCOPY, DLPREVIOUSCOPY, DLURLCOMPLETE, DLURLCOMPLETEONLY, DLURLCOMPLETEWRITE, DLURLPATH, DLURLPATHONLY, DLURLPATHWRITE, DLURLSCHEME, DLURLSERVER, DLVALUE, DOCUMENT, DOLLAR, DOMAIN, DOUBLE, DOUBLE_AMP_OP, DOW, DOY, DROP, DYNAMIC, EACH, ELEMENT, ELSE, EMPTY, ENABLED, ENCODING, END, EOF, EPOCH, EQ, ERROR, ESCAPE, ESCAPEDFUNCTION, ESCAPEDJOIN, ESCAPEDTYPE, EVERY, EXCEPT, EXCEPTION, EXCLUDING, EXEC, EXECUTE, EXISTS, EXPLAIN, EXTERNAL, EXTRACT, FALSE, FETCH, FILTER, FIRST, FLOAT, FLOATVAL, FOLLOWING, FOR, FOREIGN, FORMAT, FREE, FROM, FULL, FUNCTION, GE, GEOGRAPHY, GEOMETRY, GET, GLOBAL, GRANT, GROUP, GT, HANDLER, HAS, HAVING, HEADER, HEXIT, HOLD, HOUR, ID, ID_PART, IDENTITY, IF, IMMEDIATE, IMPORT, IN, IN_MULTI_LINE_COMMENT, INCLUDING, INDEX, INDICATOR, INNER, INOUT, INPUT, INSENSITIVE, INSERT, INSTEAD, INT, INTEGER, INTERSECT, INTERVAL, INTO, IS, ISOLATION, JAAS, JOIN, JSON, JSONARRAY_AGG, JSONOBJECT, JSONTABLE, KEY, LANGUAGE, LARGE, LAST, LATERAL, LBRACE, LE, LEADING, LEAVE, LEFT, LETTER, LIKE, LIKE_REGEX, LIMIT, LINE_COMMENT, LISTAGG, LOCAL, LOCALTIME, LOCALTIMESTAMP, LONG, LOOP, LPAREN, LSBRACE, LT, MAKEDEP, MAKEIND, MAKENOTDEP, MASK, MATCH, MAX, MEMBER, MERGE, METHOD, MIN, MINUS, MINUTE, MODIFIES, MODULE, MONTH, MULTISET, NAME, NAMESPACE, NATIONAL, NATURAL, NCHAR, NCLOB, NE, NE2, NEW, NEXT, NO, NOCACHE, NONE, NOT, NULL, NULLS, NUMERIC, OBJECT, OBJECTTABLE, OF, OFFSET, OLD, ON, ONLY, OPEN, OPTION, OPTIONS, OR, ORDER, ORDINALITY, OUT, OUTER, OUTPUT, OVER, OVERLAPS, PARAMETER, PARTITION, PASSING, PATH, PERCENT_RANK, PERIOD, PLUS, POLICY, POSITION, PRECEDING, PRECISION, PREPARE, PRESERVE, PRIMARY, PRIVILEGES, PROCEDURE, QMARK, QUARTER, QUERYSTRING, QUOTE, QUOTED_ID, RAISE, RANGE, RANK, RBRACE, READS, REAL, RECURSIVE, REFERENCES, REFERENCING, RELEASE, RENAME, REPOSITORY, RESULT, RETURN, RETURNS, REVOKE, RIGHT, ROLE, ROLLBACK, ROLLUP, ROW, ROW_NUMBER, ROWS, RPAREN, RSBRACE, SAVEPOINT, SCHEMA, SCROLL, SEARCH, SECOND, SELECT, SELECTOR, SEMICOLON, SENSITIVE, SERIAL, SERVER, SESSION_USER, SET, SHORT, SIMILAR, SKIP_KEYWORD, SLASH, SMALLINT, SOME, SPECIFIC, SPECIFICTYPE, SQL, SQL_TSI_DAY, SQL_TSI_FRAC_SECOND, SQL_TSI_HOUR, SQL_TSI_MINUTE, SQL_TSI_MONTH, SQL_TSI_QUARTER, SQL_TSI_SECOND, SQL_TSI_WEEK, SQL_TSI_YEAR, SQLEXCEPTION, SQLSTATE, SQLWARNING, STAR, START, STATIC, STDDEV_POP, STDDEV_SAMP, STRING, STRINGVAL, SUBMULTILIST, SUBSTRING, SUM, SYMETRIC, SYSTEM, SYSTEM_USER, TABLE, TEMPORARY, TEXT, TEXTAGG, TEXTTABLE, THEN, TIME, TIMESTAMP, TIMESTAMPADD, TIMESTAMPDIFF, TIMEZONE_HOUR, TIMEZONE_MINUTE, TINYINT, TO, TO_BYTES, TO_CHARS, tokenImage, TRAILING, TRANSLATE, TRANSLATION, TRANSLATOR, TREAT, TRIGGER, TRIM, TRUE, TYPE, UNBOUNDED, UNION, UNIQUE, UNKNOWN, UNSIGNEDINTEGER, UPDATE, UPSERT, USAGE, USE, USER, USING, VALUE, VALUES, VAR_POP, VAR_SAMP, VARBINARY, VARCHAR, VARIADIC, VARYING, VERSION, VIEW, VIRTUAL, WELLFORMED, WHEN, WHENEVER, WHERE, WHILE, WIDTH, WINDOW, WITH, WITHIN, WITHOUT, WRAPPER, XML, XMLAGG, XMLATTRIBUTES, XMLBINARY, XMLCAST, XMLCOMMENT, XMLCONCAT, XMLDECLARATION, XMLDOCUMENT, XMLELEMENT, XMLEXISTS, XMLFOREST, XMLITERATE, XMLNAMESPACES, XMLPARSE, XMLPI, XMLQUERY, XMLSERIALIZE, XMLTABLE, XMLTEXT, XMLVALIDATE, YAML, YEAR
-
-
Constructor Summary
Constructors Constructor Description SQLParser(InputStream stream)
Constructor with InputStream.SQLParser(InputStream stream, String encoding)
Constructor with InputStream and supplied encodingSQLParser(Reader stream)
Constructor.SQLParser(SQLParserTokenManager tm)
Constructor with generated Token Manager.
-
Method Summary
-
Methods inherited from class org.teiid.query.parser.SQLParserUtil
arrayFromQuery, createFunctionMethod, isTrue, normalizeId, normalizeId, setDefault, setTypeInfo
-
-
-
-
Field Detail
-
token_source
public SQLParserTokenManager token_source
Generated Token Manager.
-
token
public Token token
Current token.
-
jj_nt
public Token jj_nt
Next token.
-
-
Constructor Detail
-
SQLParser
public SQLParser(InputStream stream)
Constructor with InputStream.
-
SQLParser
public SQLParser(InputStream stream, String encoding)
Constructor with InputStream and supplied encoding
-
SQLParser
public SQLParser(Reader stream)
Constructor.
-
SQLParser
public SQLParser(SQLParserTokenManager tm)
Constructor with generated Token Manager.
-
-
Method Detail
-
stringVal
public final String stringVal() throws ParseException
- Throws:
ParseException
-
nonReserved
public final Token nonReserved() throws ParseException
- Throws:
ParseException
-
basicNonReserved
public final Token basicNonReserved() throws ParseException
- Throws:
ParseException
-
unqualifiedId
public final String unqualifiedId() throws ParseException
- Throws:
ParseException
-
id
public final String id(Boolean nonAlias) throws ParseException
- Throws:
ParseException
-
command
public final Command command(ParseInfo info) throws ParseException
- Throws:
ParseException
-
createTrigger
public final Command createTrigger(ParseInfo info, boolean ddl) throws ParseException
- Throws:
ParseException
-
alter
public final Command alter(ParseInfo info) throws ParseException
- Throws:
ParseException
-
forEachRowTriggerAction
public final TriggerAction forEachRowTriggerAction(ParseInfo info) throws ParseException
- Throws:
ParseException
-
explainCommand
public final Command explainCommand(ParseInfo info) throws ParseException
- Throws:
ParseException
-
explainOption
public final void explainOption(ParseInfo info, ExplainCommand explain) throws ParseException
- Throws:
ParseException
-
userCommand
public final Command userCommand(ParseInfo info) throws ParseException
- Throws:
ParseException
-
dropTable
public final Command dropTable(ParseInfo info) throws ParseException
- Throws:
ParseException
-
createTempTable
public final Command createTempTable(ParseInfo info) throws ParseException
- Throws:
ParseException
-
tableElement
public final Column tableElement(ParseInfo info) throws ParseException
- Throws:
ParseException
-
errorStatement
public final RaiseStatement errorStatement(ParseInfo info) throws ParseException
- Throws:
ParseException
-
raiseStatement
public final RaiseStatement raiseStatement(ParseInfo info) throws ParseException
- Throws:
ParseException
-
exceptionReference
public final Expression exceptionReference(ParseInfo info) throws ParseException
- Throws:
ParseException
-
exception
public final Expression exception(ParseInfo info) throws ParseException
- Throws:
ParseException
-
statement
public final Statement statement(ParseInfo info) throws ParseException
- Throws:
ParseException
-
delimitedStatement
public final Statement delimitedStatement(ParseInfo info) throws ParseException
- Throws:
ParseException
-
compoundStatement
public final Block compoundStatement(ParseInfo info) throws ParseException
- Throws:
ParseException
-
branchingStatement
public final BranchingStatement branchingStatement(ParseInfo info) throws ParseException
- Throws:
ParseException
-
returnStatement
public final ReturnStatement returnStatement(ParseInfo info) throws ParseException
- Throws:
ParseException
-
whileStatement
public final WhileStatement whileStatement(ParseInfo info) throws ParseException
- Throws:
ParseException
-
loopStatement
public final LoopStatement loopStatement(ParseInfo info) throws ParseException
- Throws:
ParseException
-
ifStatement
public final IfStatement ifStatement(ParseInfo info) throws ParseException
- Throws:
ParseException
-
declareStatement
public final DeclareStatement declareStatement(ParseInfo info) throws ParseException
- Throws:
ParseException
-
assignStatement
public final Statement assignStatement(ParseInfo info) throws ParseException
- Throws:
ParseException
-
assignStatementOperand
public final LanguageObject assignStatementOperand(ParseInfo info) throws ParseException
- Throws:
ParseException
-
sqlStatement
public final CommandStatement sqlStatement(ParseInfo info) throws ParseException
- Throws:
ParseException
-
createProcedure
public final CreateProcedureCommand createProcedure(ParseInfo info) throws ParseException
- Throws:
ParseException
-
procedureBodyCommand
public final CreateProcedureCommand procedureBodyCommand(ParseInfo info) throws ParseException
- Throws:
ParseException
-
dynamicCommand
public final DynamicCommand dynamicCommand(ParseInfo info) throws ParseException
- Throws:
ParseException
-
setClauseList
public final SetClauseList setClauseList(boolean shortName, ParseInfo info) throws ParseException
- Throws:
ParseException
-
createElementsWithTypes
public final List<TableFunctionReference.ProjectedColumn> createElementsWithTypes(ParseInfo info) throws ParseException
- Throws:
ParseException
-
callableStatement
public final StoredProcedure callableStatement(ParseInfo info) throws ParseException
- Throws:
ParseException
-
storedProcedure
public final StoredProcedure storedProcedure(ParseInfo info, int startIndex) throws ParseException
- Throws:
ParseException
-
executeNamedParams
public final void executeNamedParams(ParseInfo info, StoredProcedure storedProcedure, int parameterIndex) throws ParseException
- Throws:
ParseException
-
insert
public final Insert insert(ParseInfo info) throws ParseException
- Throws:
ParseException
-
expressionList
public final ArrayList<Expression> expressionList(ParseInfo info) throws ParseException
- Throws:
ParseException
-
update
public final Update update(ParseInfo info) throws ParseException
- Throws:
ParseException
-
delete
public final Delete delete(ParseInfo info) throws ParseException
- Throws:
ParseException
-
queryExpression
public final QueryCommand queryExpression(ParseInfo info) throws ParseException
- Throws:
ParseException
-
withListElement
public final WithQueryCommand withListElement(ParseInfo info) throws ParseException
- Throws:
ParseException
-
queryExpressionBody
public final QueryCommand queryExpressionBody(ParseInfo info) throws ParseException
- Throws:
ParseException
-
queryTerm
public final QueryCommand queryTerm(ParseInfo info) throws ParseException
- Throws:
ParseException
-
queryPrimary
public final QueryCommand queryPrimary(ParseInfo info) throws ParseException
- Throws:
ParseException
-
query
public final Query query(ParseInfo info) throws ParseException
- Throws:
ParseException
-
into
public final Into into(ParseInfo info) throws ParseException
- Throws:
ParseException
-
select
public final Select select(ParseInfo info) throws ParseException
- Throws:
ParseException
-
selectSymbol
public final Expression selectSymbol(ParseInfo info) throws ParseException
- Throws:
ParseException
-
selectExpression
public final Expression selectExpression(ParseInfo info) throws ParseException
- Throws:
ParseException
-
derivedColumn
public final DerivedColumn derivedColumn(ParseInfo info) throws ParseException
- Throws:
ParseException
-
allInGroupSymbol
public final MultipleElementSymbol allInGroupSymbol() throws ParseException
- Throws:
ParseException
-
orderedAgg
public final AggregateSymbol orderedAgg(ParseInfo info) throws ParseException
- Throws:
ParseException
-
textAgg
public final AggregateSymbol textAgg(ParseInfo info) throws ParseException
- Throws:
ParseException
-
aggregateSymbol
public final AggregateSymbol aggregateSymbol(ParseInfo info) throws ParseException
- Throws:
ParseException
-
analyticAggregateSymbol
public final AggregateSymbol analyticAggregateSymbol(ParseInfo info) throws ParseException
- Throws:
ParseException
-
filterClause
public final Expression filterClause(ParseInfo info) throws ParseException
- Throws:
ParseException
-
from
public final From from(ParseInfo info) throws ParseException
- Throws:
ParseException
-
tableReference
public final FromClause tableReference(ParseInfo info) throws ParseException
- Throws:
ParseException
-
joinedTable
public final FromClause joinedTable(ParseInfo info) throws ParseException
- Throws:
ParseException
-
crossJoin
public final JoinPredicate crossJoin(ParseInfo info) throws ParseException
- Throws:
ParseException
-
qualifiedJoin
public final JoinPredicate qualifiedJoin(ParseInfo info) throws ParseException
- Throws:
ParseException
-
tablePrimary
public final FromClause tablePrimary(ParseInfo info) throws ParseException
- Throws:
ParseException
-
makedepOptions
public final Option.MakeDep makedepOptions() throws ParseException
- Throws:
ParseException
-
xmlSerialize
public final XMLSerialize xmlSerialize(ParseInfo info) throws ParseException
- Throws:
ParseException
-
arrayTable
public final ArrayTable arrayTable(ParseInfo info) throws ParseException
- Throws:
ParseException
-
jsonTable
public final JsonTable jsonTable(ParseInfo info) throws ParseException
- Throws:
ParseException
-
jsonColumn
public final JsonTable.JsonColumn jsonColumn(ParseInfo info) throws ParseException
- Throws:
ParseException
-
textTable
public final TextTable textTable(ParseInfo info) throws ParseException
- Throws:
ParseException
-
textColumn
public final TextTable.TextColumn textColumn(ParseInfo info) throws ParseException
- Throws:
ParseException
-
xmlExists
public final Expression xmlExists(ParseInfo info) throws ParseException
- Throws:
ParseException
-
xmlQuery
public final XMLQuery xmlQuery(ParseInfo info) throws ParseException
- Throws:
ParseException
-
objectTable
public final ObjectTable objectTable(ParseInfo info) throws ParseException
- Throws:
ParseException
-
objectColumn
public final ObjectTable.ObjectColumn objectColumn(ParseInfo info) throws ParseException
- Throws:
ParseException
-
xmlTable
public final XMLTable xmlTable(ParseInfo info) throws ParseException
- Throws:
ParseException
-
xmlColumn
public final XMLTable.XMLColumn xmlColumn(ParseInfo info) throws ParseException
- Throws:
ParseException
-
intVal
public final int intVal() throws ParseException
- Throws:
ParseException
-
subqueryFromClause
public final SubqueryFromClause subqueryFromClause(ParseInfo info) throws ParseException
- Throws:
ParseException
-
unaryFromClause
public final UnaryFromClause unaryFromClause(ParseInfo info) throws ParseException
- Throws:
ParseException
-
where
public final Criteria where(ParseInfo info) throws ParseException
- Throws:
ParseException
-
criteria
public final Criteria criteria(ParseInfo info) throws ParseException
- Throws:
ParseException
-
compoundCritOr
public final Criteria compoundCritOr(ParseInfo info) throws ParseException
- Throws:
ParseException
-
compoundCritAnd
public final Criteria compoundCritAnd(ParseInfo info) throws ParseException
- Throws:
ParseException
-
notCrit
public final Criteria notCrit(ParseInfo info) throws ParseException
- Throws:
ParseException
-
booleanPrimary
public final Expression booleanPrimary(ParseInfo info) throws ParseException
- Throws:
ParseException
-
operator
public final Token operator() throws ParseException
- Throws:
ParseException
-
isDistinct
public final IsDistinctCriteria isDistinct(ParseInfo info, Expression expression) throws ParseException
- Throws:
ParseException
-
compareCrit
public final CompareCriteria compareCrit(ParseInfo info, Expression expression) throws ParseException
- Throws:
ParseException
-
subquery
public final QueryCommand subquery(ParseInfo info) throws ParseException
- Throws:
ParseException
-
subqueryCompareCriteria
public final SubqueryCompareCriteria subqueryCompareCriteria(ParseInfo info, Expression expression) throws ParseException
- Throws:
ParseException
-
matchCrit
public final MatchCriteria matchCrit(ParseInfo info, Expression expression) throws ParseException
- Throws:
ParseException
-
regexMatchCrit
public final MatchCriteria regexMatchCrit(ParseInfo info, Expression expression) throws ParseException
- Throws:
ParseException
-
charVal
public final Character charVal(ParseInfo info, String type) throws ParseException
- Throws:
ParseException
-
betweenCrit
public final BetweenCriteria betweenCrit(ParseInfo info, Expression expression) throws ParseException
- Throws:
ParseException
-
isNullCrit
public final IsNullCriteria isNullCrit(ParseInfo info, Expression expression) throws ParseException
- Throws:
ParseException
-
setCrit
public final AbstractSetCriteria setCrit(ParseInfo info, Expression expression) throws ParseException
- Throws:
ParseException
-
existsCriteria
public final ExistsCriteria existsCriteria(ParseInfo info) throws ParseException
- Throws:
ParseException
-
groupBy
public final GroupBy groupBy(ParseInfo info) throws ParseException
- Throws:
ParseException
-
having
public final Criteria having(ParseInfo info) throws ParseException
- Throws:
ParseException
-
orderby
public final OrderBy orderby(ParseInfo info) throws ParseException
- Throws:
ParseException
-
sortSpecification
public final OrderByItem sortSpecification(ParseInfo info) throws ParseException
- Throws:
ParseException
-
sortKey
public final Expression sortKey(ParseInfo info) throws ParseException
- Throws:
ParseException
-
intParam
public final Expression intParam(ParseInfo info) throws ParseException
- Throws:
ParseException
-
limit
public final Limit limit(ParseInfo info) throws ParseException
- Throws:
ParseException
-
fetchLimit
public final Expression fetchLimit(ParseInfo info) throws ParseException
- Throws:
ParseException
-
option
public final Option option(ParseInfo info) throws ParseException
- Throws:
ParseException
-
expression
public final Expression expression(ParseInfo info) throws ParseException
- Throws:
ParseException
-
commonValueExpression
public final Expression commonValueExpression(ParseInfo info) throws ParseException
- Throws:
ParseException
-
plusExpression
public final Expression plusExpression(ParseInfo info) throws ParseException
- Throws:
ParseException
-
plusMinus
public final String plusMinus() throws ParseException
- Throws:
ParseException
-
timesExpression
public final Expression timesExpression(ParseInfo info) throws ParseException
- Throws:
ParseException
-
timesOperator
public final String timesOperator() throws ParseException
- Throws:
ParseException
-
valueExpressionPrimary
public final Expression valueExpressionPrimary(ParseInfo info) throws ParseException
- Throws:
ParseException
-
parameterReference
public final Reference parameterReference(ParseInfo info) throws ParseException
- Throws:
ParseException
-
unescapedFunction
public final Expression unescapedFunction(ParseInfo info) throws ParseException
- Throws:
ParseException
-
nestedExpression
public final Expression nestedExpression(ParseInfo info) throws ParseException
- Throws:
ParseException
-
unsignedValueExpressionPrimary
public final Expression unsignedValueExpressionPrimary(ParseInfo info) throws ParseException
- Throws:
ParseException
-
arrayExpression
public final Expression arrayExpression(ParseInfo info) throws ParseException
- Throws:
ParseException
-
windowSpecification
public final Expression windowSpecification(Expression agg, ParseInfo info) throws ParseException
- Throws:
ParseException
-
windowFrame
public final WindowFrame windowFrame(ParseInfo info) throws ParseException
- Throws:
ParseException
-
windowFrameBound
public final WindowFrame.FrameBound windowFrameBound(ParseInfo info) throws ParseException
- Throws:
ParseException
-
caseExpression
public final CaseExpression caseExpression(ParseInfo info) throws ParseException
- Throws:
ParseException
-
searchedCaseExpression
public final SearchedCaseExpression searchedCaseExpression(ParseInfo info) throws ParseException
- Throws:
ParseException
-
function
public final Expression function(ParseInfo info) throws ParseException
- Throws:
ParseException
-
xmlParse
public final XMLParse xmlParse(ParseInfo info) throws ParseException
- Throws:
ParseException
-
queryString
public final QueryString queryString(ParseInfo info) throws ParseException
- Throws:
ParseException
-
xmlElement
public final XMLElement xmlElement(ParseInfo info) throws ParseException
- Throws:
ParseException
-
xmlAttributes
public final XMLAttributes xmlAttributes(ParseInfo info) throws ParseException
- Throws:
ParseException
-
jsonObject
public final JSONObject jsonObject(ParseInfo info) throws ParseException
- Throws:
ParseException
-
derivedColumnList
public final ArrayList<DerivedColumn> derivedColumnList(ParseInfo info) throws ParseException
- Throws:
ParseException
-
xmlForest
public final XMLForest xmlForest(ParseInfo info) throws ParseException
- Throws:
ParseException
-
xmlNamespaces
public final XMLNamespaces xmlNamespaces(ParseInfo info) throws ParseException
- Throws:
ParseException
-
namespaceItem
public final XMLNamespaces.NamespaceItem namespaceItem() throws ParseException
- Throws:
ParseException
-
parseDataTypePrimary
public final SQLParserUtil.ParsedDataType parseDataTypePrimary() throws ParseException
- Throws:
ParseException
-
parseBasicDataType
public final SQLParserUtil.ParsedDataType parseBasicDataType() throws ParseException
- Throws:
ParseException
-
parseDataType
public final SQLParserUtil.ParsedDataType parseDataType() throws ParseException
- Throws:
ParseException
-
intervalType
public final Constant intervalType() throws ParseException
- Throws:
ParseException
-
nonNumericLiteral
public final Constant nonNumericLiteral() throws ParseException
- Throws:
ParseException
-
unsignedNumericLiteral
public final Constant unsignedNumericLiteral(String strVal) throws ParseException
- Throws:
ParseException
-
parseMetadata
public final void parseMetadata(DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
ddlStmt
public final void ddlStmt(DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
createNameSpace
public final void createNameSpace(DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
createDatabase
public final void createDatabase(DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
useDatabase
public final void useDatabase(DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
createSchema
public final void createSchema(DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
dropSchema
public final void dropSchema(DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
useSchema
public final void useSchema(DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
createDomain
public final void createDomain(DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
createDataWrapper
public final void createDataWrapper(DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
dropDataWrapper
public final void dropDataWrapper(DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
createRole
public final void createRole(DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
readWith
public final void readWith(Role role) throws ParseException
- Throws:
ParseException
-
dropRole
public final void dropRole(DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
createPolicy
public final void createPolicy(DatabaseStore dbStore, ParseInfo info) throws ParseException
- Throws:
ParseException
-
dropPolicy
public final void dropPolicy(DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
grant
public final void grant(DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
revokeGrant
public final void revokeGrant(DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
createServer
public final void createServer(DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
dropServer
public final void dropServer(DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
createDDLProcedure
public final CreateProcedureCommand createDDLProcedure(DatabaseStore dbStore, ParseInfo info) throws ParseException
- Throws:
ParseException
-
dropProcedure
public final void dropProcedure(DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
procedureParameter
public final void procedureParameter(MetadataFactory factory, Procedure proc) throws ParseException
- Throws:
ParseException
-
procedureRsColumn
public final void procedureRsColumn(MetadataFactory factory, Procedure proc) throws ParseException
- Throws:
ParseException
-
createTable
public final void createTable(DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
createForeignOrGloablTable
public final void createForeignOrGloablTable(DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
createView
public final void createView(DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
dropTableView
public final void dropTableView(DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
createForeignTempTable
public final Create createForeignTempTable(ParseInfo info) throws ParseException
- Throws:
ParseException
-
createTableBody
public final void createTableBody(Table table, MetadataFactory factory) throws ParseException
- Throws:
ParseException
-
createViewBody
public final void createViewBody(Table table, MetadataFactory factory) throws ParseException
- Throws:
ParseException
-
tableConstraint
public final void tableConstraint(MetadataFactory factory, Table table) throws ParseException
- Throws:
ParseException
-
foreignKey
public final AbstractMetadataRecord foreignKey(MetadataFactory factory, Table table, String name) throws ParseException
- Throws:
ParseException
-
primaryKey
public final AbstractMetadataRecord primaryKey(MetadataFactory factory, Table table, String name) throws ParseException
- Throws:
ParseException
-
constraint
public final AbstractMetadataRecord constraint(MetadataFactory factory, Table table, String name, ParseInfo info) throws ParseException
- Throws:
ParseException
-
columnList
public final List columnList(boolean validate, boolean asElementSymbols) throws ParseException
- Throws:
ParseException
-
createColumn
public final void createColumn(MetadataFactory factory, Table table) throws ParseException
- Throws:
ParseException
-
createViewColumn
public final void createViewColumn(MetadataFactory factory, Table table) throws ParseException
- Throws:
ParseException
-
postCreateColumn
public final void postCreateColumn(MetadataFactory factory, Table table, String element, SQLParserUtil.ParsedDataType type, boolean autoIncrement, boolean notNull) throws ParseException
- Throws:
ParseException
-
inlineConstraint
public final void inlineConstraint(MetadataFactory factory, Table table, List<String> columnName) throws ParseException
- Throws:
ParseException
-
optionsClause
public final void optionsClause(AbstractMetadataRecord record, NamespaceContainer namespaceContainer) throws ParseException
- Throws:
ParseException
-
optionPair
public final void optionPair(AbstractMetadataRecord record, NamespaceContainer namespaceContainer) throws ParseException
- Throws:
ParseException
-
alterOptionPair
public final void alterOptionPair(String objectName, Database.ResourceType type, DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
alterStatement
public final void alterStatement(DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
alterTable
public final void alterTable(DatabaseStore dbStore, ParseInfo info) throws ParseException
- Throws:
ParseException
-
alterRenameTable
public final void alterRenameTable(String objectName, Database.ResourceType type, DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
alterAddConstraint
public final void alterAddConstraint(String objectName, Database.ResourceType type, DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
alterAddColumn
public final void alterAddColumn(String objectName, Database.ResourceType type, DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
alterDropColumn
public final void alterDropColumn(String objectName, Database.ResourceType type, DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
alterColumn
public final void alterColumn(String objectName, Database.ResourceType type, Database.ResourceType childType, DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
alterRenameColumn
public final void alterRenameColumn(String objectName, Database.ResourceType type, DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
alterProcedure
public final void alterProcedure(DatabaseStore dbStore, ParseInfo info) throws ParseException
- Throws:
ParseException
-
alterTrigger
public final void alterTrigger(DatabaseStore dbStore, ParseInfo info) throws ParseException
- Throws:
ParseException
-
alterServer
public final void alterServer(DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
alterTranslator
public final void alterTranslator(DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
alterDatabase
public final void alterDatabase(DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
alterOptionsList
public final void alterOptionsList(String objectName, Database.ResourceType type, DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
dropOption
public final void dropOption(String objectName, Database.ResourceType type, DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
addSetOption
public final void addSetOption(String objectName, Database.ResourceType type, DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
alterChildOptionsList
public final void alterChildOptionsList(String objectName, Database.ResourceType type, String childName, Database.ResourceType childType, DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
dropChildOption
public final void dropChildOption(String objectName, Database.ResourceType type, String childName, Database.ResourceType childType, DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
addSetChildOption
public final void addSetChildOption(String objectName, Database.ResourceType type, String childName, Database.ResourceType childType, DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
alterChildOptionPair
public final void alterChildOptionPair(String objectName, Database.ResourceType type, String childName, Database.ResourceType childType, DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
importSchema
public final void importSchema(DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
importDatabase
public final void importDatabase(DatabaseStore dbStore) throws ParseException
- Throws:
ParseException
-
identifierList
public final void identifierList(List<String> strings) throws ParseException
- Throws:
ParseException
-
readGrantTypes
public final void readGrantTypes(ArrayList<Permission.Privilege> privileges) throws ParseException
- Throws:
ParseException
-
ReInit
public void ReInit(InputStream stream)
Reinitialise.
-
ReInit
public void ReInit(InputStream stream, String encoding)
Reinitialise.
-
ReInit
public void ReInit(Reader stream)
Reinitialise.
-
ReInit
public void ReInit(SQLParserTokenManager tm)
Reinitialise.
-
getNextToken
public final Token getNextToken()
Get the next Token.
-
getToken
public final Token getToken(int index)
Get the specific Token.
-
generateParseException
public ParseException generateParseException()
Generate ParseException.
-
enable_tracing
public final void enable_tracing()
Enable tracing.
-
disable_tracing
public final void disable_tracing()
Disable tracing.
-
-