Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / November 2005

Tip: Looking for answers? Try searching our database.

Modifying ResultSetTableModel not Database

Thread view: 
mitchell.ad@neu.edu - 29 Nov 2005 17:03 GMT
Hey everyone,

I have been having some trouble trying to figure out how to give the
user data retreived from a MySQL database in the form of a
ResultSetTableModel inside a JTable. Once the user sees the data, I
want them to be able to check some check boxes then click next to
continue. The only way I have found to be able to have functioning
check boxes is to use the updateInt() function, then updateRow()
function.

The problem is that this updates the database with the checked values,
and I want the check boxes to always be unchecked when queried. Does
anyone know how to modify a resultSet or tablemodel so that it changes
in the Jtable, but not in the database?

Thanks in advance!
VisionSet - 29 Nov 2005 17:38 GMT
> Does
> anyone know how to modify a resultSet or tablemodel so that it changes
> in the Jtable, but not in the database?

You can't, ResultSet interface does not preclude the option of a connected
one.
You will have to copy the values out into some other structure.
Generally speaking you should assume that paging the resultset is actually
paging within the DBMS.

--
Mike W


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.