IBM Content Manager, Version 8.5      Supports:  Oracle, DB2, C++, Java

Setting and getting an item's versioning properties

The following example demonstrates how to set and retrieve the versioning properties for an item.

Example: Java™

DKPidICM pid = (DKPidICM)ddo.getPidObject();
// Accessing version information
String version = pid.getVersionNumber();
...
// Setting the version number in the DDO
pid.setVersionNumber(version);

Example: C++

DKPidICM * pid = (DKPidICM *)ddo->getPidObject();
// Accessing version information
DKString version = pid->getVersionNumber();
....
//Setting the version number for the PID associated with an item (DDO).
pid->setVersionNumber((char *)version);


Feedback

Last updated: December 2013
dcmcm043.htm

© Copyright IBM Corporation 2013.