public interface Parser
While the parser API will probably not change between versions, the functionality itself may be subject to change in future releases.
Modifier and Type | Method and Description |
---|---|
Queries |
parse(String sql)
Parse a SQL string to a set of queries.
|
Queries |
parse(String sql,
Object... bindings)
Parse a SQL string with bind variables to a set of queries.
|
Condition |
parseCondition(String sql)
Parse a SQL string to a condition.
|
Condition |
parseCondition(String sql,
Object... bindings)
Parse a SQL string with bind variables to a condition.
|
Field<?> |
parseField(String sql)
Parse a SQL string to a field.
|
Field<?> |
parseField(String sql,
Object... bindings)
Parse a SQL string with bind variables to a field.
|
Name |
parseName(String sql)
Parse a SQL string to a name.
|
Name |
parseName(String sql,
Object... bindings)
Parse a SQL string with bind variables to a name.
|
Query |
parseQuery(String sql)
Parse a SQL string to a query.
|
Query |
parseQuery(String sql,
Object... bindings)
Parse a SQL string with bind variables to a query.
|
ResultQuery<?> |
parseResultQuery(String sql)
Parse a SQL string to a result query.
|
ResultQuery<?> |
parseResultQuery(String sql,
Object... bindings)
Parse a SQL string with bind variables to a result query.
|
Row |
parseRow(String sql)
Parse a SQL string to a row.
|
Row |
parseRow(String sql,
Object... bindings)
Parse a SQL string with bind variables to a row.
|
Select<?> |
parseSelect(String sql)
Parse a SQL string to a select statement.
|
Select<?> |
parseSelect(String sql,
Object... bindings)
Parse a SQL string to a select statement.
|
Table<?> |
parseTable(String sql)
Parse a SQL string to a table.
|
Table<?> |
parseTable(String sql,
Object... bindings)
Parse a SQL string with bind variables to a table.
|
@Support @PlainSQL Queries parse(String sql) throws ParserException
sql
- The SQL stringParserException
- If the SQL string could not be parsed.@Support @PlainSQL Queries parse(String sql, Object... bindings) throws ParserException
sql
- The SQL stringbindings
- The bind variablesParserException
- If the SQL string could not be parsed.@Support @PlainSQL Query parseQuery(String sql) throws ParserException
sql
- The SQL stringParserException
- If the SQL string could not be parsed.@Support @PlainSQL Query parseQuery(String sql, Object... bindings) throws ParserException
sql
- The SQL stringbindings
- The bind variablesParserException
- If the SQL string could not be parsed.@Support @PlainSQL ResultQuery<?> parseResultQuery(String sql) throws ParserException
sql
- The SQL stringParserException
- If the SQL string could not be parsed.@Support @PlainSQL ResultQuery<?> parseResultQuery(String sql, Object... bindings) throws ParserException
sql
- The SQL stringbindings
- The bind variablesParserException
- If the SQL string could not be parsed.@Support @PlainSQL Select<?> parseSelect(String sql) throws ParserException
sql
- The SQL stringParserException
- If the SQL string could not be parsed.@Support @PlainSQL Select<?> parseSelect(String sql, Object... bindings) throws ParserException
sql
- The SQL stringbindings
- The bind variablesParserException
- If the SQL string could not be parsed.@Support @PlainSQL Table<?> parseTable(String sql) throws ParserException
sql
- The SQL stringParserException
- If the SQL string could not be parsed.@Support @PlainSQL Table<?> parseTable(String sql, Object... bindings) throws ParserException
sql
- The SQL stringbindings
- The bind variablesParserException
- If the SQL string could not be parsed.@Support @PlainSQL Field<?> parseField(String sql) throws ParserException
sql
- The SQL stringParserException
- If the SQL string could not be parsed.@Support @PlainSQL Field<?> parseField(String sql, Object... bindings) throws ParserException
sql
- The SQL stringbindings
- The bind variablesParserException
- If the SQL string could not be parsed.@Support @PlainSQL Row parseRow(String sql) throws ParserException
sql
- The SQL stringParserException
- If the SQL string could not be parsed.@Support @PlainSQL Row parseRow(String sql, Object... bindings) throws ParserException
sql
- The SQL stringbindings
- The bind variablesParserException
- If the SQL string could not be parsed.@Support @PlainSQL Condition parseCondition(String sql) throws ParserException
sql
- The SQL stringParserException
- If the SQL string could not be parsed.@Support @PlainSQL Condition parseCondition(String sql, Object... bindings) throws ParserException
sql
- The SQL stringbindings
- The bind variablesParserException
- If the SQL string could not be parsed.@Support @PlainSQL Name parseName(String sql) throws ParserException
sql
- The SQL stringParserException
- If the SQL string could not be parsed.@Support @PlainSQL Name parseName(String sql, Object... bindings) throws ParserException
sql
- The SQL stringbindings
- The bind variablesParserException
- If the SQL string could not be parsed.Copyright © 2019. All rights reserved.