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_ProjectPhase extends PO 11 { 12 13 public X_C_ProjectPhase (Properties ctx, int C_ProjectPhase_ID) 14 { 15 super (ctx, C_ProjectPhase_ID); 16 27 } 28 29 public X_C_ProjectPhase (Properties ctx, ResultSet rs) 30 { 31 super (ctx, rs); 32 } 33 34 protected POInfo initPO (Properties ctx) 35 { 36 int AD_Table_ID = 576; 37 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 38 return poi; 39 } 40 public String toString() 41 { 42 StringBuffer sb = new StringBuffer ("X_C_ProjectPhase[").append(getID()).append("]"); 43 return sb.toString(); 44 } 45 void setC_Order_ID (int C_Order_ID) 46 { 47 if (C_Order_ID == 0) setValueNoCheck ("C_Order_ID", null); 48 else 49 setValueNoCheck ("C_Order_ID", new Integer (C_Order_ID)); 50 } 51 public int getC_Order_ID() 52 { 53 Integer ii = (Integer )getValue("C_Order_ID"); 54 if (ii == null) return 0; 55 return ii.intValue(); 56 } 57 void setC_Phase_ID (int C_Phase_ID) 58 { 59 if (C_Phase_ID == 0) setValueNoCheck ("C_Phase_ID", null); 60 else 61 setValueNoCheck ("C_Phase_ID", new Integer (C_Phase_ID)); 62 } 63 public int getC_Phase_ID() 64 { 65 Integer ii = (Integer )getValue("C_Phase_ID"); 66 if (ii == null) return 0; 67 return ii.intValue(); 68 } 69 void setC_ProjectPhase_ID (int C_ProjectPhase_ID) 70 { 71 setValueNoCheck ("C_ProjectPhase_ID", new Integer (C_ProjectPhase_ID)); 72 } 73 public int getC_ProjectPhase_ID() 74 { 75 Integer ii = (Integer )getValue("C_ProjectPhase_ID"); 76 if (ii == null) return 0; 77 return ii.intValue(); 78 } 79 void setC_Project_ID (int C_Project_ID) 80 { 81 setValueNoCheck ("C_Project_ID", new Integer (C_Project_ID)); 82 } 83 public int getC_Project_ID() 84 { 85 Integer ii = (Integer )getValue("C_Project_ID"); 86 if (ii == null) return 0; 87 return ii.intValue(); 88 } 89 public void setCommittedAmt (BigDecimal CommittedAmt) 90 { 91 if (CommittedAmt == null) throw new IllegalArgumentException ("CommittedAmt is mandatory"); 92 setValue ("CommittedAmt", CommittedAmt); 93 } 94 public BigDecimal getCommittedAmt() 95 { 96 BigDecimal bd = (BigDecimal)getValue("CommittedAmt"); 97 if (bd == null) return Env.ZERO; 98 return bd; 99 } 100 public void setDescription (String Description) 101 { 102 setValue ("Description", Description); 103 } 104 public String getDescription() 105 { 106 return (String )getValue("Description"); 107 } 108 public void setEndDate (Timestamp EndDate) 109 { 110 setValue ("EndDate", EndDate); 111 } 112 public Timestamp getEndDate() 113 { 114 return (Timestamp)getValue("EndDate"); 115 } 116 public void setGenerateOrder (String GenerateOrder) 117 { 118 setValue ("GenerateOrder", GenerateOrder); 119 } 120 public String getGenerateOrder() 121 { 122 return (String )getValue("GenerateOrder"); 123 } 124 public void setHelp (String Help) 125 { 126 setValue ("Help", Help); 127 } 128 public String getHelp() 129 { 130 return (String )getValue("Help"); 131 } 132 public void setIsCommitCeiling (boolean IsCommitCeiling) 133 { 134 setValue ("IsCommitCeiling", new Boolean (IsCommitCeiling)); 135 } 136 public boolean isCommitCeiling() 137 { 138 Boolean bb = (Boolean )getValue("IsCommitCeiling"); 139 if (bb != null) return bb.booleanValue(); 140 return false; 141 } 142 public void setIsComplete (boolean IsComplete) 143 { 144 setValue ("IsComplete", new Boolean (IsComplete)); 145 } 146 public boolean isComplete() 147 { 148 Boolean bb = (Boolean )getValue("IsComplete"); 149 if (bb != null) return bb.booleanValue(); 150 return false; 151 } 152 public void setM_Product_ID (int M_Product_ID) 153 { 154 if (M_Product_ID == 0) setValue ("M_Product_ID", null); 155 else 156 setValue ("M_Product_ID", new Integer (M_Product_ID)); 157 } 158 public int getM_Product_ID() 159 { 160 Integer ii = (Integer )getValue("M_Product_ID"); 161 if (ii == null) return 0; 162 return ii.intValue(); 163 } 164 public void setName (String Name) 165 { 166 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 167 setValue ("Name", Name); 168 } 169 public String getName() 170 { 171 return (String )getValue("Name"); 172 } 173 public void setPriceActual (BigDecimal PriceActual) 174 { 175 setValue ("PriceActual", PriceActual); 176 } 177 public BigDecimal getPriceActual() 178 { 179 BigDecimal bd = (BigDecimal)getValue("PriceActual"); 180 if (bd == null) return Env.ZERO; 181 return bd; 182 } 183 public void setQty (BigDecimal Qty) 184 { 185 setValue ("Qty", Qty); 186 } 187 public BigDecimal getQty() 188 { 189 BigDecimal bd = (BigDecimal)getValue("Qty"); 190 if (bd == null) return Env.ZERO; 191 return bd; 192 } 193 public void setSeqNo (int SeqNo) 194 { 195 setValue ("SeqNo", new Integer (SeqNo)); 196 } 197 public int getSeqNo() 198 { 199 Integer ii = (Integer )getValue("SeqNo"); 200 if (ii == null) return 0; 201 return ii.intValue(); 202 } 203 public void setStartDate (Timestamp StartDate) 204 { 205 setValue ("StartDate", StartDate); 206 } 207 public Timestamp getStartDate() 208 { 209 return (Timestamp)getValue("StartDate"); 210 } 211 } 212
| Popular Tags
|