이 인터페이스는 Class.forName()이 Java 클래스 이름에 제공하는 것을 미러링하는 비즈니스 오브젝트 또는 비즈니스 그래프의 서비스 데이터 오브젝트(SDO) 유형을 얻는 메커니즘을 제공합니다.
다음은 정적으로 입력된 SDO를 표시하는 인터페이스 클래스를 제공하는 경우에 대한 예입니다.
BOType typeService = (BOType) new ServiceManager().locateService("com/ibm/websphere/bo/BOType"); Type productType1 = typeService.getTypeByClass(com.scm.pc.model.Product.class);
다음은 대상 네임 스페이스 및 복합 유형 이름을 제공하는 경우의 예입니다.
BOType typeService = (BOType) new ServiceManager().locateService("com/ibm/websphere/bo/BOType"); Type productType2 = typeService.getType("http://www.scm.com/ProductTypes", "Product");
다음은 대상 네임 스페이스 및 익명 복합 유형 요소 이름을 제공하는 경우의 예입니다.
BOType typeService = (BOType) new ServiceManager().locateService("com/ibm/websphere/bo/BOType"); Type productType3 = typeService.getTypeByElement("http://www.scm.com/Product", "product");