-
public interface ParserThis 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 @NotNull Queriesparse(String sql)Parse a SQL string to a set of queries.@NotNull Queriesparse(String sql, Object... bindings)Parse a SQL string with bind variables to a set of queries.@NotNull ConditionparseCondition(String sql)Parse a SQL string to a condition.@NotNull ConditionparseCondition(String sql, Object... bindings)Parse a SQL string with bind variables to a condition.@NotNull Field<?>parseField(String sql)Parse a SQL string to a field.@NotNull Field<?>parseField(String sql, Object... bindings)Parse a SQL string with bind variables to a field.@NotNull NameparseName(String sql)Parse a SQL string to a name.@NotNull NameparseName(String sql, Object... bindings)Parse a SQL string with bind variables to a name.@NotNull QueryparseQuery(String sql)Parse a SQL string to a query.@NotNull QueryparseQuery(String sql, Object... bindings)Parse a SQL string with bind variables to a query.@NotNull ResultQuery<?>parseResultQuery(String sql)Parse a SQL string to a result query.@NotNull ResultQuery<?>parseResultQuery(String sql, Object... bindings)Parse a SQL string with bind variables to a result query.@NotNull RowparseRow(String sql)Parse a SQL string to a row.@NotNull RowparseRow(String sql, Object... bindings)Parse a SQL string with bind variables to a row.@NotNull Select<?>parseSelect(String sql)Parse a SQL string to a select statement.@NotNull Select<?>parseSelect(String sql, Object... bindings)Parse a SQL string to a select statement.@NotNull StatementparseStatement(String sql)Parse a SQL string to a procedural statement.@NotNull StatementparseStatement(String sql, Object... bindings)Parse a SQL string with bind variables to a procedural statement.@NotNull BlockparseStatements(String sql)Parse a SQL string to a set of procedural statements.@NotNull BlockparseStatements(String sql, Object... bindings)Parse a SQL string with bind variables to a set of procedural statements.@NotNull Table<?>parseTable(String sql)Parse a SQL string to a table.@NotNull Table<?>parseTable(String sql, Object... bindings)Parse a SQL string with bind variables to a table.
-
-
-
Method Detail
-
parse
@NotNull @Support @PlainSQL @NotNull 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
@NotNull @Support @PlainSQL @NotNull 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
@NotNull @Support @PlainSQL @NotNull 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
@NotNull @Support @PlainSQL @NotNull 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
@NotNull @Support @PlainSQL @NotNull 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
@NotNull @Support @PlainSQL @NotNull 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
@NotNull @Support @PlainSQL @Pro @NotNull 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
@NotNull @Support @PlainSQL @Pro @NotNull 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
@NotNull @Support @PlainSQL @NotNull 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
@NotNull @Support @PlainSQL @NotNull 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
@NotNull @Support @PlainSQL @NotNull 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
@NotNull @Support @PlainSQL @NotNull 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
@NotNull @Support @PlainSQL @NotNull 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
@NotNull @Support @PlainSQL @NotNull 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
@NotNull @Support @PlainSQL @NotNull 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
@NotNull @Support @PlainSQL @NotNull 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
@NotNull @Support @PlainSQL @NotNull 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
@NotNull @Support @PlainSQL @NotNull 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
@NotNull @Support @PlainSQL @NotNull 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
@NotNull @Support @PlainSQL @NotNull 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
@NotNull @Support @PlainSQL @NotNull 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
@NotNull @Support @PlainSQL @NotNull 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.
-
-