Issue Details (XML | Word | Printable)

Key: DBUTILS-22
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Unassigned
Reporter: Sam Gendler
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons DbUtils

[dbutils] QueryLoader.loadQueries() should be protected

Created: 29/Sep/04 07:41 AM   Updated: 02/Jan/08 07:29 AM
Return to search
Component/s: None
Affects Version/s: 1.0
Fix Version/s: 1.1

Time Tracking:
Not Specified

Environment:
Operating System: other
Platform: All

Bugzilla Id: 31460


 Description  « Hide
Those of us who don't want to use traditional java properties files to store properties have no way to
utilize the QueryLoader (I am using XML, for instance, which can be parsed into a subclass of
Properties if so desired). It would be sufficient to make loadQueries() protected instead of private, so I
can overload that one method, but it would be nicer to be able to specify a class which adheres to some
interface (contains load(InputStream is) would be sufficient), which will be instantiated by the
QueryLoader for reading 'properties.' Or alternatively, at least for my use, the ability to specify a
Properties instance would also work. Regardless, the absolute dependance on a traditional properties
file is totally limiting for use of the class, and as soon as loadQueries() becomes protected, I can remove
the duplicate source code from my code repository and just inherit from QueryLoader.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
David Graham added a comment - 03/Oct/04 11:14 PM
loadQueries() is now protected instead of private.

Henri Yandell made changes - 16/May/06 09:46 AM
Field Original Value New Value
issue.field.bugzillaimportkey 31460 12341759
Henri Yandell made changes - 16/May/06 11:29 AM
Assignee Jakarta Commons Developers Mailing List [ commons-dev@jakarta.apache.org ]
Component/s DbUtils [ 12311110 ]
Affects Version/s 1.0 Final [ 12311651 ]
Key COM-1607 DBUTILS-22
Project Commons [ 12310458 ] Commons DbUtils [ 12310470 ]
Henri Yandell made changes - 16/May/06 12:20 PM
Affects Version/s 1.0 Final [ 12311724 ]
Henri Yandell made changes - 06/Jul/06 11:36 AM
Fix Version/s 1.1 [ 12311973 ]
Henri Yandell made changes - 02/Jan/08 07:29 AM
Status Resolved [ 5 ] Closed [ 6 ]