Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 7 (11.1.7)

E22562-07

oracle.apps.fnd.applcore.common
Class Preferences

java.lang.Object
  extended by oracle.apps.fnd.applcore.common.Preferences

public class Preferences
extends java.lang.Object


Constructor Summary
Preferences()
          Class that has methods to get User Preferences for formatting/NLS.
 
Method Summary
static java.lang.String currencyPattern(java.lang.String currencyCode)
          Returns the format mask for a given currency code.
static java.lang.String currencyPatternWithPrecisionAndSymbol(java.lang.String currencyCode, int precision, java.lang.String symbol)
          Returns the format mask for a given currency code.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Preferences

public Preferences()
Class that has methods to get User Preferences for formatting/NLS.

Method Detail

currencyPattern

public static java.lang.String currencyPattern(java.lang.String currencyCode)
Returns the format mask for a given currency code. The format mask takes into account currency precision, positive/negative number formatting preference. The precision will be derived from fnd_currencies table for the given currency code. The pattern will not include the currency symbol by default. Decimal and Group separators will be determined by config parameters set in trinidad-config.xml file which will point to applCorePrefs managed bean properties, which will in turn derive this from either User Preferences stored as profiles or LDAP.

Parameters:
currencyCode - the currency code for which format mask is to be generated.
Returns:
returns the format mask.
See Also:
currencyPatternWithPrecisionAndSymbol(java.lang.String, int, java.lang.String), PreferencesBean

currencyPatternWithPrecisionAndSymbol

public static java.lang.String currencyPatternWithPrecisionAndSymbol(java.lang.String currencyCode,
                                                                     int precision,
                                                                     java.lang.String symbol)
Returns the format mask for a given currency code. The format mask takes into account currency precision, format mask, currency symbol, positive/negative number formatting preference. Decimal and Group separators will be determined by config parameters set in trinidad-config.xml file which will point to applCorePrefs managed bean properties, which will in turn derive this from either User Preferences stored as profiles or LDAP.

Parameters:
currencyCode - the currency code for which format mask is to be generated.
precision - the precision to use in format mask. This will override the default precision determined for this currency from fnd_currencies table. If -1 is passed, the default precision for the currencyCode will be used.
symbol - determines whether the currency symbol, currencyCode or nothing should be used in determining the format mask. Valid values are symbol, code and none. If invalid value is passed in, the default will be none.
Returns:
returns the format mask.
See Also:
currencyPattern(java.lang.String), PreferencesBean

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 7 (11.1.7)

E22562-07

Copyright © 2013 Oracle. All Rights Reserved.