-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow explicitly defined tables (in XML) to attempt to populate their…
… relationships from the database's metadata.
- Loading branch information
johncurrier
committed
Aug 19, 2008
1 parent
ebf8a3f
commit 412b7e2
Showing
2 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/net/sourceforge/schemaspy/model/ExplicitRemoteTable.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package net.sourceforge.schemaspy.model; | ||
|
||
import java.sql.SQLException; | ||
import java.util.Map; | ||
import java.util.Properties; | ||
|
||
/** | ||
* A remote table (exists in another schema) that was explicitly created via XML metadata. | ||
* | ||
* @author John Currier | ||
*/ | ||
public class ExplicitRemoteTable extends RemoteTable { | ||
public ExplicitRemoteTable(Database db, String schema, String name, String baseSchema) throws SQLException { | ||
super(db, schema, name, baseSchema, null); | ||
} | ||
|
||
@Override | ||
public void connectForeignKeys(Map<String, Table> tables, Database db, Properties properties) throws SQLException { | ||
// this probably won't work, so ignore any failures...but try anyways just in case | ||
try { | ||
super.connectForeignKeys(tables, db, properties); | ||
} catch (SQLException ignore) {} | ||
} | ||
} |