commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "PB (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DBUTILS-107) Add QueryLoader.loadFromXml method
Date Thu, 10 Jan 2013 09:16:12 GMT

    [ https://issues.apache.org/jira/browse/DBUTILS-107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13549462#comment-13549462
] 

PB commented on DBUTILS-107:
----------------------------

I'm thinking that it may be better to only modify the implementation, instead of the API.
 In loadQueries(String) we could check if path ends with .xml and use Properties.loadFromXML
if true and the current Properties.load if false.  I would hope that no clients are storing
name=value properties in a .xml file.  Would this approach be acceptable?
                
> Add QueryLoader.loadFromXml method
> ----------------------------------
>
>                 Key: DBUTILS-107
>                 URL: https://issues.apache.org/jira/browse/DBUTILS-107
>             Project: Commons DbUtils
>          Issue Type: Improvement
>    Affects Versions: 1.5
>            Reporter: PB
>            Priority: Minor
>
> This is a request to add a method to QueryLoader called loadFromXml.  Just as QueryLoader.load
is similar to Properties.load, this new method would be similar to Properties.loadFromXML.
 Maintenance of long, multi-line queries can be preferable in XML format compared to properties
file format.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message