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