public abstract class SQL extends Object
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.Expressions
,
Conditions
,
Functions
,
StatementBuilder
Modifier and Type | Method and Description |
---|---|
static BindMarker |
bindMarker()
Creates a new parameter bind marker.
|
static BindMarker |
bindMarker(String name)
Creates a new parameter bind marker associated with a
name hint. |
static Column |
column(String name,
Table table)
|
static StringLiteral |
literalOf(CharSequence content)
Creates a new
StringLiteral from the content . |
static NumericLiteral |
literalOf(Number content)
Creates a new
NumericLiteral from the content . |
static <T> Literal<T> |
literalOf(T content)
Creates a new
Literal from the content . |
static <T> Literal<T> |
nullLiteral()
Creates a new
NULL Literal . |
static Table |
table(String name)
Creates a new
Table . |
public static Column column(String name, Table table)
name
- column name, must not be null or empty.table
- table name, must not be null.name
associated with Table
.public static Table table(String name)
Table
.name
- table name, must not be null or empty.name
.public static BindMarker bindMarker()
BindMarker
.public static BindMarker bindMarker(String name)
name
hint.name
- name hint, must not be null or empty.BindMarker
.public static StringLiteral literalOf(@Nullable CharSequence content)
StringLiteral
from the content
.content
- the literal content.StringLiteral
.public static NumericLiteral literalOf(@Nullable Number content)
NumericLiteral
from the content
.content
- the literal content.NumericLiteral
.public static <T> Literal<T> literalOf(@Nullable T content)
Literal
from the content
.content
- the literal content.Literal
.Copyright © 2017–2020 Pivotal Software, Inc.. All rights reserved.