BODataObject

이 인터페이스를 사용하면 데이터 오브젝트 비즈니스 그래프, 변경 요약 또는 이벤트 요약 검색이 쉬워집니다.

용도

BODataObject를 사용하여 데이터 오브젝트 비즈니스 그래프, 변경 요약 또는 이벤트 요약 검색을 더 쉽게 하여 데이터 오브젝트 인터페이스가 제공하는 기능 이외의 추가 기능을 사용할 수 있게 됩니다. 비즈니스 그래프 계층 구조로 되어있는 경우 BODataObject에서 헬퍼 메소드를 제공합니다.

다음 예는 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);
관련 참조
BOChangeSummary
BOCopy
BOEquality
BOEventSummary
BOFactory
BOType
BOTypeMetadata
BOXMLDocument
BOXMLSerializer
관련 정보
인터페이스 BODataOBject API

Terms of use |

Last updated: Thu Mar 23 18:54:58 2006

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