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_Form extends PO 11 { 12 13 public X_AD_Form (Properties ctx, int AD_Form_ID) 14 { 15 super (ctx, AD_Form_ID); 16 25 } 26 27 public X_AD_Form (Properties ctx, ResultSet rs) 28 { 29 super (ctx, rs); 30 } 31 32 protected POInfo initPO (Properties ctx) 33 { 34 int AD_Table_ID = 376; 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_Form[").append(getID()).append("]"); 41 return sb.toString(); 42 } 43 void setAD_Form_ID (int AD_Form_ID) 44 { 45 setValueNoCheck ("AD_Form_ID", new Integer (AD_Form_ID)); 46 } 47 public int getAD_Form_ID() 48 { 49 Integer ii = (Integer )getValue("AD_Form_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 setClassname (String Classname) 71 { 72 if (Classname == null) throw new IllegalArgumentException ("Classname is mandatory"); 73 setValue ("Classname", Classname); 74 } 75 public String getClassname() 76 { 77 return (String )getValue("Classname"); 78 } 79 public void setDescription (String Description) 80 { 81 setValue ("Description", Description); 82 } 83 public String getDescription() 84 { 85 return (String )getValue("Description"); 86 } 87 public static final String ENTITYTYPE_Dictionary = "D"; 88 public static final String ENTITYTYPE_Compiere = "C"; 89 public static final String ENTITYTYPE_UserMaintained = "U"; 90 public static final String ENTITYTYPE_Applications = "A"; 91 public void setEntityType (String EntityType) 92 { 93 if (EntityType.equals("D") || EntityType.equals("C") || EntityType.equals("U") || EntityType.equals("A")); 94 else throw new IllegalArgumentException ("EntityType Invalid value - Reference_ID=245 - D - C - U - A"); 95 if (EntityType == null) throw new IllegalArgumentException ("EntityType is mandatory"); 96 setValue ("EntityType", EntityType); 97 } 98 public String getEntityType() 99 { 100 return (String )getValue("EntityType"); 101 } 102 public void setHelp (String Help) 103 { 104 setValue ("Help", Help); 105 } 106 public String getHelp() 107 { 108 return (String )getValue("Help"); 109 } 110 public void setName (String Name) 111 { 112 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 113 setValue ("Name", Name); 114 } 115 public String getName() 116 { 117 return (String )getValue("Name"); 118 } 119 } 120 | Popular Tags |