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_Reference extends PO 11 { 12 13 public X_AD_Reference (Properties ctx, int AD_Reference_ID) 14 { 15 super (ctx, AD_Reference_ID); 16 24 } 25 26 public X_AD_Reference (Properties ctx, ResultSet rs) 27 { 28 super (ctx, rs); 29 } 30 31 protected POInfo initPO (Properties ctx) 32 { 33 int AD_Table_ID = 102; 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_Reference[").append(getID()).append("]"); 40 return sb.toString(); 41 } 42 void setAD_Reference_ID (int AD_Reference_ID) 43 { 44 setValueNoCheck ("AD_Reference_ID", new Integer (AD_Reference_ID)); 45 } 46 public int getAD_Reference_ID() 47 { 48 Integer ii = (Integer )getValue("AD_Reference_ID"); 49 if (ii == null) return 0; 50 return ii.intValue(); 51 } 52 public void setDescription (String Description) 53 { 54 setValue ("Description", Description); 55 } 56 public String getDescription() 57 { 58 return (String )getValue("Description"); 59 } 60 public static final String ENTITYTYPE_Dictionary = "D"; 61 public static final String ENTITYTYPE_Compiere = "C"; 62 public static final String ENTITYTYPE_UserMaintained = "U"; 63 public static final String ENTITYTYPE_Applications = "A"; 64 public void setEntityType (String EntityType) 65 { 66 if (EntityType.equals("D") || EntityType.equals("C") || EntityType.equals("U") || EntityType.equals("A")); 67 else throw new IllegalArgumentException ("EntityType Invalid value - Reference_ID=245 - D - C - U - A"); 68 if (EntityType == null) throw new IllegalArgumentException ("EntityType is mandatory"); 69 setValue ("EntityType", EntityType); 70 } 71 public String getEntityType() 72 { 73 return (String )getValue("EntityType"); 74 } 75 public void setHelp (String Help) 76 { 77 setValue ("Help", Help); 78 } 79 public String getHelp() 80 { 81 return (String )getValue("Help"); 82 } 83 public void setName (String Name) 84 { 85 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 86 setValue ("Name", Name); 87 } 88 public String getName() 89 { 90 return (String )getValue("Name"); 91 } 92 public void setVFormat (String VFormat) 93 { 94 setValue ("VFormat", VFormat); 95 } 96 public String getVFormat() 97 { 98 return (String )getValue("VFormat"); 99 } 100 public static final String VALIDATIONTYPE_ListValidation = "L"; 101 public static final String VALIDATIONTYPE_DataType = "D"; 102 public static final String VALIDATIONTYPE_TableValidation = "T"; 103 public void setValidationType (String ValidationType) 104 { 105 if (ValidationType.equals("L") || ValidationType.equals("D") || ValidationType.equals("T")); 106 else throw new IllegalArgumentException ("ValidationType Invalid value - Reference_ID=2 - L - D - T"); 107 if (ValidationType == null) throw new IllegalArgumentException ("ValidationType is mandatory"); 108 setValue ("ValidationType", ValidationType); 109 } 110 public String getValidationType() 111 { 112 return (String )getValue("ValidationType"); 113 } 114 } 115
| Popular Tags
|