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_Task extends PO 11 { 12 13 public X_AD_Task (Properties ctx, int AD_Task_ID) 14 { 15 super (ctx, AD_Task_ID); 16 25 } 26 27 public X_AD_Task (Properties ctx, ResultSet rs) 28 { 29 super (ctx, rs); 30 } 31 32 protected POInfo initPO (Properties ctx) 33 { 34 int AD_Table_ID = 118; 35 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 36 return poi; 37 } 38 public String toString() 39 { 40 StringBuffer sb = new StringBuffer ("X_AD_Task[").append(getID()).append("]"); 41 return sb.toString(); 42 } 43 void setAD_Task_ID (int AD_Task_ID) 44 { 45 setValueNoCheck ("AD_Task_ID", new Integer (AD_Task_ID)); 46 } 47 public int getAD_Task_ID() 48 { 49 Integer ii = (Integer )getValue("AD_Task_ID"); 50 if (ii == null) return 0; 51 return ii.intValue(); 52 } 53 public static final String ACCESSLEVEL_Organization = "1"; 54 public static final String ACCESSLEVEL_ClientPlusOrganization = "3"; 55 public static final String ACCESSLEVEL_SystemOnly = "4"; 56 public static final String ACCESSLEVEL_All = "7"; 57 public static final String ACCESSLEVEL_ClientOnly = "2"; 58 public static final String ACCESSLEVEL_SystemPlusClient = "6"; 59 public void setAccessLevel (String AccessLevel) 60 { 61 if (AccessLevel.equals("1") || AccessLevel.equals("3") || AccessLevel.equals("4") || AccessLevel.equals("7") || AccessLevel.equals("2") || AccessLevel.equals("6")); 62 else throw new IllegalArgumentException ("AccessLevel Invalid value - Reference_ID=5 - 1 - 3 - 4 - 7 - 2 - 6"); 63 if (AccessLevel == null) throw new IllegalArgumentException ("AccessLevel is mandatory"); 64 setValue ("AccessLevel", AccessLevel); 65 } 66 public String getAccessLevel() 67 { 68 return (String )getValue("AccessLevel"); 69 } 70 public void setDescription (String Description) 71 { 72 setValue ("Description", Description); 73 } 74 public String getDescription() 75 { 76 return (String )getValue("Description"); 77 } 78 public static final String ENTITYTYPE_Dictionary = "D"; 79 public static final String ENTITYTYPE_Compiere = "C"; 80 public static final String ENTITYTYPE_UserMaintained = "U"; 81 public static final String ENTITYTYPE_Applications = "A"; 82 public void setEntityType (String EntityType) 83 { 84 if (EntityType.equals("D") || EntityType.equals("C") || EntityType.equals("U") || EntityType.equals("A")); 85 else throw new IllegalArgumentException ("EntityType Invalid value - Reference_ID=245 - D - C - U - A"); 86 if (EntityType == null) throw new IllegalArgumentException ("EntityType is mandatory"); 87 setValue ("EntityType", EntityType); 88 } 89 public String getEntityType() 90 { 91 return (String )getValue("EntityType"); 92 } 93 public void setHelp (String Help) 94 { 95 setValue ("Help", Help); 96 } 97 public String getHelp() 98 { 99 return (String )getValue("Help"); 100 } 101 public void setName (String Name) 102 { 103 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 104 setValue ("Name", Name); 105 } 106 public String getName() 107 { 108 return (String )getValue("Name"); 109 } 110 public void setOS_Command (String OS_Command) 111 { 112 if (OS_Command == null) throw new IllegalArgumentException ("OS_Command is mandatory"); 113 setValue ("OS_Command", OS_Command); 114 } 115 public String getOS_Command() 116 { 117 return (String )getValue("OS_Command"); 118 } 119 } 120 | Popular Tags |