public class DdlVisitor extends Object implements StatementVisitor
NOTE: Database system specific visitors should be added as needed, to take into account any database system specific syntax.
Modifier and Type | Field and Description |
---|---|
protected String |
crlf |
protected String |
indent |
protected StringBuffer |
sb |
protected SqlDdl |
sqlddl |
Constructor and Description |
---|
DdlVisitor(String crlf,
String indent,
SqlDdl sqlddl) |
Modifier and Type | Method and Description |
---|---|
String |
getDdl() |
void |
postprocess()
Signals the visitor that all statements have been visited, so that any
necessary postprocessing can be performed.
|
void |
visit(Alter alter) |
void |
visit(Comment comment) |
void |
visit(CreateIndex createIndex) |
void |
visit(CreateTable ct) |
void |
visit(Insert insert) |
void |
visit(List<Statement> stmts) |
protected StringBuffer sb
protected String crlf
protected String indent
protected SqlDdl sqlddl
public void visit(Insert insert)
visit
in interface StatementVisitor
public void visit(CreateIndex createIndex)
visit
in interface StatementVisitor
public void visit(CreateTable ct)
visit
in interface StatementVisitor
public void visit(Alter alter)
visit
in interface StatementVisitor
public void visit(List<Statement> stmts)
visit
in interface StatementVisitor
public String getDdl()
public void visit(Comment comment)
visit
in interface StatementVisitor
public void postprocess()
StatementVisitor
postprocess
in interface StatementVisitor
Copyright © 2018. All rights reserved.