public class ReplicationSchemaVisitor extends Object implements StatementVisitor, MessageSource
Modifier and Type | Field and Description |
---|---|
protected Document |
document |
protected SortedSet<ClassInfo> |
enumerationsInSchema |
protected Model |
model |
protected Options |
options |
protected ShapeChangeResult |
result |
protected Element |
root |
protected SqlBuilder |
sqlbuilder |
protected SqlDdl |
sqlddl |
protected String |
targetNamespace |
Constructor and Description |
---|
ReplicationSchemaVisitor(SqlDdl sqlddl,
SqlBuilder sqlbuilder) |
Modifier and Type | Method and Description |
---|---|
protected void |
addAttribute(Element e,
String name,
String value)
Add attribute to an element
|
Document |
getDocument() |
String |
message(int mnr)
Return a message for a message number.
|
void |
visit(Alter alter) |
void |
visit(Comment comment) |
void |
visit(CreateIndex createIndex) |
void |
visit(CreateTable createTable) |
void |
visit(Insert insert) |
void |
visit(List<Statement> stmts) |
protected SqlDdl sqlddl
protected SqlBuilder sqlbuilder
protected Options options
protected ShapeChangeResult result
protected Model model
protected Document document
protected Element root
protected String targetNamespace
public ReplicationSchemaVisitor(SqlDdl sqlddl, SqlBuilder sqlbuilder) throws ShapeChangeAbortException
ShapeChangeAbortException
public void visit(Insert insert)
visit
in interface StatementVisitor
public void visit(CreateIndex createIndex)
visit
in interface StatementVisitor
public void visit(CreateTable createTable)
visit
in interface StatementVisitor
public void visit(Alter alter)
visit
in interface StatementVisitor
public void visit(List<Statement> stmts)
visit
in interface StatementVisitor
protected void addAttribute(Element e, String name, String value)
public Document getDocument()
public void visit(Comment comment)
visit
in interface StatementVisitor
public String message(int mnr)
MessageSource
message
in interface MessageSource
Copyright © 2017. All rights reserved.