Top Description Methods
org.jooq

public Interface Parser

Known Direct Implementers
org.jooq.impl.ParserImpl
Imports
org.jooq.impl.ParserException, org.jetbrains.annotations.NotNull, .Nullable

A SQL parser.
Author
Lukas Eder

Method Summary

Modifier and TypeMethod and Description
public @NotNull Queries
parse(String
The SQL string
sql
)

Parse a SQL string to a set of queries.

public @NotNull Queries
parse(String
The SQL string
sql
,
Object...
The bind variables
bindings
)

Parse a SQL string with bind variables to a set of queries.

public @NotNull Condition
parseCondition(String
The SQL string
sql
)

Deprecated as a consequence of Condition being deprecated.
Parse a SQL string to a condition.
public @NotNull Condition
parseCondition(String
The SQL string
sql
,
Object...
The bind variables
bindings
)

Deprecated as a consequence of Condition being deprecated.
Parse a SQL string with bind variables to a condition.
public @NotNull Field<?>
parseField(String
The SQL string
sql
)

Deprecated as a consequence of Field being deprecated.
Parse a SQL string to a field.
public @NotNull Field<?>
parseField(String
The SQL string
sql
,
Object...
The bind variables
bindings
)

Deprecated as a consequence of Field being deprecated.
Parse a SQL string with bind variables to a field.
public @NotNull Name
parseName(String
The SQL string
sql
)

Parse a SQL string to a name.

public @NotNull Name
parseName(String
The SQL string
sql
,
Object...
The bind variables
bindings
)

Parse a SQL string with bind variables to a name.

public @Nullable Query
parseQuery(String
The SQL string
sql
)

Parse a SQL string to a query.

public @Nullable Query
parseQuery(String
The SQL string
sql
,
Object...
The bind variables
bindings
)

Parse a SQL string with bind variables to a query.

public @Nullable ResultQuery<?>
parseResultQuery(String
The SQL string
sql
)

Parse a SQL string to a result query.

public @Nullable ResultQuery<?>
parseResultQuery(String
The SQL string
sql
,
Object...
The bind variables
bindings
)

Parse a SQL string with bind variables to a result query.

public @NotNull Row
parseRow(String
The SQL string
sql
)

Parse a SQL string to a row.

public @NotNull Row
parseRow(String
The SQL string
sql
,
Object...
The bind variables
bindings
)

Parse a SQL string with bind variables to a row.

public @Nullable Select<?>
parseSelect(String
The SQL string
sql
)

Parse a SQL string to a select statement.

public @Nullable Select<?>
parseSelect(String
The SQL string
sql
,
Object...
The bind variables
bindings
)

Parse a SQL string to a select statement.

public @Nullable Statement
parseStatement(String
The SQL string
sql
)

Parse a SQL string to a procedural statement.

public @Nullable Statement
parseStatement(String
The SQL string
sql
,
Object...
The bind variables
bindings
)

Parse a SQL string with bind variables to a procedural statement.

public @NotNull Table<?>
parseTable(String
The SQL string
sql
)

Parse a SQL string to a table.

public @NotNull Table<?>
parseTable(String
The SQL string
sql
,
Object...
The bind variables
bindings
)

Parse a SQL string with bind variables to a table.

Method Detail

parseback to summary
public @NotNull Queries parse(String sql) throws ParserException

Parse a SQL string to a set of queries.

Parameters
sql:String

The SQL string

Annotations
@NotNull
@Support
@PlainSQL
Exceptions
ParserException:
If the SQL string could not be parsed.
parseback to summary
public @NotNull Queries parse(String sql, Object... bindings) throws ParserException

Parse a SQL string with bind variables to a set of queries.

Parameters
sql:String

The SQL string

bindings:Object[]

The bind variables

Annotations
@NotNull
@Support
@PlainSQL
Exceptions
ParserException:
If the SQL string could not be parsed.
parseConditionback to summary
public @NotNull Condition parseCondition(String sql) throws ParserException

Deprecated

as a consequence of Condition being deprecated. See corresponding docs for further information.

Parse a SQL string to a condition.

Parameters
sql:String

The SQL string

Annotations
@NotNull
@Support
@PlainSQL
Exceptions
ParserException:
If the SQL string could not be parsed.
parseConditionback to summary
public @NotNull Condition parseCondition(String sql, Object... bindings) throws ParserException

Deprecated

as a consequence of Condition being deprecated. See corresponding docs for further information.

Parse a SQL string with bind variables to a condition.

Parameters
sql:String

The SQL string

bindings:Object[]

The bind variables

Annotations
@NotNull
@Support
@PlainSQL
Exceptions
ParserException:
If the SQL string could not be parsed.
parseFieldback to summary
public @NotNull Field<?> parseField(String sql) throws ParserException

Deprecated

as a consequence of Field being deprecated. See corresponding docs for further information.

Parse a SQL string to a field.

Parameters
sql:String

The SQL string

Annotations
@NotNull
@Support
@PlainSQL
Exceptions
ParserException:
If the SQL string could not be parsed.
parseFieldback to summary
public @NotNull Field<?> parseField(String sql, Object... bindings) throws ParserException

Deprecated

as a consequence of Field being deprecated. See corresponding docs for further information.

Parse a SQL string with bind variables to a field.

Parameters
sql:String

The SQL string

bindings:Object[]

The bind variables

Annotations
@NotNull
@Support
@PlainSQL
Exceptions
ParserException:
If the SQL string could not be parsed.
parseNameback to summary
public @NotNull Name parseName(String sql) throws ParserException

Parse a SQL string to a name.

Parameters
sql:String

The SQL string

Annotations
@NotNull
@Support
@PlainSQL
Exceptions
ParserException:
If the SQL string could not be parsed.
parseNameback to summary
public @NotNull Name parseName(String sql, Object... bindings) throws ParserException

Parse a SQL string with bind variables to a name.

Parameters
sql:String

The SQL string

bindings:Object[]

The bind variables

Annotations
@NotNull
@Support
@PlainSQL
Exceptions
ParserException:
If the SQL string could not be parsed.
parseQueryback to summary
public @Nullable Query parseQuery(String sql) throws ParserException

Parse a SQL string to a query.

Parameters
sql:String

The SQL string

Annotations
@Nullable
@Support
@PlainSQL
Exceptions
ParserException:
If the SQL string could not be parsed.
parseQueryback to summary
public @Nullable Query parseQuery(String sql, Object... bindings) throws ParserException

Parse a SQL string with bind variables to a query.

Parameters
sql:String

The SQL string

bindings:Object[]

The bind variables

Annotations
@Nullable
@Support
@PlainSQL
Exceptions
ParserException:
If the SQL string could not be parsed.
parseResultQueryback to summary
public @Nullable ResultQuery<?> parseResultQuery(String sql) throws ParserException

Parse a SQL string to a result query.

Parameters
sql:String

The SQL string

Annotations
@Nullable
@Support
@PlainSQL
Exceptions
ParserException:
If the SQL string could not be parsed.
parseResultQueryback to summary
public @Nullable ResultQuery<?> parseResultQuery(String sql, Object... bindings) throws ParserException

Parse a SQL string with bind variables to a result query.

Parameters
sql:String

The SQL string

bindings:Object[]

The bind variables

Annotations
@Nullable
@Support
@PlainSQL
Exceptions
ParserException:
If the SQL string could not be parsed.
parseRowback to summary
public @NotNull Row parseRow(String sql) throws ParserException

Parse a SQL string to a row.

Parameters
sql:String

The SQL string

Annotations
@NotNull
@Support
@PlainSQL
Exceptions
ParserException:
If the SQL string could not be parsed.
parseRowback to summary
public @NotNull Row parseRow(String sql, Object... bindings) throws ParserException

Parse a SQL string with bind variables to a row.

Parameters
sql:String

The SQL string

bindings:Object[]

The bind variables

Annotations
@NotNull
@Support
@PlainSQL
Exceptions
ParserException:
If the SQL string could not be parsed.
parseSelectback to summary
public @Nullable Select<?> parseSelect(String sql) throws ParserException

Parse a SQL string to a select statement.

Parameters
sql:String

The SQL string

Annotations
@Nullable
@Support
@PlainSQL
Exceptions
ParserException:
If the SQL string could not be parsed.
parseSelectback to summary
public @Nullable Select<?> parseSelect(String sql, Object... bindings) throws ParserException

Parse a SQL string to a select statement.

Parameters
sql:String

The SQL string

bindings:Object[]

The bind variables

Annotations
@Nullable
@Support
@PlainSQL
Exceptions
ParserException:
If the SQL string could not be parsed.
parseStatementback to summary
public @Nullable Statement parseStatement(String sql) throws ParserException

Parse a SQL string to a procedural statement.

Parameters
sql:String

The SQL string

Annotations
@Nullable
@Support
@PlainSQL
Exceptions
ParserException:
If the SQL string could not be parsed.
parseStatementback to summary
public @Nullable Statement parseStatement(String sql, Object... bindings) throws ParserException

Parse a SQL string with bind variables to a procedural statement.

Parameters
sql:String

The SQL string

bindings:Object[]

The bind variables

Annotations
@Nullable
@Support
@PlainSQL
Exceptions
ParserException:
If the SQL string could not be parsed.
parseTableback to summary
public @NotNull Table<?> parseTable(String sql) throws ParserException

Parse a SQL string to a table.

Parameters
sql:String

The SQL string

Annotations
@NotNull
@Support
@PlainSQL
Exceptions
ParserException:
If the SQL string could not be parsed.
parseTableback to summary
public @NotNull Table<?> parseTable(String sql, Object... bindings) throws ParserException

Parse a SQL string with bind variables to a table.

Parameters
sql:String

The SQL string

bindings:Object[]

The bind variables

Annotations
@NotNull
@Support
@PlainSQL
Exceptions
ParserException:
If the SQL string could not be parsed.