Revision 6423
Added by ben leinfelder over 13 years ago
src/edu/ucsb/nceas/metacat/IdentifierManager.java | ||
---|---|---|
307 | 307 |
sysMeta.setFmtid(fmtid); |
308 | 308 |
} |
309 | 309 |
sysMeta.setSize(size); |
310 |
Identifier obsoletesId = new Identifier(); |
|
311 |
obsoletesId.setValue(obsoletes); |
|
312 |
sysMeta.setObsoletes(obsoletesId); |
|
313 |
Identifier obsoletedById = new Identifier(); |
|
314 |
obsoletedById.setValue(obsoletedBy); |
|
315 |
sysMeta.setObsoletedBy(obsoletedById); |
|
316 |
|
|
310 |
if (obsoletes != null) { |
|
311 |
Identifier obsoletesId = new Identifier(); |
|
312 |
obsoletesId.setValue(obsoletes); |
|
313 |
sysMeta.setObsoletes(obsoletesId); |
|
314 |
} |
|
315 |
if (obsoletedBy != null) { |
|
316 |
Identifier obsoletedById = new Identifier(); |
|
317 |
obsoletedById.setValue(obsoletedBy); |
|
318 |
sysMeta.setObsoletedBy(obsoletedById); |
|
319 |
} |
|
317 | 320 |
stmt.close(); |
318 | 321 |
} |
319 | 322 |
else |
Also available in: Unified diff
do not add obsoletes and obsoletedBy elements if their values are null (jibx chokes on the emptiness)