-
public interface Parser
This is experimental functionality.While the parser API will probably not change between versions, the functionality itself may be subject to change in future releases.
- Author:
- Lukas Eder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.Statement
parseStatement(String sql)
Parse a SQL string to a procedural statement.Statement
parseStatement(String sql, Object... bindings)
Parse a SQL string with bind variables to a procedural statement.Block
parseStatements(String sql)
Parse a SQL string to a set of procedural statements.Block
parseStatements(String sql, Object... bindings)
Parse a SQL string with bind variables to a set of procedural statements.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.
-
-
-
Method Detail
-
parse
@Support @PlainSQL Queries parse(String sql) throws ParserException
Parse a SQL string to a set of queries.- Parameters:
sql
- The SQL string- Throws:
ParserException
- If the SQL string could not be parsed.
-
parse
@Support @PlainSQL Queries parse(String sql, Object... bindings) throws ParserException
Parse a SQL string with bind variables to a set of queries.- Parameters:
sql
- The SQL stringbindings
- The bind variables- Throws:
ParserException
- If the SQL string could not be parsed.
-
parseQuery
@Support @PlainSQL Query parseQuery(String sql) throws ParserException
Parse a SQL string to a query.- Parameters:
sql
- The SQL string- Throws:
ParserException
- If the SQL string could not be parsed.
-
parseQuery
@Support @PlainSQL Query parseQuery(String sql, Object... bindings) throws ParserException
Parse a SQL string with bind variables to a query.- Parameters:
sql
- The SQL stringbindings
- The bind variables- Throws:
ParserException
- If the SQL string could not be parsed.
-
parseStatement
@Support @PlainSQL Statement parseStatement(String sql) throws ParserException
Parse a SQL string to a procedural statement.- Parameters:
sql
- The SQL string- Throws:
ParserException
- If the SQL string could not be parsed.
-
parseStatement
@Support @PlainSQL Statement parseStatement(String sql, Object... bindings) throws ParserException
Parse a SQL string with bind variables to a procedural statement.- Parameters:
sql
- The SQL stringbindings
- The bind variables- Throws:
ParserException
- If the SQL string could not be parsed.
-
parseStatements
@Support @PlainSQL @Pro Block parseStatements(String sql) throws ParserException
Parse a SQL string to a set of procedural statements.- Parameters:
sql
- The SQL string- Throws:
ParserException
- If the SQL string could not be parsed.
-
parseStatements
@Support @PlainSQL @Pro Block parseStatements(String sql, Object... bindings) throws ParserException
Parse a SQL string with bind variables to a set of procedural statements.- Parameters:
sql
- The SQL stringbindings
- The bind variables- Throws:
ParserException
- If the SQL string could not be parsed.
-
parseResultQuery
@Support @PlainSQL ResultQuery<?> parseResultQuery(String sql) throws ParserException
Parse a SQL string to a result query.- Parameters:
sql
- The SQL string- Throws:
ParserException
- If the SQL string could not be parsed.
-
parseResultQuery
@Support @PlainSQL ResultQuery<?> parseResultQuery(String sql, Object... bindings) throws ParserException
Parse a SQL string with bind variables to a result query.- Parameters:
sql
- The SQL stringbindings
- The bind variables- Throws:
ParserException
- If the SQL string could not be parsed.
-
parseSelect
@Support @PlainSQL Select<?> parseSelect(String sql) throws ParserException
Parse a SQL string to a select statement.- Parameters:
sql
- The SQL string- Throws:
ParserException
- If the SQL string could not be parsed.
-
parseSelect
@Support @PlainSQL Select<?> parseSelect(String sql, Object... bindings) throws ParserException
Parse a SQL string to a select statement.- Parameters:
sql
- The SQL stringbindings
- The bind variables- Throws:
ParserException
- If the SQL string could not be parsed.
-
parseTable
@Support @PlainSQL Table<?> parseTable(String sql) throws ParserException
Parse a SQL string to a table.- Parameters:
sql
- The SQL string- Throws:
ParserException
- If the SQL string could not be parsed.
-
parseTable
@Support @PlainSQL Table<?> parseTable(String sql, Object... bindings) throws ParserException
Parse a SQL string with bind variables to a table.- Parameters:
sql
- The SQL stringbindings
- The bind variables- Throws:
ParserException
- If the SQL string could not be parsed.
-
parseField
@Support @PlainSQL Field<?> parseField(String sql) throws ParserException
Parse a SQL string to a field.- Parameters:
sql
- The SQL string- Throws:
ParserException
- If the SQL string could not be parsed.
-
parseField
@Support @PlainSQL Field<?> parseField(String sql, Object... bindings) throws ParserException
Parse a SQL string with bind variables to a field.- Parameters:
sql
- The SQL stringbindings
- The bind variables- Throws:
ParserException
- If the SQL string could not be parsed.
-
parseRow
@Support @PlainSQL Row parseRow(String sql) throws ParserException
Parse a SQL string to a row.- Parameters:
sql
- The SQL string- Throws:
ParserException
- If the SQL string could not be parsed.
-
parseRow
@Support @PlainSQL Row parseRow(String sql, Object... bindings) throws ParserException
Parse a SQL string with bind variables to a row.- Parameters:
sql
- The SQL stringbindings
- The bind variables- Throws:
ParserException
- If the SQL string could not be parsed.
-
parseCondition
@Support @PlainSQL Condition parseCondition(String sql) throws ParserException
Parse a SQL string to a condition.- Parameters:
sql
- The SQL string- Throws:
ParserException
- If the SQL string could not be parsed.
-
parseCondition
@Support @PlainSQL Condition parseCondition(String sql, Object... bindings) throws ParserException
Parse a SQL string with bind variables to a condition.- Parameters:
sql
- The SQL stringbindings
- The bind variables- Throws:
ParserException
- If the SQL string could not be parsed.
-
parseName
@Support @PlainSQL Name parseName(String sql) throws ParserException
Parse a SQL string to a name.- Parameters:
sql
- The SQL string- Throws:
ParserException
- If the SQL string could not be parsed.
-
parseName
@Support @PlainSQL Name parseName(String sql, Object... bindings) throws ParserException
Parse a SQL string with bind variables to a name.- Parameters:
sql
- The SQL stringbindings
- The bind variables- Throws:
ParserException
- If the SQL string could not be parsed.
-
-