Revision 9038
Added by Jing Tao almost 10 years ago
src/edu/ucsb/nceas/metacat/IdentifierManager.java | ||
---|---|---|
250 | 250 |
SystemMetadata sysMeta = new SystemMetadata(); |
251 | 251 |
String sql = "select guid, date_uploaded, rights_holder, checksum, checksum_algorithm, " + |
252 | 252 |
"origin_member_node, authoritive_member_node, date_modified, submitter, object_format, size, " + |
253 |
"replication_allowed, number_replicas, obsoletes, obsoleted_by, serial_version, archived " + |
|
253 |
"replication_allowed, number_replicas, obsoletes, obsoleted_by, serial_version, archived, series_id " +
|
|
254 | 254 |
"from systemmetadata where guid = ?"; |
255 | 255 |
DBConnection dbConn = null; |
256 | 256 |
int serialNumber = -1; |
... | ... | |
287 | 287 |
String obsoletedBy = rs.getString(15); |
288 | 288 |
serialVersion = new BigInteger(rs.getString(16)); |
289 | 289 |
archived = new Boolean(rs.getBoolean(17)); |
290 |
String series_id = rs.getString(18); |
|
290 | 291 |
|
291 | 292 |
Identifier sysMetaId = new Identifier(); |
292 | 293 |
sysMetaId.setValue(guid); |
... | ... | |
331 | 332 |
sysMeta.setObsoletedBy(obsoletedById); |
332 | 333 |
} |
333 | 334 |
sysMeta.setArchived(archived); |
335 |
if(series_id != null) { |
|
336 |
Identifier seriesId = new Identifier(); |
|
337 |
seriesId.setValue(series_id); |
|
338 |
sysMeta.setSeriesId(seriesId); |
|
339 |
} |
|
334 | 340 |
stmt.close(); |
335 | 341 |
} |
336 | 342 |
else |
Also available in: Unified diff
Add the series id to the system metadata.