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_Registration extends PO 11 { 12 13 public X_AD_Registration (Properties ctx, int AD_Registration_ID) 14 { 15 super (ctx, AD_Registration_ID); 16 25 } 26 27 public X_AD_Registration (Properties ctx, ResultSet rs) 28 { 29 super (ctx, rs); 30 } 31 32 protected POInfo initPO (Properties ctx) 33 { 34 int AD_Table_ID = 625; 35 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 36 return poi; 37 } 38 public String toString() 39 { 40 StringBuffer sb = new StringBuffer ("X_AD_Registration[").append(getID()).append("]"); 41 return sb.toString(); 42 } 43 void setAD_Registration_ID (int AD_Registration_ID) 44 { 45 setValueNoCheck ("AD_Registration_ID", new Integer (AD_Registration_ID)); 46 } 47 public int getAD_Registration_ID() 48 { 49 Integer ii = (Integer )getValue("AD_Registration_ID"); 50 if (ii == null) return 0; 51 return ii.intValue(); 52 } 53 public void setC_Currency_ID (int C_Currency_ID) 54 { 55 if (C_Currency_ID == 0) setValue ("C_Currency_ID", null); 56 else 57 setValue ("C_Currency_ID", new Integer (C_Currency_ID)); 58 } 59 public int getC_Currency_ID() 60 { 61 Integer ii = (Integer )getValue("C_Currency_ID"); 62 if (ii == null) return 0; 63 return ii.intValue(); 64 } 65 public void setC_Location_ID (int C_Location_ID) 66 { 67 if (C_Location_ID == 0) setValue ("C_Location_ID", null); 68 else 69 setValue ("C_Location_ID", new Integer (C_Location_ID)); 70 } 71 public int getC_Location_ID() 72 { 73 Integer ii = (Integer )getValue("C_Location_ID"); 74 if (ii == null) return 0; 75 return ii.intValue(); 76 } 77 public void setDescription (String Description) 78 { 79 setValue ("Description", Description); 80 } 81 public String getDescription() 82 { 83 return (String )getValue("Description"); 84 } 85 public void setIndustryInfo (String IndustryInfo) 86 { 87 setValue ("IndustryInfo", IndustryInfo); 88 } 89 public String getIndustryInfo() 90 { 91 return (String )getValue("IndustryInfo"); 92 } 93 public void setIsAllowPublish (boolean IsAllowPublish) 94 { 95 setValue ("IsAllowPublish", new Boolean (IsAllowPublish)); 96 } 97 public boolean isAllowPublish() 98 { 99 Boolean bb = (Boolean )getValue("IsAllowPublish"); 100 if (bb != null) return bb.booleanValue(); 101 return false; 102 } 103 public void setIsInProduction (boolean IsInProduction) 104 { 105 setValue ("IsInProduction", new Boolean (IsInProduction)); 106 } 107 public boolean isInProduction() 108 { 109 Boolean bb = (Boolean )getValue("IsInProduction"); 110 if (bb != null) return bb.booleanValue(); 111 return false; 112 } 113 void setIsRegistered (boolean IsRegistered) 114 { 115 setValueNoCheck ("IsRegistered", new Boolean (IsRegistered)); 116 } 117 public boolean isRegistered() 118 { 119 Boolean bb = (Boolean )getValue("IsRegistered"); 120 if (bb != null) return bb.booleanValue(); 121 return false; 122 } 123 public void setName (String Name) 124 { 125 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 126 setValue ("Name", Name); 127 } 128 public String getName() 129 { 130 return (String )getValue("Name"); 131 } 132 public void setNumberEmployees (int NumberEmployees) 133 { 134 setValue ("NumberEmployees", new Integer (NumberEmployees)); 135 } 136 public int getNumberEmployees() 137 { 138 Integer ii = (Integer )getValue("NumberEmployees"); 139 if (ii == null) return 0; 140 return ii.intValue(); 141 } 142 public void setPlatformInfo (String PlatformInfo) 143 { 144 setValue ("PlatformInfo", PlatformInfo); 145 } 146 public String getPlatformInfo() 147 { 148 return (String )getValue("PlatformInfo"); 149 } 150 public void setProcessing (String Processing) 151 { 152 setValue ("Processing", Processing); 153 } 154 public String getProcessing() 155 { 156 return (String )getValue("Processing"); 157 } 158 void setRecord_ID (int Record_ID) 159 { 160 if (Record_ID == 0) setValueNoCheck ("Record_ID", null); 161 else 162 setValueNoCheck ("Record_ID", new Integer (Record_ID)); 163 } 164 public int getRecord_ID() 165 { 166 Integer ii = (Integer )getValue("Record_ID"); 167 if (ii == null) return 0; 168 return ii.intValue(); 169 } 170 void setRemote_Addr (String Remote_Addr) 171 { 172 setValueNoCheck ("Remote_Addr", Remote_Addr); 173 } 174 public String getRemote_Addr() 175 { 176 return (String )getValue("Remote_Addr"); 177 } 178 void setRemote_Host (String Remote_Host) 179 { 180 setValueNoCheck ("Remote_Host", Remote_Host); 181 } 182 public String getRemote_Host() 183 { 184 return (String )getValue("Remote_Host"); 185 } 186 public void setSalesVolume (int SalesVolume) 187 { 188 setValue ("SalesVolume", new Integer (SalesVolume)); 189 } 190 public int getSalesVolume() 191 { 192 Integer ii = (Integer )getValue("SalesVolume"); 193 if (ii == null) return 0; 194 return ii.intValue(); 195 } 196 } 197 | Popular Tags |