public class ReverseDatabaseOperation extends Object implements Function<Connection,javax.jmi.reflect.RefPackage>
Convention.TAG_VALUE_DATA_LENGTH and Convention.TAG_VALUE_DATA_TYPE_PRECISION
these values are bound to the concrete data type.
Convention.TAG_VALUE_DATA_TYPE_PRECISION tagged value is optional. When not provided, the precision
should be treated as 0
Convention.TAG_VALUE_DATA_LENGTH tagged value is mandatory.
Convention.TAG_VALUE_PRIMARY_KEY tagged value
with "Primaty Key" value. Its value is the sequence order of the column in the tible's primary key.
| Constructor and Description |
|---|
ReverseDatabaseOperation(ModelRepository modelRepository,
String... schemes) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
dumpResultSet(ResultSet resultSet)
Prints the contents of the result set provided and closes it.
|
javax.jmi.reflect.RefPackage |
execute(Connection connection) |
protected void |
processRelationships(List<UmlClass> tables,
DatabaseMetaData metadata,
String schema)
This method processes all relationhips in the schemes and registers associations for them into
the extent provided.
|
protected List<UmlClass> |
processTables(DatabaseMetaData metadata,
String schema)
This method processes all tables in the schemes and registers classes for them into the extent
provided
|
public ReverseDatabaseOperation(ModelRepository modelRepository, String... schemes)
modelRepository - not nullschemes - not null, not empty name of the schemes to reverse engineer.
NOTE: It might be case sensitive.protected List<UmlClass> processTables(DatabaseMetaData metadata, String schema) throws SQLException
metadata - is the database metadata to reverse engineerschema - the name of the DB schema to reverse engineerSQLExceptionprotected void processRelationships(List<UmlClass> tables, DatabaseMetaData metadata, String schema) throws SQLException
tables - non-null list of regitered tablesmetadata - is the database metadata to reverse engineerschema - the name of the DB schemes to reverse engineerSQLExceptionprotected void dumpResultSet(ResultSet resultSet) throws SQLException
resultSet - SQLExceptionpublic javax.jmi.reflect.RefPackage execute(Connection connection) throws IllegalArgumentException
execute in interface Function<Connection,javax.jmi.reflect.RefPackage>connection - not nullIllegalArgumentExceptionFunction.execute(java.lang.Object)Copyright © 2001–2018 MDA Tools. All rights reserved.