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_AD_Workbench extends PO 11 { 12 13 public X_AD_Workbench (Properties ctx, int AD_Workbench_ID) 14 { 15 super (ctx, AD_Workbench_ID); 16 24 } 25 26 public X_AD_Workbench (Properties ctx, ResultSet rs) 27 { 28 super (ctx, rs); 29 } 30 31 protected POInfo initPO (Properties ctx) 32 { 33 int AD_Table_ID = 468; 34 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 35 return poi; 36 } 37 public String toString() 38 { 39 StringBuffer sb = new StringBuffer ("X_AD_Workbench[").append(getID()).append("]"); 40 return sb.toString(); 41 } 42 public void setAD_Color_ID (Object AD_Color_ID) 43 { 44 setValue ("AD_Color_ID", AD_Color_ID); 45 } 46 public Object getAD_Color_ID() 47 { 48 return getValue("AD_Color_ID"); 49 } 50 public void setAD_Column_ID (int AD_Column_ID) 51 { 52 setValue ("AD_Column_ID", new Integer (AD_Column_ID)); 53 } 54 public int getAD_Column_ID() 55 { 56 Integer ii = (Integer )getValue("AD_Column_ID"); 57 if (ii == null) return 0; 58 return ii.intValue(); 59 } 60 public void setAD_Image_ID (Object AD_Image_ID) 61 { 62 setValue ("AD_Image_ID", AD_Image_ID); 63 } 64 public Object getAD_Image_ID() 65 { 66 return getValue("AD_Image_ID"); 67 } 68 void setAD_Workbench_ID (int AD_Workbench_ID) 69 { 70 setValueNoCheck ("AD_Workbench_ID", new Integer (AD_Workbench_ID)); 71 } 72 public int getAD_Workbench_ID() 73 { 74 Integer ii = (Integer )getValue("AD_Workbench_ID"); 75 if (ii == null) return 0; 76 return ii.intValue(); 77 } 78 public void setDescription (String Description) 79 { 80 setValue ("Description", Description); 81 } 82 public String getDescription() 83 { 84 return (String )getValue("Description"); 85 } 86 public static final String ENTITYTYPE_Dictionary = "D"; 87 public static final String ENTITYTYPE_Compiere = "C"; 88 public static final String ENTITYTYPE_UserMaintained = "U"; 89 public static final String ENTITYTYPE_Applications = "A"; 90 public void setEntityType (String EntityType) 91 { 92 if (EntityType.equals("D") || EntityType.equals("C") || EntityType.equals("U") || EntityType.equals("A")); 93 else throw new IllegalArgumentException ("EntityType Invalid value - Reference_ID=245 - D - C - U - A"); 94 if (EntityType == null) throw new IllegalArgumentException ("EntityType is mandatory"); 95 setValue ("EntityType", EntityType); 96 } 97 public String getEntityType() 98 { 99 return (String )getValue("EntityType"); 100 } 101 public void setHelp (String Help) 102 { 103 setValue ("Help", Help); 104 } 105 public String getHelp() 106 { 107 return (String )getValue("Help"); 108 } 109 public void setName (String Name) 110 { 111 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 112 setValue ("Name", Name); 113 } 114 public String getName() 115 { 116 return (String )getValue("Name"); 117 } 118 public void setPA_Goal_ID (int PA_Goal_ID) 119 { 120 if (PA_Goal_ID == 0) setValue ("PA_Goal_ID", null); 121 else 122 setValue ("PA_Goal_ID", new Integer (PA_Goal_ID)); 123 } 124 public int getPA_Goal_ID() 125 { 126 Integer ii = (Integer )getValue("PA_Goal_ID"); 127 if (ii == null) return 0; 128 return ii.intValue(); 129 } 130 } 131
| Popular Tags
|