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_Preference extends PO 11 { 12 13 public X_AD_Preference (Properties ctx, int AD_Preference_ID) 14 { 15 super (ctx, AD_Preference_ID); 16 23 } 24 25 public X_AD_Preference (Properties ctx, ResultSet rs) 26 { 27 super (ctx, rs); 28 } 29 30 protected POInfo initPO (Properties ctx) 31 { 32 int AD_Table_ID = 195; 33 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 34 return poi; 35 } 36 public String toString() 37 { 38 StringBuffer sb = new StringBuffer ("X_AD_Preference[").append(getID()).append("]"); 39 return sb.toString(); 40 } 41 void setAD_Preference_ID (int AD_Preference_ID) 42 { 43 setValueNoCheck ("AD_Preference_ID", new Integer (AD_Preference_ID)); 44 } 45 public int getAD_Preference_ID() 46 { 47 Integer ii = (Integer )getValue("AD_Preference_ID"); 48 if (ii == null) return 0; 49 return ii.intValue(); 50 } 51 public void setAD_User_ID (int AD_User_ID) 52 { 53 if (AD_User_ID == 0) setValue ("AD_User_ID", null); 54 else 55 setValue ("AD_User_ID", new Integer (AD_User_ID)); 56 } 57 public int getAD_User_ID() 58 { 59 Integer ii = (Integer )getValue("AD_User_ID"); 60 if (ii == null) return 0; 61 return ii.intValue(); 62 } 63 public void setAD_Window_ID (int AD_Window_ID) 64 { 65 if (AD_Window_ID == 0) setValue ("AD_Window_ID", null); 66 else 67 setValue ("AD_Window_ID", new Integer (AD_Window_ID)); 68 } 69 public int getAD_Window_ID() 70 { 71 Integer ii = (Integer )getValue("AD_Window_ID"); 72 if (ii == null) return 0; 73 return ii.intValue(); 74 } 75 public void setAttribute (String Attribute) 76 { 77 if (Attribute == null) throw new IllegalArgumentException ("Attribute is mandatory"); 78 setValue ("Attribute", Attribute); 79 } 80 public String getAttribute() 81 { 82 return (String )getValue("Attribute"); 83 } 84 public void setValue (String Value) 85 { 86 if (Value == null) throw new IllegalArgumentException ("Value is mandatory"); 87 setValue ("Value", Value); 88 } 89 public String getValue() 90 { 91 return (String )getValue("Value"); 92 } 93 } 94
| Popular Tags
|