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_W_Advertisement extends PO 11 { 12 13 public X_W_Advertisement (Properties ctx, int W_Advertisement_ID) 14 { 15 super (ctx, W_Advertisement_ID); 16 24 } 25 26 public X_W_Advertisement (Properties ctx, ResultSet rs) 27 { 28 super (ctx, rs); 29 } 30 31 protected POInfo initPO (Properties ctx) 32 { 33 int AD_Table_ID = 579; 34 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 35 return poi; 36 } 37 public String toString() 38 { 39 StringBuffer sb = new StringBuffer ("X_W_Advertisement[").append(getID()).append("]"); 40 return sb.toString(); 41 } 42 public void setAD_User_ID (int AD_User_ID) 43 { 44 if (AD_User_ID == 0) setValue ("AD_User_ID", null); 45 else 46 setValue ("AD_User_ID", new Integer (AD_User_ID)); 47 } 48 public int getAD_User_ID() 49 { 50 Integer ii = (Integer )getValue("AD_User_ID"); 51 if (ii == null) return 0; 52 return ii.intValue(); 53 } 54 public void setAdText (String AdText) 55 { 56 setValue ("AdText", AdText); 57 } 58 public String getAdText() 59 { 60 return (String )getValue("AdText"); 61 } 62 public void setC_BPartner_ID (int C_BPartner_ID) 63 { 64 setValue ("C_BPartner_ID", new Integer (C_BPartner_ID)); 65 } 66 public int getC_BPartner_ID() 67 { 68 Integer ii = (Integer )getValue("C_BPartner_ID"); 69 if (ii == null) return 0; 70 return ii.intValue(); 71 } 72 public void setDescription (String Description) 73 { 74 setValue ("Description", Description); 75 } 76 public String getDescription() 77 { 78 return (String )getValue("Description"); 79 } 80 public void setHelp (String Help) 81 { 82 setValue ("Help", Help); 83 } 84 public String getHelp() 85 { 86 return (String )getValue("Help"); 87 } 88 public void setImageURL (String ImageURL) 89 { 90 setValue ("ImageURL", ImageURL); 91 } 92 public String getImageURL() 93 { 94 return (String )getValue("ImageURL"); 95 } 96 public void setIsSelfService (boolean IsSelfService) 97 { 98 setValue ("IsSelfService", new Boolean (IsSelfService)); 99 } 100 public boolean isSelfService() 101 { 102 Boolean bb = (Boolean )getValue("IsSelfService"); 103 if (bb != null) return bb.booleanValue(); 104 return false; 105 } 106 public void setName (String Name) 107 { 108 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 109 setValue ("Name", Name); 110 } 111 public String getName() 112 { 113 return (String )getValue("Name"); 114 } 115 public void setValidFrom (Timestamp ValidFrom) 116 { 117 setValue ("ValidFrom", ValidFrom); 118 } 119 public Timestamp getValidFrom() 120 { 121 return (Timestamp)getValue("ValidFrom"); 122 } 123 public void setValidTo (Timestamp ValidTo) 124 { 125 setValue ("ValidTo", ValidTo); 126 } 127 public Timestamp getValidTo() 128 { 129 return (Timestamp)getValue("ValidTo"); 130 } 131 void setW_Advertisement_ID (int W_Advertisement_ID) 132 { 133 setValueNoCheck ("W_Advertisement_ID", new Integer (W_Advertisement_ID)); 134 } 135 public int getW_Advertisement_ID() 136 { 137 Integer ii = (Integer )getValue("W_Advertisement_ID"); 138 if (ii == null) return 0; 139 return ii.intValue(); 140 } 141 public void setW_ClickCount_ID (int W_ClickCount_ID) 142 { 143 if (W_ClickCount_ID == 0) setValue ("W_ClickCount_ID", null); 144 else 145 setValue ("W_ClickCount_ID", new Integer (W_ClickCount_ID)); 146 } 147 public int getW_ClickCount_ID() 148 { 149 Integer ii = (Integer )getValue("W_ClickCount_ID"); 150 if (ii == null) return 0; 151 return ii.intValue(); 152 } 153 public void setW_CounterCount_ID (int W_CounterCount_ID) 154 { 155 if (W_CounterCount_ID == 0) setValue ("W_CounterCount_ID", null); 156 else 157 setValue ("W_CounterCount_ID", new Integer (W_CounterCount_ID)); 158 } 159 public int getW_CounterCount_ID() 160 { 161 Integer ii = (Integer )getValue("W_CounterCount_ID"); 162 if (ii == null) return 0; 163 return ii.intValue(); 164 } 165 public void setWebParam1 (String WebParam1) 166 { 167 setValue ("WebParam1", WebParam1); 168 } 169 public String getWebParam1() 170 { 171 return (String )getValue("WebParam1"); 172 } 173 public void setWebParam2 (String WebParam2) 174 { 175 setValue ("WebParam2", WebParam2); 176 } 177 public String getWebParam2() 178 { 179 return (String )getValue("WebParam2"); 180 } 181 public void setWebParam3 (String WebParam3) 182 { 183 setValue ("WebParam3", WebParam3); 184 } 185 public String getWebParam3() 186 { 187 return (String )getValue("WebParam3"); 188 } 189 public void setWebParam4 (String WebParam4) 190 { 191 setValue ("WebParam4", WebParam4); 192 } 193 public String getWebParam4() 194 { 195 return (String )getValue("WebParam4"); 196 } 197 } 198 | Popular Tags |