Project

General

Profile

« Previous | Next » 

Revision 131

Added by Matt Jones over 24 years ago

general module cleanup

View differences:

src/edu/ucsb/nceas/metacat/DBSAXHandler.java
184 184
      String data = new String(cbuf, start, len);
185 185

  
186 186
      // Write the content of the element to the database
187
      currentElement.writeContentToDB(data, nodeIndex);
187
      currentElement.writeTextToDB(data, nodeIndex);
188 188
   }
189 189

  
190 190
   /** 
......
225 225

  
226 226
      // Get the element from the stack
227 227
      DBSAXElement currentElement = (DBSAXElement)elementStack.pop();
228
      
229
      // Write the content of the element to the database
230
      // Don't need to do this if using DOM model for TEXT nodes
231
      //currentElement.writeContentToDB();
232 228
   }
233 229

  
234 230
   /** Debug routine */
src/edu/ucsb/nceas/metacat/DBSAXNode.java
204 204
    }
205 205

  
206 206
    /** Write the element content to the db connection */
207
    public void writeContentToDB(String content, int nodeIndex) {
207
    public void writeTextToDB(String content, int nodeIndex) {
208 208
        try {
209 209
          PreparedStatement pstmt = conn.prepareStatement(
210 210
                "INSERT INTO xml_nodes (nodeid, nodetype, nodename, " +
src/edu/ucsb/nceas/metacat/DBSAXElement.java
204 204
    }
205 205

  
206 206
    /** Write the element content to the db connection */
207
    public void writeContentToDB(String content, int nodeIndex) {
207
    public void writeTextToDB(String content, int nodeIndex) {
208 208
        try {
209 209
          PreparedStatement pstmt = conn.prepareStatement(
210 210
                "INSERT INTO xml_nodes (nodeid, nodetype, nodename, " +

Also available in: Unified diff