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_Element extends PO 11 { 12 13 public X_AD_Element (Properties ctx, int AD_Element_ID) 14 { 15 super (ctx, AD_Element_ID); 16 25 } 26 27 public X_AD_Element (Properties ctx, ResultSet rs) 28 { 29 super (ctx, rs); 30 } 31 32 protected POInfo initPO (Properties ctx) 33 { 34 int AD_Table_ID = 276; 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_Element[").append(getID()).append("]"); 41 return sb.toString(); 42 } 43 void setAD_Element_ID (int AD_Element_ID) 44 { 45 setValueNoCheck ("AD_Element_ID", new Integer (AD_Element_ID)); 46 } 47 public int getAD_Element_ID() 48 { 49 Integer ii = (Integer )getValue("AD_Element_ID"); 50 if (ii == null) return 0; 51 return ii.intValue(); 52 } 53 public void setColumnName (String ColumnName) 54 { 55 if (ColumnName == null) throw new IllegalArgumentException ("ColumnName is mandatory"); 56 setValue ("ColumnName", ColumnName); 57 } 58 public String getColumnName() 59 { 60 return (String )getValue("ColumnName"); 61 } 62 public void setDescription (String Description) 63 { 64 setValue ("Description", Description); 65 } 66 public String getDescription() 67 { 68 return (String )getValue("Description"); 69 } 70 public static final String ENTITYTYPE_Dictionary = "D"; 71 public static final String ENTITYTYPE_Compiere = "C"; 72 public static final String ENTITYTYPE_UserMaintained = "U"; 73 public static final String ENTITYTYPE_Applications = "A"; 74 public void setEntityType (String EntityType) 75 { 76 if (EntityType.equals("D") || EntityType.equals("C") || EntityType.equals("U") || EntityType.equals("A")); 77 else throw new IllegalArgumentException ("EntityType Invalid value - Reference_ID=245 - D - C - U - A"); 78 if (EntityType == null) throw new IllegalArgumentException ("EntityType is mandatory"); 79 setValue ("EntityType", EntityType); 80 } 81 public String getEntityType() 82 { 83 return (String )getValue("EntityType"); 84 } 85 public void setHelp (String Help) 86 { 87 setValue ("Help", Help); 88 } 89 public String getHelp() 90 { 91 return (String )getValue("Help"); 92 } 93 public void setName (String Name) 94 { 95 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 96 setValue ("Name", Name); 97 } 98 public String getName() 99 { 100 return (String )getValue("Name"); 101 } 102 public void setPO_Description (String PO_Description) 103 { 104 setValue ("PO_Description", PO_Description); 105 } 106 public String getPO_Description() 107 { 108 return (String )getValue("PO_Description"); 109 } 110 public void setPO_Help (String PO_Help) 111 { 112 setValue ("PO_Help", PO_Help); 113 } 114 public String getPO_Help() 115 { 116 return (String )getValue("PO_Help"); 117 } 118 public void setPO_Name (String PO_Name) 119 { 120 setValue ("PO_Name", PO_Name); 121 } 122 public String getPO_Name() 123 { 124 return (String )getValue("PO_Name"); 125 } 126 public void setPO_PrintName (String PO_PrintName) 127 { 128 setValue ("PO_PrintName", PO_PrintName); 129 } 130 public String getPO_PrintName() 131 { 132 return (String )getValue("PO_PrintName"); 133 } 134 public void setPrintName (String PrintName) 135 { 136 if (PrintName == null) throw new IllegalArgumentException ("PrintName is mandatory"); 137 setValue ("PrintName", PrintName); 138 } 139 public String getPrintName() 140 { 141 return (String )getValue("PrintName"); 142 } 143 } 144 | Popular Tags |