Module spring.data.relational
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 DeleteBuilderdelete()Creates a newDeleteBuilder.static DeleteBuilder.DeleteWhereCreates a newDeleteBuilderand declares theTableto delete from.static InsertBuilderinsert()Creates a newInsertBuilder.Creates a newInsertBuilderand declare theTableto insert into.static SelectBuilderselect()Creates a newSelectBuilder.static SelectBuilder.SelectAndFromselect(Collection<? extends Expression> expressions) Creates a newSelectBuilderand includes one or moreExpressions in the select list.static SelectBuilder.SelectAndFromselect(Expression expression) Creates a newSelectBuilderand includes theSELECTcolumns.static SelectBuilder.SelectAndFromselect(Expression... expressions) Creates a newSelectBuilderand includes one or moreSELECTcolumns.static UpdateBuilderupdate()Creates a newUpdateBuilder.static UpdateBuilder.UpdateAssignCreates a newUpdateBuilderand declare theTablefor the update.
-
Method Details
-
select
Creates a newSelectBuilderand includes theSELECTcolumns.- Parameters:
expression- the select list expression.- Returns:
- the
SelectBuildercontainingExpression. - See Also:
-
select
Creates a newSelectBuilderand includes one or moreSELECTcolumns.- Parameters:
expressions- the select list expressions.- Returns:
- the
SelectBuildercontainingExpressions. - See Also:
-
select
Creates a newSelectBuilderand includes one or moreExpressions in the select list.- Parameters:
expressions- the expressions to include.- Returns:
- the
SelectBuildercontainingExpressions. - See Also:
-
select
Creates a newSelectBuilder.- Returns:
- the new
SelectBuilder. - See Also:
-
insert
Creates a newInsertBuilderand declare theTableto 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 newUpdateBuilderand declare theTablefor 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 newDeleteBuilderand declares theTableto delete from.- Parameters:
table- the table to delete from.- Returns:
thisbuilder.- See Also:
-
delete
Creates a newDeleteBuilder.- Returns:
- the new
DeleteBuilder. - See Also:
-