juddi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject cvs commit: ws-juddi/src/java/org/apache/juddi/datastore/jdbc JDBCDataStore.java
Date Thu, 10 Mar 2005 05:05:00 GMT
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)
       {
  
  
  

Mime
View raw message