public class DdlVisitor extends Object implements StatementVisitor
NOTE: In the future, database system specific visitors may be 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 |
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
Copyright © 2017. All rights reserved.