File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes passing array values to query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
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: 160
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: 10905
    
  12

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.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
sai rama krishna
Ranch Hand

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

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

Joined: Mar 17, 2011
Posts: 7014
    
  16

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?
Artlicles by Winston can be found here
sai rama krishna
Ranch Hand

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