Questa interfaccia fornisce un meccanismo per ottenere i il tipo SDO (service data object) di un grafico o di un oggetto business che riflette ciò che Class.forName() fornisce per i nomi della classe Java.
Questo è un esempio per fornire una classe d'interfaccia che rappresenta un SDO immesso statisticamente.
BOType typeService = (BOType) new ServiceManager().locateService("com/ibm/websphere/bo/BOType"); Type productType1 = typeService.getTypeByClass(com.scm.pc.model.Product.class);
Questo è un esempio per fornire lo spazio dei nomi di destinazione e il nome del tipo complesso.
BOType typeService = (BOType) new ServiceManager().locateService("com/ibm/websphere/bo/BOType"); Type productType2 = typeService.getType("http://www.scm.com/ProductTypes", "Product");
Questo è un esempio per fornire lo spazio dei nomi di destinazione e il nome dell'elemento di tipo complesso anonimo.
BOType typeService = (BOType) new ServiceManager().locateService("com/ibm/websphere/bo/BOType"); Type productType3 = typeService.getTypeByElement("http://www.scm.com/Product", "product");