com.ibm.websphere.bo
Interface BOType

All Known Implementing Classes:
BOTypeImpl

public interface BOType

The BOType interface represents the client programming model interface for the BOType service. The BOType service provides the ability to create the types for business objects that are represented in memory by the commonj.sdo.Type object.

DataObjects are defined by the Service Data Object specification and represent a dynamically typed in memory object containing properties. The BOType service supports the creation of a Type object from a Business Object that can be modeled in several different forms, including the following:

Note: The getTypeByClass operation is not supported in the initial product release.


Field Summary
static java.lang.String COPYRIGHT
           
 
Method Summary
 commonj.sdo.Type getType(java.lang.String targetNamespace, java.lang.String complexTypeName)
          Returns the Type associated with the XML Schema complex type definition.
 commonj.sdo.Type getTypeByClass(java.lang.Class className)
          Returns the Type associated with the Java class name.
 commonj.sdo.Type getTypeByElement(java.lang.String targetNamespace, java.lang.String globalElementName)
          Returns the Type associated with the XML Schema global element definition.
 commonj.sdo.Type getTypeByMessage(java.lang.String targetNamespace, java.lang.String messageName)
          Returns the Type associated with the WSDL message definition.
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values
Method Detail

getType

public commonj.sdo.Type getType(java.lang.String targetNamespace,
                                java.lang.String complexTypeName)
Returns the Type associated with the XML Schema complex type definition.

BOType boType = (BOType) new ServiceManager().locateService("com/ibm/websphere/bo/BOType");
Type customerType = boType.getType("http://www.ibm.com/Customer", "CustomerType");

Parameters:
targetNamespace - The target namespace of the complex type definition. Can be null to represent the null target namespace.
complexTypeName - The name of the complex type.
Returns:
The created Type

getTypeByElement

public commonj.sdo.Type getTypeByElement(java.lang.String targetNamespace,
                                         java.lang.String globalElementName)
Returns the Type associated with the XML Schema global element definition.

BOType boType = (BOType) new ServiceManager().locateService("com/ibm/websphere/bo/BOType");
Type customerType = boType.getTypeByElement("http://www.ibm.com/Customer", "customer");

Parameters:
targetNamespace - The target namespace of the complex type definition. Can be null to represent the null target namespace.
globalElementName - The name of the global element.
Returns:
The created Type

getTypeByClass

public commonj.sdo.Type getTypeByClass(java.lang.Class className)
Returns the Type associated with the Java class name.

BOType boType = (BOType) new ServiceManager().locateService("com/ibm/websphere/bo/BOType");
DataObject customerType = boType.createTypeByClass(com.ibm.com.Customer.class);

Returns:
The created Type

getTypeByMessage

public commonj.sdo.Type getTypeByMessage(java.lang.String targetNamespace,
                                         java.lang.String messageName)
Returns the Type associated with the WSDL message definition.

BOType boType = (BOType) new ServiceManager().locateService("com/ibm/websphere/bo/BOType");
Type customerType = boType.createTypeByMessage("http://www.ibm.com/Customer", "customer");

Parameters:
targetNamespace - The target namespace of the message definition. Can be null to represent the null target namespace.
messageName - The name of the WSDL message
Returns:
The created Type