Class SqlRenderer
java.lang.Object
org.springframework.data.relational.core.sql.render.SqlRenderer
- All Implemented Interfaces:
Renderer
- Since:
- 1.1
- Author:
- Mark Paluch, Jens Schauder
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic SqlRenderer
create()
Creates a newSqlRenderer
.static SqlRenderer
create
(RenderContext context) Creates a newSqlRenderer
using aRenderContext
.Render theDelete
AST into a SQL statement.Render theInsert
AST into a SQL statement.Render theSelect
AST into a SQL statement.Render theUpdate
AST into a SQL statement.static String
Renders aDelete
statement into its SQL representation.static String
Renders aInsert
statement into its SQL representation.static String
Renders aSelect
statement into its SQL representation.static String
Renders aUpdate
statement into its SQL representation.
-
Method Details
-
create
Creates a newSqlRenderer
.- Returns:
- the renderer.
-
create
Creates a newSqlRenderer
using aRenderContext
.- Parameters:
context
- must not be null.- Returns:
- the renderer.
-
toString
Renders aSelect
statement into its SQL representation.- Parameters:
select
- must not be null.- Returns:
- the rendered statement.
-
toString
Renders aInsert
statement into its SQL representation.- Parameters:
insert
- must not be null.- Returns:
- the rendered statement.
-
toString
Renders aUpdate
statement into its SQL representation.- Parameters:
update
- must not be null.- Returns:
- the rendered statement.
-
toString
Renders aDelete
statement into its SQL representation.- Parameters:
delete
- must not be null.- Returns:
- the rendered statement.
-
render
Render theSelect
AST into a SQL statement. -
render
Render theInsert
AST into a SQL statement. -
render
Render theUpdate
AST into a SQL statement. -
render
Render theDelete
AST into a SQL statement.
-