[metacat-cvs] metacat/src/edu/ucsb/nceas/metacat DBUtil.java

Jing Tao tao at ecoinformatics.org
Wed Nov 16 13:07:08 PST 2005


tao         05/11/16 13:07:08

  Modified:    src/edu/ucsb/nceas/metacat DBUtil.java
  Log:
  the parameter of method getRevisionTableReList is docidWithoutRev.
  
  Revision  Changes    Path
  1.19      +5 -5      metacat/src/edu/ucsb/nceas/metacat/DBUtil.java
  
  Index: DBUtil.java
  ===================================================================
  RCS file: /cvs/metacat/src/edu/ucsb/nceas/metacat/DBUtil.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- DBUtil.java	27 Oct 2005 23:46:57 -0000	1.18
  +++ DBUtil.java	16 Nov 2005 21:07:08 -0000	1.19
  @@ -9,9 +9,9 @@
    *    Authors: Jivka Bojilova
    *    Release: @release@
    * 
  - *   '$Author: sgarg $'
  - *     '$Date: 2005/10/27 23:46:57 $'
  - * '$Revision: 1.18 $'
  + *   '$Author: tao $'
  + *     '$Date: 2005/11/16 21:07:08 $'
  + * '$Revision: 1.19 $'
    *
    * This program is free software; you can redistribute it and/or modify
    * it under the terms of the GNU General Public License as published by
  @@ -580,7 +580,7 @@
      * @return is a vector which contains Integer object
      * @throws SQLException
      */
  -  public static Vector getRevListFromRevisionTable(String docId) throws SQLException
  +  public static Vector getRevListFromRevisionTable(String docIdWithoutRev) throws SQLException
     {
         Vector list = new Vector();
         int rev = 1;
  @@ -588,7 +588,7 @@
         DBConnection dbConn = null;
         int serialNumber = -1;
         // get rid of rev
  -      docId = MetaCatUtil.getDocIdFromString(docId);
  +      //docId = MetaCatUtil.getDocIdFromString(docId);
         try {
             //check out DBConnection
             dbConn = DBConnectionPool
  @@ -597,7 +597,7 @@
   
             pStmt = dbConn
                     .prepareStatement("SELECT rev FROM xml_revisions WHERE docid='"
  -                          + docId + "'");
  +                          + docIdWithoutRev + "'");
             pStmt.execute();
   
             ResultSet rs = pStmt.getResultSet();
  
  
  


More information about the Metacat-cvs mailing list