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_ClickCount extends PO 11 { 12 13 public X_W_ClickCount (Properties ctx, int W_ClickCount_ID) 14 { 15 super (ctx, W_ClickCount_ID); 16 24 } 25 26 public X_W_ClickCount (Properties ctx, ResultSet rs) 27 { 28 super (ctx, rs); 29 } 30 31 protected POInfo initPO (Properties ctx) 32 { 33 int AD_Table_ID = 553; 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_ClickCount[").append(getID()).append("]"); 40 return sb.toString(); 41 } 42 public void setC_BPartner_ID (int C_BPartner_ID) 43 { 44 if (C_BPartner_ID == 0) setValue ("C_BPartner_ID", null); 45 else 46 setValue ("C_BPartner_ID", new Integer (C_BPartner_ID)); 47 } 48 public int getC_BPartner_ID() 49 { 50 Integer ii = (Integer )getValue("C_BPartner_ID"); 51 if (ii == null) return 0; 52 return ii.intValue(); 53 } 54 public void setCounter (int Counter) 55 { 56 setValue ("Counter", new Integer (Counter)); 57 } 58 public int getCounter() 59 { 60 Integer ii = (Integer )getValue("Counter"); 61 if (ii == null) return 0; 62 return ii.intValue(); 63 } 64 public void setDescription (String Description) 65 { 66 setValue ("Description", Description); 67 } 68 public String getDescription() 69 { 70 return (String )getValue("Description"); 71 } 72 public void setName (String Name) 73 { 74 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 75 setValue ("Name", Name); 76 } 77 public String getName() 78 { 79 return (String )getValue("Name"); 80 } 81 public void setTargetURL (String TargetURL) 82 { 83 if (TargetURL == null) throw new IllegalArgumentException ("TargetURL is mandatory"); 84 setValue ("TargetURL", TargetURL); 85 } 86 public String getTargetURL() 87 { 88 return (String )getValue("TargetURL"); 89 } 90 void setW_ClickCount_ID (int W_ClickCount_ID) 91 { 92 setValueNoCheck ("W_ClickCount_ID", new Integer (W_ClickCount_ID)); 93 } 94 public int getW_ClickCount_ID() 95 { 96 Integer ii = (Integer )getValue("W_ClickCount_ID"); 97 if (ii == null) return 0; 98 return ii.intValue(); 99 } 100 } 101
| Popular Tags
|