public class DatabaseModelVisitor extends Object implements StatementVisitor, MessageSource
Modifier and Type | Field and Description |
---|---|
protected String |
dbOwner
The database owner, if specified via the configuration.
|
protected String |
dbVersion
The database version, if specified via the configuration.
|
protected Map<Column,Integer> |
eaAttributeIDByColumn |
protected EASupportedDBMS |
eadbms |
protected Map<Table,Integer> |
eaElementIDByTable |
protected SortedMap<Integer,SortedMap<PackageInfo,Integer>> |
eaPkgIdByModelPkg_byDatabaseModelSubPkgId
key: database model sub package; value: {key: application schema package;
value: corresponding EA package within the database model sub package}
|
protected boolean |
establishPackageHierarchy |
protected Model |
model |
protected Options |
options |
protected org.sparx.Repository |
repository |
protected ShapeChangeResult |
result |
protected String |
tablespace
The tablespace, if specified via the configuration.
|
protected Integer |
tablesPkgID |
Constructor and Description |
---|
DatabaseModelVisitor(SqlDdl sqlddl,
org.sparx.Repository repository) |
Modifier and Type | Method and Description |
---|---|
void |
initialize() |
String |
message(int mnr)
Return a message for a message number.
|
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 createTable) |
void |
visit(Insert insert) |
void |
visit(List<Statement> stmts) |
protected Options options
protected ShapeChangeResult result
protected Model model
protected org.sparx.Repository repository
protected String dbOwner
null
.protected String dbVersion
null
.protected String tablespace
null
.protected EASupportedDBMS eadbms
protected boolean establishPackageHierarchy
protected Integer tablesPkgID
protected SortedMap<Integer,SortedMap<PackageInfo,Integer>> eaPkgIdByModelPkg_byDatabaseModelSubPkgId
public DatabaseModelVisitor(SqlDdl sqlddl, org.sparx.Repository repository)
public void visit(Insert insert)
visit
in interface StatementVisitor
public void visit(CreateTable createTable)
visit
in interface StatementVisitor
public void visit(CreateIndex createIndex)
visit
in interface StatementVisitor
public void visit(Alter alter)
visit
in interface StatementVisitor
public void visit(Comment comment)
visit
in interface StatementVisitor
public void visit(List<Statement> stmts)
visit
in interface StatementVisitor
public void postprocess()
StatementVisitor
postprocess
in interface StatementVisitor
public String message(int mnr)
MessageSource
message
in interface MessageSource
Copyright © 2018. All rights reserved.