Class MCurrency

    • Constructor Detail

      • MCurrency

        public MCurrency​(Properties ctx,
                         int C_Currency_ID,
                         String trxName)
        Currency Constructor
        Parameters:
        ctx - context
        C_Currency_ID - id
        trxName - transaction
      • MCurrency

        public MCurrency​(Properties ctx,
                         ResultSet rs,
                         String trxName)
        Resultset constructor
        Parameters:
        ctx -
        rs -
        trxName -
      • MCurrency

        public MCurrency​(Properties ctx,
                         String ISO_Code,
                         String Description,
                         String CurSymbol,
                         int StdPrecision,
                         int CostingPrecision,
                         String trxName)
        Currency Constructor
        Parameters:
        ctx - context
        ISO_Code - ISO
        Description - Name
        CurSymbol - symbol
        StdPrecision - prec
        CostingPrecision - prec
        trxName - transaction
      • MCurrency

        public MCurrency​(MCurrency copy)
        Parameters:
        copy -
    • Method Detail

      • get

        public static MCurrency get​(String ISOcode)
        Get Currency using ISO code from cache (immutable)
        Parameters:
        ISOcode - Iso code
        Returns:
        MCurrency
      • get

        public static MCurrency get​(Properties ctx,
                                    String ISOcode)
        Get Currency using ISO code from cache (immutable)
        Parameters:
        ctx - Context
        ISOcode - Iso code
        Returns:
        MCurrency
      • get

        public static MCurrency get​(int C_Currency_ID)
        Get Currency (immutable)
        Parameters:
        C_Currency_ID - currency
        Returns:
        ISO Code
      • get

        public static MCurrency get​(Properties ctx,
                                    int C_Currency_ID)
        Get Currency (immutable)
        Parameters:
        ctx - Context
        C_Currency_ID - currency
        Returns:
        ISO Code
      • getISO_Code

        public static String getISO_Code​(Properties ctx,
                                         int C_Currency_ID)
        Get Currency Iso Code.
        Parameters:
        ctx - Context
        C_Currency_ID - currency
        Returns:
        ISO Code
      • getStdPrecision

        public static int getStdPrecision​(Properties ctx,
                                          int C_Currency_ID)
        Get Standard Precision.
        Parameters:
        ctx - Context
        C_Currency_ID - currency
        Returns:
        Standard Precision
      • getCostingPrecision

        public static int getCostingPrecision​(Properties ctx,
                                              int C_Currency_ID)
        Get Costing Precision.
        Parameters:
        ctx - Context
        C_Currency_ID - currency
        Returns:
        Costing Precision