Class SQL
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 <T> Literal<T> literalOf(@Nullable T content) Creates a newLiteralfrom thecontent.static StringLiteralliteralOf(@Nullable CharSequence content) Creates a newStringLiteralfrom thecontent.static NumericLiteralCreates a newNumericLiteralfrom thecontent.static <T> Literal<T> Creates a newNULLLiteral.static TableCreates a newTable.
-
Method Details
-
column
-
table
-
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
-
nullLiteral
-