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_CostType extends PO 11 { 12 13 public X_C_CostType (Properties ctx, int C_CostType_ID) 14 { 15 super (ctx, C_CostType_ID); 16 23 } 24 25 public X_C_CostType (Properties ctx, ResultSet rs) 26 { 27 super (ctx, rs); 28 } 29 30 protected POInfo initPO (Properties ctx) 31 { 32 int AD_Table_ID = 586; 33 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 34 return poi; 35 } 36 public String toString() 37 { 38 StringBuffer sb = new StringBuffer ("X_C_CostType[").append(getID()).append("]"); 39 return sb.toString(); 40 } 41 void setC_CostType_ID (int C_CostType_ID) 42 { 43 setValueNoCheck ("C_CostType_ID", new Integer (C_CostType_ID)); 44 } 45 public int getC_CostType_ID() 46 { 47 Integer ii = (Integer )getValue("C_CostType_ID"); 48 if (ii == null) return 0; 49 return ii.intValue(); 50 } 51 public void setDescription (String Description) 52 { 53 setValue ("Description", Description); 54 } 55 public String getDescription() 56 { 57 return (String )getValue("Description"); 58 } 59 public void setHelp (String Help) 60 { 61 setValue ("Help", Help); 62 } 63 public String getHelp() 64 { 65 return (String )getValue("Help"); 66 } 67 public void setIsDirectCost (boolean IsDirectCost) 68 { 69 setValue ("IsDirectCost", new Boolean (IsDirectCost)); 70 } 71 public boolean isDirectCost() 72 { 73 Boolean bb = (Boolean )getValue("IsDirectCost"); 74 if (bb != null) return bb.booleanValue(); 75 return false; 76 } 77 public void setName (String Name) 78 { 79 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 80 setValue ("Name", Name); 81 } 82 public String getName() 83 { 84 return (String )getValue("Name"); 85 } 86 } 87 | Popular Tags |