|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The BOFactory interface represents the client programming model interface for the BOFactory service. The BOFactory service provides the ability to create business objects and business documents that are represented in memory by the commonj.sdo.DataObject and com.ibm.websphere.bo.BOXMLDocument objects.
DataObjects are defined by the Service Data Object specification and represent a dynamically typed in memory object containing properties. The BOFactory service supports the creation of a DataObject whose type information can be modeled in several different forms, including the following:
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
Method Summary | |
---|---|
commonj.sdo.DataObject |
create(java.lang.String targetNamespace,
java.lang.String complexTypeName)
Creates a DataObject from an XML Schema complex type definition. |
commonj.sdo.DataObject |
createByClass(java.lang.Class iterfaceClass)
Creates a DataObject from a Java class name. |
commonj.sdo.DataObject |
createByElement(java.lang.String targetNamespace,
java.lang.String globalElementName)
Creates a DataObject from an XML Schema global element definition. |
commonj.sdo.DataObject |
createByMessage(java.lang.String targetNamespace,
java.lang.String messageName)
Creates a DataObject from a WSDL message definition. |
commonj.sdo.DataObject |
createByType(commonj.sdo.Type type)
Creates a DataObject from a commonj.sdo.Type. |
BOXMLDocument |
createXMLDocument(java.lang.String targetNamespace,
java.lang.String globalElementName)
Creates a BOXMLDocument from an XML Schema global element definition. |
Field Detail |
public static final java.lang.String COPYRIGHT
Method Detail |
public commonj.sdo.DataObject create(java.lang.String targetNamespace, java.lang.String complexTypeName)
BOFactory boFactory = (BOFactory) new ServiceManager().locateService("com/ibm/websphere/bo/BOFactory");
DataObject customer = boFactory.create("http://www.ibm.com/Customer", "CustomerType");
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.
public commonj.sdo.DataObject createByElement(java.lang.String targetNamespace, java.lang.String globalElementName)
BOFactory boFactory = (BOFactory) new ServiceManager().locateService("com/ibm/websphere/bo/BOFactory");
DataObject customer = boFactory.createByElement("http://www.ibm.com/Customer", "customer");
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.
public commonj.sdo.DataObject createByType(commonj.sdo.Type type)
BOFactory boFactory = (BOFactory) new ServiceManager().locateService("com/ibm/websphere/bo/BOFactory");
BOType boType = (BOType) new ServiceManager().locateService("com/ibm/websphere/bo/BOType");
Type customerType = boType.create("http://www.ibm.com/Customer", "CustomerType");
DataObject customer = boFactory.createFromType(customerType);
type
- The Type object representing the type information of the Business Object.
public commonj.sdo.DataObject createByClass(java.lang.Class iterfaceClass)
BOFactory boFactory = (BOFactory) new ServiceManager().locateService("com/ibm/websphere/bo/BOFactory");
DataObject customer = boFactory.create(com.ibm.com.Customer.class);
iterfaceClass
- The Java class that represents the interface
public commonj.sdo.DataObject createByMessage(java.lang.String targetNamespace, java.lang.String messageName)
BOFactory boFactory = (BOFactory) new ServiceManager().locateService("com/ibm/websphere/bo/BOFactory");
DataObject customer = boFactory.createByMessage("http://www.ibm.com/Customer", "customer");
targetNamespace
- The target namespace of the message definition. Can be
null to represent the null target namespace.messageName
- The name of the WSDL message
public BOXMLDocument createXMLDocument(java.lang.String targetNamespace, java.lang.String globalElementName)
BOFactory boFactory = (BOFactory) new ServiceManager().locateService("com/ibm/websphere/bo/BOFactory");
BOXMLDocument customerDocument = boFactory.createXMLDocument("http://www.ibm.com/Customer", "customer");
targetNamespace
- The target namespace of the message definition. Can be
null to represent the null target namespace.globalElementName
- The name of the global element definition
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |