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_Table extends PO 11 { 12 13 public X_AD_Ref_Table (Properties ctx, int AD_Ref_Table_ID) 14 { 15 super (ctx, AD_Ref_Table_ID); 16 26 } 27 28 public X_AD_Ref_Table (Properties ctx, ResultSet rs) 29 { 30 super (ctx, rs); 31 } 32 33 protected POInfo initPO (Properties ctx) 34 { 35 int AD_Table_ID = 103; 36 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 37 return poi; 38 } 39 public String toString() 40 { 41 StringBuffer sb = new StringBuffer ("X_AD_Ref_Table[").append(getID()).append("]"); 42 return sb.toString(); 43 } 44 public void setAD_Display (String AD_Display) 45 { 46 if (AD_Display == null) throw new IllegalArgumentException ("AD_Display is mandatory"); 47 setValue ("AD_Display", AD_Display); 48 } 49 public String getAD_Display() 50 { 51 return (String )getValue("AD_Display"); 52 } 53 public void setAD_Key (String AD_Key) 54 { 55 if (AD_Key == null) throw new IllegalArgumentException ("AD_Key is mandatory"); 56 setValue ("AD_Key", AD_Key); 57 } 58 public String getAD_Key() 59 { 60 return (String )getValue("AD_Key"); 61 } 62 void setAD_Reference_ID (int AD_Reference_ID) 63 { 64 setValueNoCheck ("AD_Reference_ID", new Integer (AD_Reference_ID)); 65 } 66 public int getAD_Reference_ID() 67 { 68 Integer ii = (Integer )getValue("AD_Reference_ID"); 69 if (ii == null) return 0; 70 return ii.intValue(); 71 } 72 public void setAD_Table_ID (int AD_Table_ID) 73 { 74 setValue ("AD_Table_ID", new Integer (AD_Table_ID)); 75 } 76 public int getAD_Table_ID() 77 { 78 Integer ii = (Integer )getValue("AD_Table_ID"); 79 if (ii == null) return 0; 80 return ii.intValue(); 81 } 82 public static final String ENTITYTYPE_Dictionary = "D"; 83 public static final String ENTITYTYPE_Compiere = "C"; 84 public static final String ENTITYTYPE_UserMaintained = "U"; 85 public static final String ENTITYTYPE_Applications = "A"; 86 public void setEntityType (String EntityType) 87 { 88 if (EntityType.equals("D") || EntityType.equals("C") || EntityType.equals("U") || EntityType.equals("A")); 89 else throw new IllegalArgumentException ("EntityType Invalid value - Reference_ID=245 - D - C - U - A"); 90 if (EntityType == null) throw new IllegalArgumentException ("EntityType is mandatory"); 91 setValue ("EntityType", EntityType); 92 } 93 public String getEntityType() 94 { 95 return (String )getValue("EntityType"); 96 } 97 public void setIsValueDisplayed (boolean IsValueDisplayed) 98 { 99 setValue ("IsValueDisplayed", new Boolean (IsValueDisplayed)); 100 } 101 public boolean isValueDisplayed() 102 { 103 Boolean bb = (Boolean )getValue("IsValueDisplayed"); 104 if (bb != null) return bb.booleanValue(); 105 return false; 106 } 107 public void setOrderByClause (String OrderByClause) 108 { 109 setValue ("OrderByClause", OrderByClause); 110 } 111 public String getOrderByClause() 112 { 113 return (String )getValue("OrderByClause"); 114 } 115 public void setWhereClause (String WhereClause) 116 { 117 setValue ("WhereClause", WhereClause); 118 } 119 public String getWhereClause() 120 { 121 return (String )getValue("WhereClause"); 122 } 123 } 124
| Popular Tags
|