db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Dudziak <tom...@gmail.com>
Subject Re: How can I get the schema of selected tables in xml file
Date Sat, 03 Dec 2005 12:19:02 GMT
On 12/2/05, ravi <ravi_kumar@persistent.co.in> wrote:

> I have to dump the schema of only user tables to xml file. When I use
> Platform.readModelFromDatabase() method ,XML file contains system table
> also.
> How can I do that?

Which database are you using ?
Anyways, there is a variant of that method where you can specify the
table types to be processed

http://db.apache.org/ddlutils/api/org/apache/ddlutils/Platform.html#readModelFromDatabase(java.lang.String,%20java.lang.String,%20java.lang.String[])

Note that these types are database-specific, the common types are
noted in the JDBC doc (per default, only tables of type TABLE are
returned):

http://java.sun.com/j2se/1.4.2/docs/api/java/sql/DatabaseMetaData.html#getTables(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String[])

Tom

Mime
View raw message