db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ludovic Maître (JIRA) <j...@apache.org>
Subject [jira] Created: (DDLUTILS-78) Restore parsing XML metadatas from an inputsource
Date Wed, 08 Mar 2006 12:19:39 GMT
Restore parsing XML metadatas from an inputsource
-------------------------------------------------

         Key: DDLUTILS-78
         URL: http://issues.apache.org/jira/browse/DDLUTILS-78
     Project: DdlUtils
        Type: New Feature
    Reporter: Ludovic Maître
 Assigned to: 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


Mime
View raw message