Hi,

I only started using Swing half a year ago (and I have the impression that
it is wiser to switch to SWT) but as far as I know, the JTABLE needs the
metadata to handle the database-data. I haven't read anything about using
javabeans but I will see what I can find in this direction.
It is not my intention to ty the presentation to the database. On the
contrary. I think it is ugly design from Sun that you need the
resultsetmetada to handle the data but they probably had good reasons for
chosing this desing. 
In my opinion the functionality to retrieve the metadata apart from the
resultset means that there is a better decoupling from the presentation to
the database. No matter what database or which presentation method you want
to use, you can always stick to iBatis and work in a consistent way.

Ben

> -----Oorspronkelijk bericht-----
> Van: Clinton Begin (JIRA) [mailto:[EMAIL PROTECTED]
> Verzonden: zondag 13 februari 2005 0:32
> Aan: [EMAIL PROTECTED]
> Onderwerp: [jira] Closed: (IBATIS-56) ResultsetMetadata and 
> SWING JTable
> 
> 
>      [ http://issues.apache.org/jira/browse/IBATIS-56?page=history ]
>      
> Clinton Begin closed IBATIS-56:
> -------------------------------
> 
>      Assign To: Clinton Begin
>     Resolution: Won't Fix
> 
> 
> Not really.  But that would be a horrible design anyway?  Why 
> would you tie your presentation to your database?  Instead of 
> using resultset metadata, why not use the JavaBean types 
> (i.e. real Java types).  You can easily use reflection to get 
> your JavaBean metadata for this purpose.
> 
> 
> > ResultsetMetadata and SWING JTable
> > ----------------------------------
> >
> >          Key: IBATIS-56
> >          URL: http://issues.apache.org/jira/browse/IBATIS-56
> >      Project: iBatis for Java
> >         Type: New Feature
> >     Reporter: Ben Engbers
> >     Assignee: Clinton Begin
> 
> >
> > QueryForList returns a list and it is quite easy to use 
> this list for creating a JList or JTree
> > In order to create my own tablemodel however, I should have 
> access to the resultsetmetadata for a query.
> > Is it possible to retrieve and/or return this metadata?
> > Ben Engbers
> 
> -- 
> 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
> -
> If you want more information on JIRA, or have a bug to report see:
>    http://www.atlassian.com/software/jira
> 

Reply via email to