A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
JDBC and Relational Databases
What object is used in a JDBC ResultSet and how does one get it?
Joined: Dec 13, 2004
Sep 02, 2009 11:15:03
I'm contemplating a producer-consumer application to move data from one DBMS to another. I want to run a query on the producer DB and use the results to build and execute an insert on the consumer DB.
I would like the producer thread to enqueue each 'row' of the result set. The consumer thread will remove 'rows' and use them to run inserts.
Looking at the ResultSet JavaDoc I don't see a method for getting a 'row' or the object that corresponds to a row.
Is this possible?
Joined: Oct 13, 2005
Sep 02, 2009 15:42:23
What about the
method? You would have to create an object to encapsulate each row; the columns in each row are different from one "select" to another.
I agree. Here's the link:
subject: What object is used in a JDBC ResultSet and how does one get it?
Data exchange happening of two objects
threads synchronization problem
When utilizing all cores - speed of execution decrease significantly. Why?
Blocking queue Implementation
Is there a way to check how the mac is assigning/utilizing the processors?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015