Class StatementBuilder
java.lang.Object
org.springframework.data.relational.core.sql.StatementBuilder
Entrypoint to build SQL statements.
- Since:
- 1.1
- Author:
- Mark Paluch
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic DeleteBuilder
delete()
Creates a newDeleteBuilder
.static DeleteBuilder.DeleteWhere
Creates a newDeleteBuilder
and declares theTable
to delete from.static InsertBuilder
insert()
Creates a newInsertBuilder
.Creates a newInsertBuilder
and declare theTable
to insert into.static SelectBuilder
select()
Creates a newSelectBuilder
.static SelectBuilder.SelectAndFrom
select
(Collection<? extends Expression> expressions) Creates a newSelectBuilder
and includes one or moreExpression
s in the select list.static SelectBuilder.SelectAndFrom
select
(Expression expression) Creates a newSelectBuilder
and includes theSELECT
columns.static SelectBuilder.SelectAndFrom
select
(Expression... expressions) Creates a newSelectBuilder
and includes one or moreSELECT
columns.static UpdateBuilder
update()
Creates a newUpdateBuilder
.static UpdateBuilder.UpdateAssign
Creates a newUpdateBuilder
and declare theTable
for the update.
-
Method Details
-
select
Creates a newSelectBuilder
and includes theSELECT
columns.- Parameters:
expression
- the select list expression.- Returns:
- the
SelectBuilder
containingExpression
. - See Also:
-
select
Creates a newSelectBuilder
and includes one or moreSELECT
columns.- Parameters:
expressions
- the select list expressions.- Returns:
- the
SelectBuilder
containingExpression
s. - See Also:
-
select
Creates a newSelectBuilder
and includes one or moreExpression
s in the select list.- Parameters:
expressions
- the expressions to include.- Returns:
- the
SelectBuilder
containingExpression
s. - See Also:
-
select
Creates a newSelectBuilder
.- Returns:
- the new
SelectBuilder
. - See Also:
-
insert
Creates a newInsertBuilder
and declare theTable
to insert into.- Parameters:
table
- the table to insert into.- Returns:
- the new
InsertBuilder
. - See Also:
-
insert
Creates a newInsertBuilder
.- Returns:
- the new
InsertBuilder
. - See Also:
-
update
Creates a newUpdateBuilder
and declare theTable
for the update.- Parameters:
table
- the table for the update.- Returns:
- the new
UpdateBuilder
. - See Also:
-
update
Creates a newUpdateBuilder
.- Returns:
- the new
UpdateBuilder
. - See Also:
-
delete
Creates a newDeleteBuilder
and declares theTable
to delete from.- Parameters:
table
- the table to delete from.- Returns:
this
builder.- See Also:
-
delete
Creates a newDeleteBuilder
.- Returns:
- the new
DeleteBuilder
. - See Also:
-