Class DropSchemaRenderer
- java.lang.Object
-
- com.exasol.sql.rendering.AbstractFragmentRenderer
-
- com.exasol.sql.ddl.drop.rendering.DropSchemaRenderer
-
- All Implemented Interfaces:
DropSchemaVisitor
,FragmentRenderer
public class DropSchemaRenderer extends AbstractFragmentRenderer implements DropSchemaVisitor
TheDropSchemaRenderer
turns SQL statement structures in to SQL strings.
-
-
Field Summary
-
Fields inherited from class com.exasol.sql.rendering.AbstractFragmentRenderer
config
-
-
Constructor Summary
Constructors Constructor Description DropSchemaRenderer(StringRendererConfig config)
Create a newDropSchemaRenderer
with custom render settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DropSchemaRenderer
create()
Create anDropSchemaRenderer
using the default renderer configurationstatic DropSchemaRenderer
create(StringRendererConfig config)
Create anDropSchemaRenderer
void
visit(Cascade cascade)
Visit theCASCADE
option.void
visit(DropSchema dropSchema)
Visit aDROP SCHEMA
statement.void
visit(Restrict restrict)
Visit theRESTRICT
option.void
visit(Schema schema)
Visit the name of the schema to drop.-
Methods inherited from class com.exasol.sql.rendering.AbstractFragmentRenderer
append, append, appendAutoQuoted, appendCommaWhenNeeded, appendKeyWord, appendListOfValueExpressions, appendRenderedValueExpression, appendSpace, appendValueTableRow, endParenthesis, render, setLastVisited, startParenthesis
-
-
-
-
Constructor Detail
-
DropSchemaRenderer
public DropSchemaRenderer(StringRendererConfig config)
Create a newDropSchemaRenderer
with custom render settings.- Parameters:
config
- render configuration settings
-
-
Method Detail
-
create
public static DropSchemaRenderer create()
Create anDropSchemaRenderer
using the default renderer configuration- Returns:
- DROP SCHEMA renderer
-
create
public static DropSchemaRenderer create(StringRendererConfig config)
Create anDropSchemaRenderer
- Parameters:
config
- renderer configuration- Returns:
- DROP SCHEMA renderer
-
visit
public void visit(DropSchema dropSchema)
Description copied from interface:DropSchemaVisitor
Visit aDROP SCHEMA
statement.- Specified by:
visit
in interfaceDropSchemaVisitor
- Parameters:
dropSchema
-DROP SCHEMA
statement to visit
-
visit
public void visit(Schema schema)
Description copied from interface:DropSchemaVisitor
Visit the name of the schema to drop.- Specified by:
visit
in interfaceDropSchemaVisitor
- Parameters:
schema
- name of the schema to visit
-
visit
public void visit(Cascade cascade)
Description copied from interface:DropSchemaVisitor
Visit theCASCADE
option.- Specified by:
visit
in interfaceDropSchemaVisitor
- Parameters:
cascade
-CASCADE
option to visit
-
visit
public void visit(Restrict restrict)
Description copied from interface:DropSchemaVisitor
Visit theRESTRICT
option.- Specified by:
visit
in interfaceDropSchemaVisitor
- Parameters:
restrict
-RESTRICT
option to visit
-
-