Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#375 JDBCCategoryDataset add execute(PreparedStatemet)

open
nobody
None
5
2012-11-27
2010-03-12
Anonymous
No

Description:
Need to redesign JDBCCategoryDataset class - add method execute(PreparedStatemet). In this version of class I move all result set processing logic from execute(Connection, String) to new private method - processResultSet(ResultSet). Next add required method execute(PreparedStatemet). Add constructor too.

Motivation:
New method should be use when query, from execute method, need parameters set by user. PreparedStatemet protect us from typically SQL injection attack - query string builded by hand.

Attachments:
- new version of class.

Discussion