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_C_Campaign extends PO 11 { 12 13 public X_C_Campaign (Properties ctx, int C_Campaign_ID) 14 { 15 super (ctx, C_Campaign_ID); 16 24 } 25 26 public X_C_Campaign (Properties ctx, ResultSet rs) 27 { 28 super (ctx, rs); 29 } 30 31 protected POInfo initPO (Properties ctx) 32 { 33 int AD_Table_ID = 274; 34 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 35 return poi; 36 } 37 public String toString() 38 { 39 StringBuffer sb = new StringBuffer ("X_C_Campaign[").append(getID()).append("]"); 40 return sb.toString(); 41 } 42 void setC_Campaign_ID (int C_Campaign_ID) 43 { 44 setValueNoCheck ("C_Campaign_ID", new Integer (C_Campaign_ID)); 45 } 46 public int getC_Campaign_ID() 47 { 48 Integer ii = (Integer )getValue("C_Campaign_ID"); 49 if (ii == null) return 0; 50 return ii.intValue(); 51 } 52 public void setC_Channel_ID (int C_Channel_ID) 53 { 54 if (C_Channel_ID == 0) setValue ("C_Channel_ID", null); 55 else 56 setValue ("C_Channel_ID", new Integer (C_Channel_ID)); 57 } 58 public int getC_Channel_ID() 59 { 60 Integer ii = (Integer )getValue("C_Channel_ID"); 61 if (ii == null) return 0; 62 return ii.intValue(); 63 } 64 public void setCosts (BigDecimal Costs) 65 { 66 if (Costs == null) throw new IllegalArgumentException ("Costs is mandatory"); 67 setValue ("Costs", Costs); 68 } 69 public BigDecimal getCosts() 70 { 71 BigDecimal bd = (BigDecimal)getValue("Costs"); 72 if (bd == null) return Env.ZERO; 73 return bd; 74 } 75 public void setDescription (String Description) 76 { 77 setValue ("Description", Description); 78 } 79 public String getDescription() 80 { 81 return (String )getValue("Description"); 82 } 83 public void setEndDate (Timestamp EndDate) 84 { 85 setValue ("EndDate", EndDate); 86 } 87 public Timestamp getEndDate() 88 { 89 return (Timestamp)getValue("EndDate"); 90 } 91 public void setName (String Name) 92 { 93 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 94 setValue ("Name", Name); 95 } 96 public String getName() 97 { 98 return (String )getValue("Name"); 99 } 100 public void setStartDate (Timestamp StartDate) 101 { 102 setValue ("StartDate", StartDate); 103 } 104 public Timestamp getStartDate() 105 { 106 return (Timestamp)getValue("StartDate"); 107 } 108 public void setValue (String Value) 109 { 110 if (Value == null) throw new IllegalArgumentException ("Value is mandatory"); 111 setValue ("Value", Value); 112 } 113 public String getValue() 114 { 115 return (String )getValue("Value"); 116 } 117 } 118 | Popular Tags |