java.lang.Object
org.springframework.data.relational.core.sql.SQL
Utility to create SQL
Segments. 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 BindMarkerCreates a new parameter bind marker.static BindMarkerbindMarker(String name) Creates a new parameter bind marker associated with anamehint.static Columnstatic BooleanLiteralliteralOf(boolean value) static StringLiteralliteralOf(CharSequence content) Creates a newStringLiteralfrom thecontent.static NumericLiteralCreates a newNumericLiteralfrom thecontent.static <T> Literal<T>literalOf(T content) Creates a newLiteralfrom thecontent.static <T> Literal<T>Creates a newNULLLiteral.static TableCreates 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
nameassociated 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 anamehint.- 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 newStringLiteralfrom thecontent.- Parameters:
content- the literal content.- Returns:
- a new
StringLiteral.
-
literalOf
Creates a newNumericLiteralfrom thecontent.- Parameters:
content- the literal content.- Returns:
- a new
NumericLiteral.
-
literalOf
Creates a newLiteralfrom thecontent.- Parameters:
content- the literal content.- Returns:
- a new
Literal.
-
nullLiteral
Creates a newNULLLiteral.- Returns:
- a new
Literal.
-