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_UOM extends PO 11 { 12 13 public X_C_UOM (Properties ctx, int C_UOM_ID) 14 { 15 super (ctx, C_UOM_ID); 16 26 } 27 28 public X_C_UOM (Properties ctx, ResultSet rs) 29 { 30 super (ctx, rs); 31 } 32 33 protected POInfo initPO (Properties ctx) 34 { 35 int AD_Table_ID = 146; 36 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 37 return poi; 38 } 39 public String toString() 40 { 41 StringBuffer sb = new StringBuffer ("X_C_UOM[").append(getID()).append("]"); 42 return sb.toString(); 43 } 44 void setC_UOM_ID (int C_UOM_ID) 45 { 46 setValueNoCheck ("C_UOM_ID", new Integer (C_UOM_ID)); 47 } 48 public int getC_UOM_ID() 49 { 50 Integer ii = (Integer )getValue("C_UOM_ID"); 51 if (ii == null) return 0; 52 return ii.intValue(); 53 } 54 public void setCostingPrecision (int CostingPrecision) 55 { 56 setValue ("CostingPrecision", new Integer (CostingPrecision)); 57 } 58 public int getCostingPrecision() 59 { 60 Integer ii = (Integer )getValue("CostingPrecision"); 61 if (ii == null) return 0; 62 return ii.intValue(); 63 } 64 public void setDescription (String Description) 65 { 66 setValue ("Description", Description); 67 } 68 public String getDescription() 69 { 70 return (String )getValue("Description"); 71 } 72 public void setIsDefault (boolean IsDefault) 73 { 74 setValue ("IsDefault", new Boolean (IsDefault)); 75 } 76 public boolean isDefault() 77 { 78 Boolean bb = (Boolean )getValue("IsDefault"); 79 if (bb != null) return bb.booleanValue(); 80 return false; 81 } 82 public void setName (String Name) 83 { 84 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 85 setValue ("Name", Name); 86 } 87 public String getName() 88 { 89 return (String )getValue("Name"); 90 } 91 public void setStdPrecision (int StdPrecision) 92 { 93 setValue ("StdPrecision", new Integer (StdPrecision)); 94 } 95 public int getStdPrecision() 96 { 97 Integer ii = (Integer )getValue("StdPrecision"); 98 if (ii == null) return 0; 99 return ii.intValue(); 100 } 101 public void setUOMSymbol (String UOMSymbol) 102 { 103 setValue ("UOMSymbol", UOMSymbol); 104 } 105 public String getUOMSymbol() 106 { 107 return (String )getValue("UOMSymbol"); 108 } 109 public void setX12DE355 (String X12DE355) 110 { 111 if (X12DE355 == null) throw new IllegalArgumentException ("X12DE355 is mandatory"); 112 setValue ("X12DE355", X12DE355); 113 } 114 public String getX12DE355() 115 { 116 return (String )getValue("X12DE355"); 117 } 118 } 119 | Popular Tags |