createBusinessObject()

Creates a new business object.

Syntax

public static BusinessObjectInterface createBusinessObject(
     String busObjName);
 
public static BusinessObjectInterface createBusinessObject(
     String busObjName, Locale localeObject);
 
public static BusinessObjectInterface createBusObj(
     String busObjName, String localeName);
 

Parameters

busObjName
Is the name of the business object to create.
localeObject
Is the Java Locale object that identifies the locale to associate with the business object.
localeName
Is the name of the locale to associate with the business object.

Return values

A BusinessObjectInterface object containing the newly created business object.

Exceptions

BusObjSpecNameNotFoundException
Thrown when the business object specification is not found for the name specified.

Notes

The createBusinessObject() method creates a new business object instance whose type is the business object definition you specify in name. If you specify a localeObject or localeName, this locale applies to the data in the business object, not to the name of the business object definition or its attributes (which must be characters in the code set associated with the U.S. English locale, en_US). For a description of the format for localeName, see "Design Considerations for an Internationalized Connector," on page 54.

Copyright IBM Corp. 1997, 2003