Class SQL
java.lang.Object
org.springframework.data.relational.core.sql.SQL
Utility to create SQL
Segment
s. Typically used as entry point to the Statement Builder. Objects and dependent
objects created by the Query AST are immutable except for builders.
The Statement Builder API is intended for framework usage to produce SQL required for framework operations.
- Since:
- 1.1
- Author:
- Mark Paluch, Jens Schauder
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic BindMarker
Creates a new parameter bind marker.static BindMarker
bindMarker
(String name) Creates a new parameter bind marker associated with aname
hint.static Column
static BooleanLiteral
literalOf
(boolean value) static StringLiteral
literalOf
(CharSequence content) Creates a newStringLiteral
from thecontent
.static NumericLiteral
Creates a newNumericLiteral
from thecontent
.static <T> Literal<T>
literalOf
(T content) Creates a newLiteral
from thecontent
.static <T> Literal<T>
Creates a newNULL
Literal
.static Table
Creates a newTable
.
-
Method Details
-
column
- Parameters:
name
- column name, must not be null or empty.table
- table name, must not be null.- Returns:
- the column with
name
associated withTable
.
-
table
Creates a newTable
.- Parameters:
name
- table name, must not be null or empty.- Returns:
- the column with
name
.
-
bindMarker
Creates a new parameter bind marker.- Returns:
- a new
BindMarker
.
-
bindMarker
Creates a new parameter bind marker associated with aname
hint.- Parameters:
name
- name hint, must not be null or empty.- Returns:
- a new
BindMarker
.
-
literalOf
- Parameters:
value
- the literal content.- Returns:
- a new
BooleanLiteral
. - Since:
- 2.0
-
literalOf
Creates a newStringLiteral
from thecontent
.- Parameters:
content
- the literal content.- Returns:
- a new
StringLiteral
.
-
literalOf
Creates a newNumericLiteral
from thecontent
.- Parameters:
content
- the literal content.- Returns:
- a new
NumericLiteral
.
-
literalOf
Creates a newLiteral
from thecontent
.- Parameters:
content
- the literal content.- Returns:
- a new
Literal
.
-
nullLiteral
Creates a newNULL
Literal
.- Returns:
- a new
Literal
.
-