aspose file tools
The moose likes Beginning Java and the fly likes passing array values to query Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "passing array values to query" Watch "passing array values to query" New topic
Author

passing array values to query

sai rama krishna
Ranch Hand

Joined: May 29, 2009
Posts: 130
I have following text data in a pipe | delimitted text file

999|5555|6666|PPP|9/9/2009 15:49|1444-AAA_111|FINISH
998|5554|6666|PPP|9/9/2009 15:49|1444-AAA_111|FINISH
997|5553|6666|PPP|9/9/2009 15:49|1444-AAA_111|FINISH
996|5552|6666|PPP|9/9/2009 15:49|1444-AAA_111|FINISH
I am reading above data into String array called rows.

Then i am calling following method like below from main method
checkDatabases(rows);

The implementation code of checkDatabases(rows) is as below


Preferably without using java 1.5 generics is much good as server is running on java 1.4.
Any ideas, suggestions, sample code, links, source code highly appreciated. Thanks in advance
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 9939
    
    6

Please don't post your entire message inside code tags. Code should go in there. Your comments should be outside them, so they show up normal.


Never ascribe to malice that which can be adequately explained by stupidity.
sai rama krishna
Ranch Hand

Joined: May 29, 2009
Posts: 130
sure.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32599
    
    4
And please don’t post such long lines; they are very difficult to read.
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 4724
    
    7

sai rama krishna wrote:...Preferably without using java 1.5 generics is much good as server is running on java 1.4...
Any ideas, suggestions, sample code, links, source code highly appreciated.

I have one: UPGRADE.

This from Sun's webpage (which alone should tell you how old it is):
"Java SE 5.0 is in its Java Technology End of Life (EOL) transition period. The EOL transition period began April 8th, 2007 and will complete October 8th, 2009, when Java SE 5.0 will have reached its End of Service Life (EOSL)."

And that is a full version after the one you're running. I was using Java 1.4 in 2001.

Winston


Isn't it funny how there's always time and money enough to do it WRONG?
sai rama krishna
Ranch Hand

Joined: May 29, 2009
Posts: 130
sure
 
I agree. Here's the link: jrebel
 
subject: passing array values to query
 
Similar Threads
output to excel
Logic Issue to While getting missing records
HAshMap to Excel file using APache POI
use java 1.4 instead of java 1.5 for generics
PrepareStatement to build query with parameters based on spreadsheet data