Revision 3858
Added by Jing Tao over 16 years ago
src/edu/ucsb/nceas/metacat/EML201DocumentCorrector.java | ||
---|---|---|
38 | 38 |
* in both xml_nodes and xml_index table. Since xml_index has a foreign key (nodeid)which |
39 | 39 |
* references nodeid in xml_nodes table, we should delete records in xml_index table first. |
40 | 40 |
*/ |
41 |
public void run()
|
|
41 |
public boolean run()
|
|
42 | 42 |
{ |
43 | 43 |
DBConnection dbconn = null; |
44 |
boolean success = false; |
|
44 | 45 |
int serialNumber = 0; |
45 | 46 |
try |
46 | 47 |
{ |
... | ... | |
65 | 66 |
//close statement and connection |
66 | 67 |
deletingStatement.close(); |
67 | 68 |
dbconn.close(); |
69 |
success = true; |
|
68 | 70 |
} |
69 | 71 |
catch (Exception ee) |
70 | 72 |
{ |
... | ... | |
76 | 78 |
{ |
77 | 79 |
DBConnectionPool.returnDBConnection(dbconn, serialNumber); |
78 | 80 |
} //finally |
81 |
return success; |
|
79 | 82 |
} |
80 | 83 |
|
81 | 84 |
/* |
Also available in: Unified diff
Add to cvs head. Change the run method signature.