Revision 4684
Added by daigle over 15 years ago
AccessionNumber.java | ||
---|---|---|
203 | 203 |
return hasAccNumber; |
204 | 204 |
} |
205 | 205 |
|
206 |
// check for existence of Accession Number in xml_documents table |
|
207 |
public static boolean accNumberIsCurrent(String accNumber) throws SQLException {
|
|
206 |
// check for existence of Accesssion Number in xml_documents table
|
|
207 |
private boolean accNumberIsCurrent(String accNumber) throws SQLException {
|
|
208 | 208 |
|
209 | 209 |
boolean hasCurrentAccNumber = false; |
210 | 210 |
DBConnection conn = null; |
Also available in: Unified diff
revert the changes for: -- On update, check if the accession number exists in the db. If not, change the action to insert.