You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ddlutils-dev@db.apache.org by "Thomas Dudziak (JIRA)" <ji...@apache.org> on 2006/07/13 09:25:33 UTC
[jira] Updated: (DDLUTILS-78) Restore parsing XML metadatas from an
inputsource
[ http://issues.apache.org/jira/browse/DDLUTILS-78?page=all ]
Thomas Dudziak updated DDLUTILS-78:
-----------------------------------
Component: Core (No specific database)
> Restore parsing XML metadatas from an inputsource
> -------------------------------------------------
>
> Key: DDLUTILS-78
> URL: http://issues.apache.org/jira/browse/DDLUTILS-78
> Project: DdlUtils
> Type: New Feature
> Components: Core (No specific database)
> Reporter: Ludovic MaƮtre
> Assignee: Thomas Dudziak
>
> I would like to have a functionnality to read the xml metadatas from an inputsource instead of a file. IIRC it was resent in the databasereader of commons-sql but it seems that this method has disappeared from ddlutils. The patch is to add to the class package org.apache.ddlutils.io.DatabaseIO a method Database read(InputSource source). This should not create any problem since the same lines of code are used above in the source code. Thanks in adavance if this is feasible, i can provide a diff file.
> /**
> * Reads the database model from the InputSource.
> *
> * @param source InputSource
> * @return The database model
> */
> public Database read(InputSource source) throws DdlUtilsException
> {
> Database model = null;
> try
> {
> model = (Database)getReader().parse(source);
> }
> catch (Exception ex)
> {
> throw new DdlUtilsException(ex);
> }
> model.initialize();
> return model;
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira