Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 38B919FB340 for ; Fri, 27 Oct 2006 03:54:30 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 91853-02 for ; Fri, 27 Oct 2006 06:54:07 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp0.opennet.it (smtp0.opennet.it [212.110.32.23]) by postgresql.org (Postfix) with ESMTP id 200A49FB2F7 for ; Fri, 27 Oct 2006 03:54:04 -0300 (ADT) Received: (qmail 14004 invoked by uid 0); 27 Oct 2006 06:53:06 -0000 Received: from unknown (HELO comai04) (212.110.56.36) by smtp0.opennet.it with SMTP; 27 Oct 2006 06:53:06 -0000 Message-ID: <004001c6f995$29cc8370$0501a8c0@comai04> From: "Stefano B." To: Subject: JTable and ResultSet TableModel with big resultset Date: Fri, 27 Oct 2006 08:57:23 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_003D_01C6F9A5.EAFCE480" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1807 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.497 tagged_above=0 required=5 tests=HTML_40_50, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200610/119 X-Sequence-Number: 16002 This is a multi-part message in MIME format. ------=_NextPart_000_003D_01C6F9A5.EAFCE480 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I have a question about JTable and a ResultSet TableModel. I have to develop a swing JTable application that gets the data from a = ResultSetTableModel where the user can update the jtable data. The problem is the following: the JTable have to contain the whole data of the source database table. = Currently I have defined a=20 a TYPE_SCROLL_SENSITIVE & CONCUR_UPDATABLE statement. The problem is that when I execute the query the whole ResultSet is = "downloaded" on the client side application (my jtable) and I could = receive (with big resultsets) an "out of memory error"... I have investigate about the possibility of load (in the client side) = only a small subset of the resultset but with no luck. In the maling = lists I see that the only way to load the resultset incrementally is to = define a forward only resultset with autocommit off, and using = setFetchSize(...). But this solution doesn't solve my problem because if = the user scrolls the entire table, the whole resultset will be = downloaded... In my opinion, there is only one solution: - create a small JTable "cache structure" and update the structure with = "remote calls" to the server ... in other words I have to define on the server side a "servlet = environment" that queries the database, creates the resultset and gives = to the jtable only the data subsets that it needs... (alternatively I = could define an RMI client/server distribuited applications...) This is my solution, somebody can help me? Are there others solutions for my problem? Thanks in advance, Stefano ------=_NextPart_000_003D_01C6F9A5.EAFCE480 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi, I have a question about JTable and = a ResultSet=20 TableModel.
 
I have to develop a swing JTable = application=20 that gets the data from a ResultSetTableModel where the user can update = the=20 jtable data.
The problem is the = following:
 
the JTable have to contain the whole = data of the=20 source database table. Currently I have defined a
 
a TYPE_SCROLL_SENSITIVE & = CONCUR_UPDATABLE=20 statement.
 
The problem is that when I execute the = query the=20 whole ResultSet is "downloaded" on the client side application (my = jtable) and I=20 could receive (with big resultsets) an "out of memory=20 error"...
 
I have investigate about the = possibility of load=20 (in the client side) only a small subset of the resultset but with no = luck. In=20 the maling lists I see that the only way to load the resultset = incrementally is=20 to define a forward only resultset with autocommit off, and using=20 setFetchSize(...). But this solution doesn't solve my problem because if = the=20 user scrolls the entire table, the whole resultset will be=20 downloaded...
 
In my opinion, there is only one=20 solution:
 
- create a small JTable "cache = structure" and=20 update the structure with "remote calls" to the server ...
in other words I have to define on the = server side=20 a "servlet environment" that queries the database, creates the resultset = and=20 gives to the jtable only the data subsets that it needs... (alternatively I could define an RMI client/server = distribuited applications...)
 
This is my solution, somebody can help=20 me?
Are there others solutions for my=20 problem?
 
Thanks in advance,
   =20 Stefano
------=_NextPart_000_003D_01C6F9A5.EAFCE480--