juddi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From svi...@apache.org
Subject cvs commit: ws-juddi/src/java/org/apache/juddi/datastore/jdbc JDBCDataStore.java
Date Tue, 19 Oct 2004 17:19:53 GMT
sviens      2004/10/19 10:19:53

  Modified:    src/java/org/apache/juddi/datastore/jdbc JDBCDataStore.java
  Log:
  Fix for bug JUDDI-41.  For more detailed information see: http://nagoya.apache.org/jira/browse/JUDDI-41
  
  Revision  Changes    Path
  1.8       +8 -8      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.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- JDBCDataStore.java	25 Aug 2004 17:31:56 -0000	1.7
  +++ JDBCDataStore.java	19 Oct 2004 17:19:53 -0000	1.8
  @@ -1145,7 +1145,7 @@
   
             // fetch the TModel CategoryBag
             Vector catVector = TModelCategoryTable.select(tModelKey,connection);
  -          if (catVector != null)
  +          if ((catVector != null) && (catVector.size() != 0)) 
             {
               CategoryBag catBag = new CategoryBag();
               catBag.setKeyedReferenceVector(catVector);
  @@ -1153,13 +1153,13 @@
             }
   
             // fetch the TModel IdentifierBag
  -          Vector idVector = TModelIdentifierTable.select(tModelKey,connection);
  -          if (idVector != null)
  -          {
  -            IdentifierBag idBag = new IdentifierBag();
  -            idBag.setKeyedReferenceVector(idVector);
  -            tModel.setIdentifierBag(idBag);
  -          }
  +          Vector idVector = TModelIdentifierTable.select(tModelKey,connection); 
  +          if ((idVector != null) && (idVector.size() != 0)) 
  +          { 
  +            IdentifierBag idBag = new IdentifierBag(); 
  +            idBag.setKeyedReferenceVector(idVector); 
  +            tModel.setIdentifierBag(idBag); 
  +          } 
   
             // fetch the TModel OverviewDoc & OverviewDoc Descrptions
             OverviewDoc overDoc = tModel.getOverviewDoc();
  
  
  

Mime
View raw message