juddi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "SourceForge.net" <nore...@sourceforge.net>
Subject [juddi-Developers] [ juddi-Bugs-803012 ] Changing all getXxx(String) calls to getXxx(int)
Date Tue, 09 Sep 2003 07:09:18 GMT
Bugs item #803012, was opened at 2003-09-09 09:18
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=434422&aid=803012&group_id=42875

Category: Build
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Subrahmanya Nayak (snayak)
Assigned to: Nobody/Anonymous (nobody)
Summary: Changing all getXxx(String) calls to getXxx(int)

Initial Comment:
The juddi code (for example in 

org.juddi.datastore.jdbc.FindBusinessByNameQuery.java  

and other files( as

 well)  use select statements like:

 

    SELECT B.BUSINESS_KEY, ........,  FROM 

BUSINESS_ENTITY B,....................

 

 When the result set is constructed,  the column header 

will be  "B.BUSINESS_KEY" .

 

 Later the code issues a getString("BUSINESS_KEY");  on 

the result set from the query above.

 

 We don't find the column, because the column name is 

B.BUSINESS_KEY  .

 

 That causes  error like "Invalid attribute 

name: "BUSINESS_KEY"." So code getString

("BUSINESS_KEY"); should be changed to

 getString("B.BUSINESS_KEY");or to to take the column 

index instead of a name. Changing to Column index is 

more reliable and standard across all the DBs.



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=434422&aid=803012&group_id=42875


Mime
View raw message