Revision 735
Added by bojilova over 23 years ago
src/edu/ucsb/nceas/metacat/AccessionNumber.java | ||
---|---|---|
75 | 75 |
} |
76 | 76 |
|
77 | 77 |
/** |
78 |
* Generate an Accession Number of form <sidecode>.<createdate> |
|
78 |
* Generate an Accession Number of form <sidecode>.<uniqueid>.<revisionid> |
|
79 |
* where <revisionid> is always 1. |
|
80 |
* |
|
81 |
* @param docid <sitecode>.<uniqueid> part of Accession Number |
|
82 |
* @param action INSERT, UPDATE or DELETE action |
|
79 | 83 |
*/ |
84 |
public String generate(String docid, String action) |
|
85 |
throws AccessionNumberException, SQLException |
|
86 |
{ |
|
87 |
return generate(docid, "1", action); |
|
88 |
} |
|
89 |
|
|
90 |
/** |
|
91 |
* Generate an Accession Number of form <sidecode>.<uniqueid>.<revisionid> |
|
92 |
* |
|
93 |
* @param docid <sitecode>.<uniqueid> part of Accession Number |
|
94 |
* @param rev <revisionid> of Accession Number |
|
95 |
* @param action INSERT, UPDATE or DELETE action |
|
96 |
*/ |
|
80 | 97 |
public String generate(String docid, String rev, String action) |
81 | 98 |
throws AccessionNumberException, SQLException |
82 | 99 |
{ |
Also available in: Unified diff
fix - added back generate(docid, action) method called from DataFileServer.java where rev is defaulted to 1