Return-Path: Mailing-List: contact juddi-cvs-help@ws.apache.org; run by ezmlm Delivered-To: mailing list juddi-cvs@ws.apache.org Delivered-To: moderator for juddi-cvs@ws.apache.org Received: (qmail 42594 invoked by uid 99); 10 Mar 2005 05:05:01 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from minotaur.apache.org (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Wed, 09 Mar 2005 21:05:01 -0800 Received: (qmail 72402 invoked by uid 1821); 10 Mar 2005 05:05:00 -0000 Date: 10 Mar 2005 05:05:00 -0000 Message-ID: <20050310050500.72401.qmail@minotaur.apache.org> From: anil@apache.org To: ws-juddi-cvs@apache.org Subject: cvs commit: ws-juddi/src/java/org/apache/juddi/datastore/jdbc JDBCDataStore.java anil 2005/03/09 21:05:00 Modified: src/java/org/apache/juddi/datastore/jdbc JDBCDataStore.java Log: If only the serviceKey is provided and not the CategoryBag etc, we still need to send back the Binding list. Revision Changes Path 1.11 +18 -2 ws-juddi/src/java/org/apache/juddi/datastore/jdbc/JDBCDataStore.java Index: JDBCDataStore.java =================================================================== RCS file: /home/cvs/ws-juddi/src/java/org/apache/juddi/datastore/jdbc/JDBCDataStore.java,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- JDBCDataStore.java 13 Feb 2005 16:14:22 -0000 1.10 +++ JDBCDataStore.java 10 Mar 2005 05:05:00 -0000 1.11 @@ -62,6 +62,7 @@ /** * @author Steve Viens (sviens@apache.org) + * @author Anil Saldhana (anil@apache.org) */ public class JDBCDataStore implements DataStore { @@ -165,7 +166,7 @@ * * @param publisherID * @return publisher - * @throws UDDIException + * @throws RegistryException */ public Publisher getPublisher(String publisherID) throws RegistryException @@ -254,7 +255,7 @@ * * @param publisher * @return String - * @throws UDDIException + * @throws RegistryException */ public String generateToken(Publisher publisher) throws RegistryException @@ -1531,6 +1532,21 @@ if ((categoryBag != null) && (categoryBag.size() > 0)) keyVector = FindBindingByCategoryQuery.select(serviceKey,categoryBag,keyVector,findQualifiers,connection); + + /** + * Anil: Only if the serviceKey is passed + */ + + if((serviceKey != null) && (tModelBag == null) && (categoryBag == null)) + { + Vector bindtempVect= BindingTemplateTable.selectByServiceKey(serviceKey,connection); + for(int i=0; bindtempVect != null && i < bindtempVect.size();i++) + { + BindingTemplate bt = (BindingTemplate)bindtempVect.elementAt(i); + if(keyVector == null ) keyVector = new Vector(bindtempVect.size()); + keyVector.add(bt.getBindingKey()); + } + } } catch(java.sql.SQLException sqlex) {