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