setLocale()

Sets the locale for the business object.

Syntax

public void setLocale(Locale localeObj);
 public void setLocale(String localeName);
 

Parameters

localeName
Is the name of the locale to associate with the current business object.
localeObj
Is a Java Locale object that describes the locale to associate with the current business object.

Return values

None.

Exceptions

IllegalLocaleException
Thrown if the locale name specified is not valid.

Notes

The setLocale() method sets the business-object locale, which identifies the locale that is associated with the business object. This locale indicates the language and code encoding associated with the data in the business object, not with 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). If the business object does not have a locale associated with it, the connector framework assigns the connector-framework locale as the business-object locale.

See also

getLocale()

Copyright IBM Corp. 1997, 2004