1 2 package org.compiere.model; 3 import java.util.*; 4 import java.sql.*; 5 import java.math.*; 6 import java.io.Serializable ; 7 import org.compiere.util.*; 8 10 public class X_C_Currency extends PO 11 { 12 13 public X_C_Currency (Properties ctx, int C_Currency_ID) 14 { 15 super (ctx, C_Currency_ID); 16 27 } 28 29 public X_C_Currency (Properties ctx, ResultSet rs) 30 { 31 super (ctx, rs); 32 } 33 34 protected POInfo initPO (Properties ctx) 35 { 36 int AD_Table_ID = 141; 37 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 38 return poi; 39 } 40 public String toString() 41 { 42 StringBuffer sb = new StringBuffer ("X_C_Currency[").append(getID()).append("]"); 43 return sb.toString(); 44 } 45 void setC_Currency_ID (int C_Currency_ID) 46 { 47 setValueNoCheck ("C_Currency_ID", new Integer (C_Currency_ID)); 48 } 49 public int getC_Currency_ID() 50 { 51 Integer ii = (Integer )getValue("C_Currency_ID"); 52 if (ii == null) return 0; 53 return ii.intValue(); 54 } 55 public void setCostingPrecision (int CostingPrecision) 56 { 57 setValue ("CostingPrecision", new Integer (CostingPrecision)); 58 } 59 public int getCostingPrecision() 60 { 61 Integer ii = (Integer )getValue("CostingPrecision"); 62 if (ii == null) return 0; 63 return ii.intValue(); 64 } 65 public void setCurSymbol (String CurSymbol) 66 { 67 setValue ("CurSymbol", CurSymbol); 68 } 69 public String getCurSymbol() 70 { 71 return (String )getValue("CurSymbol"); 72 } 73 public void setDescription (String Description) 74 { 75 if (Description == null) throw new IllegalArgumentException ("Description is mandatory"); 76 setValue ("Description", Description); 77 } 78 public String getDescription() 79 { 80 return (String )getValue("Description"); 81 } 82 public void setEMUEntryDate (Timestamp EMUEntryDate) 83 { 84 setValue ("EMUEntryDate", EMUEntryDate); 85 } 86 public Timestamp getEMUEntryDate() 87 { 88 return (Timestamp)getValue("EMUEntryDate"); 89 } 90 public void setEMURate (BigDecimal EMURate) 91 { 92 setValue ("EMURate", EMURate); 93 } 94 public BigDecimal getEMURate() 95 { 96 BigDecimal bd = (BigDecimal)getValue("EMURate"); 97 if (bd == null) return Env.ZERO; 98 return bd; 99 } 100 public void setISO_Code (String ISO_Code) 101 { 102 if (ISO_Code == null) throw new IllegalArgumentException ("ISO_Code is mandatory"); 103 setValue ("ISO_Code", ISO_Code); 104 } 105 public String getISO_Code() 106 { 107 return (String )getValue("ISO_Code"); 108 } 109 public void setIsEMUMember (boolean IsEMUMember) 110 { 111 setValue ("IsEMUMember", new Boolean (IsEMUMember)); 112 } 113 public boolean isEMUMember() 114 { 115 Boolean bb = (Boolean )getValue("IsEMUMember"); 116 if (bb != null) return bb.booleanValue(); 117 return false; 118 } 119 public void setIsEuro (boolean IsEuro) 120 { 121 setValue ("IsEuro", new Boolean (IsEuro)); 122 } 123 public boolean isEuro() 124 { 125 Boolean bb = (Boolean )getValue("IsEuro"); 126 if (bb != null) return bb.booleanValue(); 127 return false; 128 } 129 public void setStdPrecision (int StdPrecision) 130 { 131 setValue ("StdPrecision", new Integer (StdPrecision)); 132 } 133 public int getStdPrecision() 134 { 135 Integer ii = (Integer )getValue("StdPrecision"); 136 if (ii == null) return 0; 137 return ii.intValue(); 138 } 139 } 140 | Popular Tags |