
Chapter 8. Building a case study application 301
" a CM Document Model Item or Document has not been explicitly retrieved.");
dkParts = (DKParts) ddo.getData(dataid);
dkParts.addElement(base);
// Now that all the data items have their values set, add the ddo to the
// datastore to persistence store
ddo.add();
this.disconnect();
}
This method receives the metadata within a hash table data structure and the
content file. It creates a new
DKDDO definition, and sets the attribute values,
casting the values following the item type definition. It creates a new
DKPart and
sets the mime type and file content, and also adds the new part to the DDO’s par