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
TheDropSchemaRendererturns 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 newDropSchemaRendererwith custom render settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DropSchemaRenderercreate()Create anDropSchemaRendererusing the default renderer configurationstatic DropSchemaRenderercreate(StringRendererConfig config)Create anDropSchemaRenderervoidvisit(Cascade cascade)Visit theCASCADEoption.voidvisit(DropSchema dropSchema)Visit aDROP SCHEMAstatement.voidvisit(Restrict restrict)Visit theRESTRICToption.voidvisit(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 newDropSchemaRendererwith custom render settings.- Parameters:
config- render configuration settings
-
-
Method Detail
-
create
public static DropSchemaRenderer create()
Create anDropSchemaRendererusing 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:DropSchemaVisitorVisit aDROP SCHEMAstatement.- Specified by:
visitin interfaceDropSchemaVisitor- Parameters:
dropSchema-DROP SCHEMAstatement to visit
-
visit
public void visit(Schema schema)
Description copied from interface:DropSchemaVisitorVisit the name of the schema to drop.- Specified by:
visitin interfaceDropSchemaVisitor- Parameters:
schema- name of the schema to visit
-
visit
public void visit(Cascade cascade)
Description copied from interface:DropSchemaVisitorVisit theCASCADEoption.- Specified by:
visitin interfaceDropSchemaVisitor- Parameters:
cascade-CASCADEoption to visit
-
visit
public void visit(Restrict restrict)
Description copied from interface:DropSchemaVisitorVisit theRESTRICToption.- Specified by:
visitin interfaceDropSchemaVisitor- Parameters:
restrict-RESTRICToption to visit
-
-