BODataObject

This interface makes it easier to retrieve a data object business graph, Change Summary, or Event Summary.

Purpose

BODataObject allows additional capability beyond what the data object interface provides by making it easier to retrieve a data object business graph, Change Summary, or Event Summary. If it is contained in a business graph hierarchy, BODataObject provides helper methods.

Example

This example shows how to use BODataObject.

BOFactory factoryService =
    (BOFactory) new
ServiceManager().locateService("com/ibm/websphere/bo/BOFactory");
BODataObject dataObjectService =
    (BODataObject) new
ServiceManager().locateService("com/ibm/websphere/bo/BODataObject");

DataObject productCategoryBG =
  factoryService.create("http://www.scm.com/ProductCategoryTypes/ProductCategoryBG",
                          "ProductCategoryBG");
DataObject productCategory =
    productCategoryBG.createDataObject("productCategory");
DataObject product =
    productCategory.createDataObject("product");

dataObjectService.getChangeSummary(product).beginLogging();

productCategory.setBoolean("domestic", false);
product.set("description", "NewValue");
product.set("description", "NewValue2");


DataObject businessGraph    = dataObjectService.getBusinessGraph(productCategory);
ChangeSummary changeSummary = dataObjectService.getChangeSummary(productCategory);
BOEventSummary eventSummary = dataObjectService.getEventSummary(productCategory);

// This will return the productCategory DataObject
// which is the top level object
dataObjectService.getRootBusinessObject(product);

Parent topic: Programming interfaces

Related reference
BOChangeSummary
BOCopy
BOEquality
BOEventSummary
BOFactory
BOType
BOTypeMetadata
BOXMLDocument
BOXMLSerializer

Related information
Interface BODataOBject APIs


Terms of use |

Last updated: Tue Sep 20 03:22:36 2005

Copyright IBM Corporation 2005.
This information center is powered by Eclipse technology (http://www.eclipse.org)