BOType

This interface provides a mechanism to obtain the service data object (SDO) type of a business graph or business object that mirrors what Class.forName() provides for Java class names.

Purpose

Obtain the SDO type of a business graph or business object, mirroring what Class.forName() provides for Java class names. This information can be obtained by specifying the following information:
  • The statically typed SDO interface class name.
  • The target namespace and the complex type name of the dynamically typed SDO.
  • The target namespace and the global anonymous complex type name

Examples

This is an example of providing an interface class that represents a statically typed SDO.

BOType typeService = (BOType) new 
		ServiceManager().locateService("com/ibm/websphere/bo/BOType");

Type productType1 = typeService.getTypeByClass(com.scm.pc.model.Product.class);

This is an example of providing the target namespace and the complex type name.

BOType typeService = (BOType) new 
		ServiceManager().locateService("com/ibm/websphere/bo/BOType");

Type productType2 = 
		typeService.getType("http://www.scm.com/ProductTypes", "Product");

This is an example of providing the target namespace and the anonymous complex type element name.

BOType typeService = (BOType) new 
		ServiceManager().locateService("com/ibm/websphere/bo/BOType");

Type productType3 = 
		typeService.getTypeByElement("http://www.scm.com/Product", "product");

Parent topic: Programming interfaces

Related reference
BOChangeSummary
BOCopy
BODataObject
BOEquality
BOEventSummary
BOFactory
BOTypeMetadata
BOXMLDocument
BOXMLSerializer

Related information
Interface BOType 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)