BOEventSummary

This interface provides the interface for managing the content of the business graph Event Summary header.

Purpose

BOEventSummary allows for managing the content of the business graph Event Summary header by associating particular metadata with business objects.

Example

This example shows how to use the BOEventSummary interface.

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 product1 =
    productCategory.createDataObject("product");
DataObject product2 =
    productCategory.createDataObject("product");

// 1. If you have a business graph.
BOEventSummary eventSummary1 =
    (BOEventSummary) productCategoryBG.get("eventSummary");

// 2. If you do not have a business graph, obtain one.
DataObject businessGraph =
    dataObjectService.getBusinessGraph(product1);
BOEventSummary eventSummary2 =
    (BOEventSummary) productCategoryBG.get("eventSummary");

// 3. If you do not have a business graph, use a helper.
BOEventSummary eventSummary3 =
    dataObjectService.getEventSummary(product1);

// This is an alternate way to obtain the event summary.
eventSummary1.setObjectEventID(productCategory, "PC1_ID");
eventSummary1.setObjectEventID(product1, "P1_ID");
eventSummary1.setObjectEventID(product2, "P2_ID");

// Given a data object, obtain its object event ID.
String objectEventID = eventSummary1.getObjectEventID(product1);
Related reference
BOChangeSummary
BOCopy
BODataObject
BOEquality
BOFactory
BOType
BOTypeMetadata
BOXMLDocument
BOXMLSerializer
Related information
Interface BOEventSummary APIs

Terms of use |

Last updated: Tue Feb 21 17:21:48 2006

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