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