Revision 204
Added by Matt Jones almost 24 years ago
AccessionNumber.java | ||
---|---|---|
86 | 86 |
throw (new AccessionNumberException("Accession number invalid, " + |
87 | 87 |
"expecting character \'" + sep + "'.")); |
88 | 88 |
} catch (SQLException e) { |
89 |
System.out.println(
|
|
89 |
System.err.println(
|
|
90 | 90 |
"Error on AccessionNumber.genAccessionNumber(): " + |
91 | 91 |
e.getMessage()); |
92 | 92 |
throw e; |
... | ... | |
123 | 123 |
pstmt.close(); |
124 | 124 |
|
125 | 125 |
} catch (SQLException e) { |
126 |
System.out.println(
|
|
126 |
System.err.println(
|
|
127 | 127 |
"Error on AccessionNumber.put(conn, globalName, localId): " |
128 | 128 |
+ e.getMessage()); |
129 | 129 |
throw e; |
... | ... | |
150 | 150 |
pstmt.close(); |
151 | 151 |
|
152 | 152 |
} catch (SQLException e) { |
153 |
System.out.println("Error on AccessionNumber.unique(globalName, " +
|
|
153 |
System.err.println("Error on AccessionNumber.unique(globalName, " +
|
|
154 | 154 |
"localId): " + e.getMessage()); |
155 | 155 |
throw e; |
156 | 156 |
} |
... | ... | |
176 | 176 |
pstmt.close(); |
177 | 177 |
|
178 | 178 |
} catch (SQLException e) { |
179 |
System.out.println(
|
|
179 |
System.err.println(
|
|
180 | 180 |
"Error on AccessionNumber.accNumberIsCurrent(globalName, " + |
181 | 181 |
"localId): " + e.getMessage()); |
182 | 182 |
throw e; |
... | ... | |
203 | 203 |
|
204 | 204 |
pstmt.close(); |
205 | 205 |
} catch (SQLException e) { |
206 |
System.out.println(
|
|
206 |
System.err.println(
|
|
207 | 207 |
"Error on AccessionNumber.get(): " + e.getMessage()); |
208 | 208 |
throw e; |
209 | 209 |
} |
... | ... | |
229 | 229 |
|
230 | 230 |
/** |
231 | 231 |
* '$Log$ |
232 |
* 'Revision 1.9 2000/06/26 10:35:04 jones |
|
233 |
* 'Merged in substantial changes to DBWriter and associated classes and to |
|
234 |
* 'the MetaCatServlet in order to accomodate the new UPDATE and DELETE |
|
235 |
* 'functions. The command line tools and the parameters for the |
|
236 |
* 'servlet have changed substantially. |
|
237 |
* ' |
|
232 | 238 |
* 'Revision 1.8.2.5 2000/06/26 08:38:01 jones |
233 | 239 |
* 'Added DELETE feature to DBWriter. Now takes an action "DELETE" and a |
234 | 240 |
* 'docid and will move the record from the xml_documents table to the |
Also available in: Unified diff
Fixed bugs associated with the new UPDATE and DELETE functions of
DBWriter. There were problematic interactions between some static
variables used in DBEntityResolver and the way in which the
Servlet objects are re-used across multiple client invocations.
Generally cleaned up error reporting. Now all errors and success
results are reported as XML documents from MetaCatServlet. Need
to make the command line tools do the same.