[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
http://www.jamonapi.com/ - a fast, free open source performance tuning api.
JavaRanch Performance FAQ
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
, I added speed and efficiency, although, logically speaking, it should have slowed things down by adding another data passthru. Hey, I'm new enough that I'll try anything, and if it works, heck, I'm happy to pass it on. I'm also old enough to keep my mouth shut when someone tells me that what they did worked because I may not know as much as I thought I did .Vector data = new Vector();
// int numCols = -get the number of columns from the ResultSet metadata
while (rs.hasData());
{
String temp = new String[numCols];
for (int i = 0; i < numCols; i++)
{
temp = rs.getData(i+1); // ResultSet starts at 1, not 0
}
data.addElement(temp);
}
Originally posted by Pat Flickner:
Object has getData(), and since everything inherits from Object, ResultSet has getData().
"I'm not back." - Bill Harding, Twister
Originally posted by Jim Yingst:
...which was acknowledged in Pat's last message, yes?
"I'm not back." - Bill Harding, Twister
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|