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_Process extends PO 11 { 12 13 public X_AD_Process (Properties ctx, int AD_Process_ID) 14 { 15 super (ctx, AD_Process_ID); 16 27 } 28 29 public X_AD_Process (Properties ctx, ResultSet rs) 30 { 31 super (ctx, rs); 32 } 33 34 protected POInfo initPO (Properties ctx) 35 { 36 int AD_Table_ID = 284; 37 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 38 return poi; 39 } 40 public String toString() 41 { 42 StringBuffer sb = new StringBuffer ("X_AD_Process[").append(getID()).append("]"); 43 return sb.toString(); 44 } 45 public void setAD_PrintFormat_ID (int AD_PrintFormat_ID) 46 { 47 if (AD_PrintFormat_ID == 0) setValue ("AD_PrintFormat_ID", null); 48 else 49 setValue ("AD_PrintFormat_ID", new Integer (AD_PrintFormat_ID)); 50 } 51 public int getAD_PrintFormat_ID() 52 { 53 Integer ii = (Integer )getValue("AD_PrintFormat_ID"); 54 if (ii == null) return 0; 55 return ii.intValue(); 56 } 57 void setAD_Process_ID (int AD_Process_ID) 58 { 59 setValueNoCheck ("AD_Process_ID", new Integer (AD_Process_ID)); 60 } 61 public int getAD_Process_ID() 62 { 63 Integer ii = (Integer )getValue("AD_Process_ID"); 64 if (ii == null) return 0; 65 return ii.intValue(); 66 } 67 public void setAD_ReportView_ID (int AD_ReportView_ID) 68 { 69 if (AD_ReportView_ID == 0) setValue ("AD_ReportView_ID", null); 70 else 71 setValue ("AD_ReportView_ID", new Integer (AD_ReportView_ID)); 72 } 73 public int getAD_ReportView_ID() 74 { 75 Integer ii = (Integer )getValue("AD_ReportView_ID"); 76 if (ii == null) return 0; 77 return ii.intValue(); 78 } 79 public static final String ACCESSLEVEL_Organization = "1"; 80 public static final String ACCESSLEVEL_ClientPlusOrganization = "3"; 81 public static final String ACCESSLEVEL_SystemOnly = "4"; 82 public static final String ACCESSLEVEL_All = "7"; 83 public static final String ACCESSLEVEL_ClientOnly = "2"; 84 public static final String ACCESSLEVEL_SystemPlusClient = "6"; 85 public void setAccessLevel (String AccessLevel) 86 { 87 if (AccessLevel.equals("1") || AccessLevel.equals("3") || AccessLevel.equals("4") || AccessLevel.equals("7") || AccessLevel.equals("2") || AccessLevel.equals("6")); 88 else throw new IllegalArgumentException ("AccessLevel Invalid value - Reference_ID=5 - 1 - 3 - 4 - 7 - 2 - 6"); 89 if (AccessLevel == null) throw new IllegalArgumentException ("AccessLevel is mandatory"); 90 setValue ("AccessLevel", AccessLevel); 91 } 92 public String getAccessLevel() 93 { 94 return (String )getValue("AccessLevel"); 95 } 96 public void setClassname (String Classname) 97 { 98 setValue ("Classname", Classname); 99 } 100 public String getClassname() 101 { 102 return (String )getValue("Classname"); 103 } 104 public void setDescription (String Description) 105 { 106 setValue ("Description", Description); 107 } 108 public String getDescription() 109 { 110 return (String )getValue("Description"); 111 } 112 public static final String ENTITYTYPE_Dictionary = "D"; 113 public static final String ENTITYTYPE_Compiere = "C"; 114 public static final String ENTITYTYPE_UserMaintained = "U"; 115 public static final String ENTITYTYPE_Applications = "A"; 116 public void setEntityType (String EntityType) 117 { 118 if (EntityType.equals("D") || EntityType.equals("C") || EntityType.equals("U") || EntityType.equals("A")); 119 else throw new IllegalArgumentException ("EntityType Invalid value - Reference_ID=245 - D - C - U - A"); 120 if (EntityType == null) throw new IllegalArgumentException ("EntityType is mandatory"); 121 setValue ("EntityType", EntityType); 122 } 123 public String getEntityType() 124 { 125 return (String )getValue("EntityType"); 126 } 127 public void setHelp (String Help) 128 { 129 setValue ("Help", Help); 130 } 131 public String getHelp() 132 { 133 return (String )getValue("Help"); 134 } 135 public void setIsDirectPrint (boolean IsDirectPrint) 136 { 137 setValue ("IsDirectPrint", new Boolean (IsDirectPrint)); 138 } 139 public boolean isDirectPrint() 140 { 141 Boolean bb = (Boolean )getValue("IsDirectPrint"); 142 if (bb != null) return bb.booleanValue(); 143 return false; 144 } 145 public void setIsReport (boolean IsReport) 146 { 147 setValue ("IsReport", new Boolean (IsReport)); 148 } 149 public boolean isReport() 150 { 151 Boolean bb = (Boolean )getValue("IsReport"); 152 if (bb != null) return bb.booleanValue(); 153 return false; 154 } 155 public void setIsUserStartable (boolean IsUserStartable) 156 { 157 setValue ("IsUserStartable", new Boolean (IsUserStartable)); 158 } 159 public boolean isUserStartable() 160 { 161 Boolean bb = (Boolean )getValue("IsUserStartable"); 162 if (bb != null) return bb.booleanValue(); 163 return false; 164 } 165 public void setName (String Name) 166 { 167 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 168 setValue ("Name", Name); 169 } 170 public String getName() 171 { 172 return (String )getValue("Name"); 173 } 174 public void setProcedureName (String ProcedureName) 175 { 176 setValue ("ProcedureName", ProcedureName); 177 } 178 public String getProcedureName() 179 { 180 return (String )getValue("ProcedureName"); 181 } 182 public void setStatistic_Count (int Statistic_Count) 183 { 184 setValue ("Statistic_Count", new Integer (Statistic_Count)); 185 } 186 public int getStatistic_Count() 187 { 188 Integer ii = (Integer )getValue("Statistic_Count"); 189 if (ii == null) return 0; 190 return ii.intValue(); 191 } 192 public void setStatistic_Seconds (int Statistic_Seconds) 193 { 194 setValue ("Statistic_Seconds", new Integer (Statistic_Seconds)); 195 } 196 public int getStatistic_Seconds() 197 { 198 Integer ii = (Integer )getValue("Statistic_Seconds"); 199 if (ii == null) return 0; 200 return ii.intValue(); 201 } 202 public void setValue (String Value) 203 { 204 if (Value == null) throw new IllegalArgumentException ("Value is mandatory"); 205 setValue ("Value", Value); 206 } 207 public String getValue() 208 { 209 return (String )getValue("Value"); 210 } 211 } 212 | Popular Tags |