getLocale()

Retrieves the locale associated with the business object.

Syntax

public Locale getLocale();

Parameters

None.

Return values

A Java Locale object that describes the locale associated with the current business object.

Notes

The getLocale() method returns the business-object locale, which 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

createBusObj(), getGlobalLocale(), setLocale()

Copyright IBM Corporation 1997, 2004. All Rights Reserved.