public interface Parser
A SQL parser.
- Author:
- Lukas Eder
- 
Method SummaryModifier and TypeMethodDescription@NotNull QueriesParse a SQL string into a set ofQueries.@NotNull QueriesParse a SQL string with bind variables into a set ofQueries.@NotNull ConditionparseCondition(String sql) Parse a SQL string into aCondition.@NotNull ConditionparseCondition(String sql, Object... bindings) Parse a SQL string with bind variables into aCondition.@NotNull Field<?> parseField(String sql) Parse a SQL string into aField.@NotNull Field<?> parseField(String sql, Object... bindings) Parse a SQL string with bind variables into aField.@NotNull NameParse a SQL string into a nameName.@NotNull NameParse a SQL string with bind variables into a nameName.@Nullable QueryparseQuery(String sql) Parse a SQL string into aQuery.@Nullable QueryparseQuery(String sql, Object... bindings) Parse a SQL string with bind variables into aQuery.@Nullable ResultQuery<?> parseResultQuery(String sql) Parse a SQL string into aResultQuery.@Nullable ResultQuery<?> parseResultQuery(String sql, Object... bindings) Parse a SQL string with bind variables into aResultQuery.@NotNull RowParse a SQL string into aRow.@NotNull RowParse a SQL string with bind variables into aRow.@Nullable Select<?> parseSelect(String sql) Parse a SQL string into aSelectstatement.@Nullable Select<?> parseSelect(String sql, Object... bindings) Parse a SQL string into aSelectstatement.@Nullable StatementparseStatement(String sql) Parse a SQL string into a proceduralStatement.@Nullable StatementparseStatement(String sql, Object... bindings) Parse a SQL string with bind variables into a proceduralStatement.@NotNull BlockparseStatements(String sql) Parse a SQL string into a proceduralBlockstatement.@NotNull BlockparseStatements(String sql, Object... bindings) Parse a SQL string with bind variables into a proceduralBlockstatement.@NotNull Table<?> parseTable(String sql) Parse a SQL string into aTable.@NotNull Table<?> parseTable(String sql, Object... bindings) Parse a SQL string with bind variables into aTable.
- 
Method Details- 
parseParse a SQL string into a set ofQueries.- Parameters:
- sql- The SQL string
- Throws:
- ParserException- If the SQL string could not be parsed into a set of- Queries.
 
- 
parse@NotNull @Support @PlainSQL @NotNull Queries parse(String sql, Object... bindings) throws ParserException Parse a SQL string with bind variables into a set ofQueries.- Parameters:
- sql- The SQL string
- bindings- The bind variables
- Throws:
- ParserException- If the SQL string could not be parsed into a set of- Queries.
 
- 
parseQueryParse a SQL string into aQuery.- Parameters:
- sql- The SQL string
- Throws:
- ParserException- If the SQL string could not be parsed into a- Query.
 
- 
parseQuery@Nullable @Support @PlainSQL @Nullable Query parseQuery(String sql, Object... bindings) throws ParserException Parse a SQL string with bind variables into aQuery.- Parameters:
- sql- The SQL string
- bindings- The bind variables
- Throws:
- ParserException- If the SQL string could not be parsed into a- Query.
 
- 
parseStatementParse a SQL string into a proceduralStatement.- Parameters:
- sql- The SQL string
- Throws:
- ParserException- If the SQL string could not be parsed into a procedural- Statement.
 
- 
parseStatement@Nullable @Support @PlainSQL @Nullable Statement parseStatement(String sql, Object... bindings) throws ParserException Parse a SQL string with bind variables into a proceduralStatement.- Parameters:
- sql- The SQL string
- bindings- The bind variables
- Throws:
- ParserException- If the SQL string could not be parsed into a procedural- Statement.
 
- 
parseStatementsParse a SQL string into a proceduralBlockstatement.- Parameters:
- sql- The SQL string
- Throws:
- ParserException- If the SQL string could not be parsed into a procedural- Blockstatement.
 
- 
parseStatements@NotNull @Support @PlainSQL @Pro @NotNull Block parseStatements(String sql, Object... bindings) throws ParserException Parse a SQL string with bind variables into a proceduralBlockstatement.- Parameters:
- sql- The SQL string
- bindings- The bind variables
- Throws:
- ParserException- If the SQL string could not be parsed into a procedural- Blockstatement.
 
- 
parseResultQuery@Nullable @Support @PlainSQL @Nullable ResultQuery<?> parseResultQuery(String sql) throws ParserException Parse a SQL string into aResultQuery.- Parameters:
- sql- The SQL string
- Throws:
- ParserException- If the SQL string could not be parsed into a- ResultQuery.
 
- 
parseResultQuery@Nullable @Support @PlainSQL @Nullable ResultQuery<?> parseResultQuery(String sql, Object... bindings) throws ParserException Parse a SQL string with bind variables into aResultQuery.- Parameters:
- sql- The SQL string
- bindings- The bind variables
- Throws:
- ParserException- If the SQL string could not be parsed into a- ResultQuery.
 
- 
parseSelectParse a SQL string into aSelectstatement.- Parameters:
- sql- The SQL string
- Throws:
- ParserException- If the SQL string could not be parsed into a- Selectstatement.
 
- 
parseSelect@Nullable @Support @PlainSQL @Nullable Select<?> parseSelect(String sql, Object... bindings) throws ParserException Parse a SQL string into aSelectstatement.- Parameters:
- sql- The SQL string
- bindings- The bind variables
- Throws:
- ParserException- If the SQL string could not be parsed into a- Selectstatement.
 
- 
parseTableParse a SQL string into aTable.- Parameters:
- sql- The SQL string
- Throws:
- ParserException- If the SQL string could not be parsed into a- Table.
 
- 
parseTable@NotNull @Support @PlainSQL @NotNull Table<?> parseTable(String sql, Object... bindings) throws ParserException Parse a SQL string with bind variables into aTable.- Parameters:
- sql- The SQL string
- bindings- The bind variables
- Throws:
- ParserException- If the SQL string could not be parsed into a- Table.
 
- 
parseFieldParse a SQL string into aField.- Parameters:
- sql- The SQL string
- Throws:
- ParserException- If the SQL string could not be parsed into a- Field.
 
- 
parseField@NotNull @Support @PlainSQL @NotNull Field<?> parseField(String sql, Object... bindings) throws ParserException Parse a SQL string with bind variables into aField.- Parameters:
- sql- The SQL string
- bindings- The bind variables
- Throws:
- ParserException- If the SQL string could not be parsed into a- Field.
 
- 
parseRowParse a SQL string into aRow.- Parameters:
- sql- The SQL string
- Throws:
- ParserException- If the SQL string could not be parsed into a- Row.
 
- 
parseRow@NotNull @Support @PlainSQL @NotNull Row parseRow(String sql, Object... bindings) throws ParserException Parse a SQL string with bind variables into aRow.- Parameters:
- sql- The SQL string
- bindings- The bind variables
- Throws:
- ParserException- If the SQL string could not be parsed into a- Row.
 
- 
parseConditionParse a SQL string into aCondition.- Parameters:
- sql- The SQL string
- Throws:
- ParserException- If the SQL string could not be parsed into a- Condition.
 
- 
parseCondition@NotNull @Support @PlainSQL @NotNull Condition parseCondition(String sql, Object... bindings) throws ParserException Parse a SQL string with bind variables into aCondition.- Parameters:
- sql- The SQL string
- bindings- The bind variables
- Throws:
- ParserException- If the SQL string could not be parsed into a- Condition.
 
- 
parseNameParse a SQL string into a nameName.- Parameters:
- sql- The SQL string
- Throws:
- ParserException- If the SQL string could not be parsed into a name- Name.
 
- 
parseName@NotNull @Support @PlainSQL @NotNull Name parseName(String sql, Object... bindings) throws ParserException Parse a SQL string with bind variables into a nameName.- Parameters:
- sql- The SQL string
- bindings- The bind variables
- Throws:
- ParserException- If the SQL string could not be parsed into a name- Name.
 
 
-