public class SqlRenderer extends Object implements Renderer
RenderContext
Modifier and Type | Method and Description |
---|---|
static SqlRenderer |
create()
Creates a new
SqlRenderer . |
static SqlRenderer |
create(RenderContext context)
Creates a new
SqlRenderer using a RenderContext . |
String |
render(Delete delete)
Render the
Delete AST into a SQL statement. |
String |
render(Insert insert)
Render the
Insert AST into a SQL statement. |
String |
render(Select select)
Render the
Select AST into a SQL statement. |
String |
render(Update update)
Render the
Update AST into a SQL statement. |
static String |
toString(Delete delete)
Renders a
Delete statement into its SQL representation. |
static String |
toString(Insert insert)
Renders a
Insert statement into its SQL representation. |
static String |
toString(Select select)
Renders a
Select statement into its SQL representation. |
static String |
toString(Update update)
Renders a
Update statement into its SQL representation. |
public static SqlRenderer create()
SqlRenderer
.public static SqlRenderer create(RenderContext context)
SqlRenderer
using a RenderContext
.context
- must not be null.public static String toString(Select select)
Select
statement into its SQL representation.select
- must not be null.public static String toString(Insert insert)
Insert
statement into its SQL representation.insert
- must not be null.public static String toString(Update update)
Update
statement into its SQL representation.update
- must not be null.public static String toString(Delete delete)
Delete
statement into its SQL representation.delete
- must not be null.Copyright © 2017–2020 Pivotal Software, Inc.. All rights reserved.