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_ProjectType extends PO 11 { 12 13 public X_C_ProjectType (Properties ctx, int C_ProjectType_ID) 14 { 15 super (ctx, C_ProjectType_ID); 16 23 } 24 25 public X_C_ProjectType (Properties ctx, ResultSet rs) 26 { 27 super (ctx, rs); 28 } 29 30 protected POInfo initPO (Properties ctx) 31 { 32 int AD_Table_ID = 575; 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_ProjectType[").append(getID()).append("]"); 39 return sb.toString(); 40 } 41 void setC_ProjectType_ID (int C_ProjectType_ID) 42 { 43 setValueNoCheck ("C_ProjectType_ID", new Integer (C_ProjectType_ID)); 44 } 45 public int getC_ProjectType_ID() 46 { 47 Integer ii = (Integer )getValue("C_ProjectType_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 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 static final String PROJECTCATEGORY_General = "N"; 77 public static final String PROJECTCATEGORY_AssetProject = "A"; 78 public static final String PROJECTCATEGORY_WorkOrderJob = "W"; 79 public static final String PROJECTCATEGORY_ServiceChargeProject = "S"; 80 void setProjectCategory (String ProjectCategory) 81 { 82 if (ProjectCategory.equals("N") || ProjectCategory.equals("A") || ProjectCategory.equals("W") || ProjectCategory.equals("S")); 83 else throw new IllegalArgumentException ("ProjectCategory Invalid value - Reference_ID=288 - N - A - W - S"); 84 if (ProjectCategory == null) throw new IllegalArgumentException ("ProjectCategory is mandatory"); 85 setValueNoCheck ("ProjectCategory", ProjectCategory); 86 } 87 public String getProjectCategory() 88 { 89 return (String )getValue("ProjectCategory"); 90 } 91 } 92
| Popular Tags
|