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