Class MCurrency

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_C_Currency, I_Persistent, Evaluatee, ImmutablePOSupport

public class MCurrency extends X_C_Currency implements ImmutablePOSupport
Currency Model.
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MCurrency

      public MCurrency(Properties ctx, String C_Currency_UU, String trxName)
      UUID based Constructor
      Parameters:
      ctx - Context
      C_Currency_UU - UUID key
      trxName - Transaction
    • 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)
      Copy constructor
      Parameters:
      copy -
    • MCurrency

      public MCurrency(Properties ctx, MCurrency copy)
      Copy constructor
      Parameters:
      ctx -
      copy -
    • MCurrency

      public MCurrency(Properties ctx, MCurrency copy, String trxName)
      Copy constructor
      Parameters:
      ctx -
      copy -
      trxName -
  • Method Details

    • 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
    • toString

      public String toString()
      String Representation
      Overrides:
      toString in class X_C_Currency
      Returns:
      info
    • getCostingPrecision

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

      public MCurrency markImmutable()
      Description copied from interface: ImmutablePOSupport
      mark PO as immutable
      Specified by:
      markImmutable in interface ImmutablePOSupport
      Returns:
      PO