Project

General

Profile

« Previous | Next » 

Revision 1618

Added by Jing Tao over 21 years ago

Add delete access subtree in delete method.

View differences:

src/edu/ucsb/nceas/metacat/DocumentImpl.java
2077 2077
      pstmt.execute();
2078 2078
      pstmt.close();
2079 2079
      
2080
      // Delete it from xml_accesssubtree table
2081
      pstmt = conn.
2082
               prepareStatement("DELETE FROM xml_accesssubtree WHERE docid = ?");
2083
      //increase usage count
2084
      conn.increaseUsageCount(1);
2085
      pstmt.setString(1, docid);
2086
      pstmt.execute();
2087
      pstmt.close();
2088
      
2080 2089
      // Delete it from xml_doucments table
2081 2090
      pstmt =conn.prepareStatement("DELETE FROM xml_documents WHERE docid = ?");
2082 2091
      pstmt.setString(1, docid);

Also available in: Unified diff