Results 1 to 3 of 3

Thread: Design Question

  1. #1
    Join Date
    May 2005
    Posts
    21

    Default Design Question

    Hi ,

    I'm building a reporting application that creates html report output based on running stored procs or SQL queries or even a combination. Most of the results are to be displayed in tabular format. In this situation is it wise to build a generic query object that would run the query/stored proc passed in and create a matrix data structure to represent the resultset. Something like an Arraylist of ArrayList would be sufficient to hold the resultset. All items in the matrix would be String values as this is how result page will be created. The alternative to this is creating a pojo class and all associated classes to represent each query being run! By doing this a single presentation page could be built giving the same look and feel for each tabular report.

    Any pointers are appreciated.

    Regards
    Ketan

  2. #2
    Join Date
    Sep 2004
    Posts
    1,086

    Default

    JdbcTemplate.queryForList() is what you need I guess.

  3. #3
    Join Date
    May 2005
    Posts
    21

    Default

    Can you use queryForList on stored procedures with result sets. At tge moment I have extended the StoredProcedure class to run my stored procs.
    Thanks

    Ketan

Similar Threads

  1. A design question
    By thenakedsingularity in forum Web
    Replies: 3
    Last Post: Oct 25th, 2005, 02:02 PM
  2. design question: passing context
    By Alarmnummer in forum Management
    Replies: 0
    Last Post: Oct 3rd, 2005, 01:20 PM
  3. Bean design question
    By egervari in forum Container
    Replies: 1
    Last Post: May 12th, 2005, 12:43 PM
  4. Replies: 6
    Last Post: Oct 8th, 2004, 02:21 PM
  5. Design question, c3p0 and more..
    By kantorn in forum Data
    Replies: 4
    Last Post: Oct 7th, 2004, 08:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •