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_PA_Goal extends PO 11 { 12 13 public X_PA_Goal (Properties ctx, int PA_Goal_ID) 14 { 15 super (ctx, PA_Goal_ID); 16 29 } 30 31 public X_PA_Goal (Properties ctx, ResultSet rs) 32 { 33 super (ctx, rs); 34 } 35 36 protected POInfo initPO (Properties ctx) 37 { 38 int AD_Table_ID = 440; 39 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 40 return poi; 41 } 42 public String toString() 43 { 44 StringBuffer sb = new StringBuffer ("X_PA_Goal[").append(getID()).append("]"); 45 return sb.toString(); 46 } 47 void setDateLastRun (Timestamp DateLastRun) 48 { 49 setValueNoCheck ("DateLastRun", DateLastRun); 50 } 51 public Timestamp getDateLastRun() 52 { 53 return (Timestamp)getValue("DateLastRun"); 54 } 55 public void setDescription (String Description) 56 { 57 setValue ("Description", Description); 58 } 59 public String getDescription() 60 { 61 return (String )getValue("Description"); 62 } 63 void setGoalPerformance (BigDecimal GoalPerformance) 64 { 65 if (GoalPerformance == null) throw new IllegalArgumentException ("GoalPerformance is mandatory"); 66 setValueNoCheck ("GoalPerformance", GoalPerformance); 67 } 68 public BigDecimal getGoalPerformance() 69 { 70 BigDecimal bd = (BigDecimal)getValue("GoalPerformance"); 71 if (bd == null) return Env.ZERO; 72 return bd; 73 } 74 public void setIsSummary (boolean IsSummary) 75 { 76 setValue ("IsSummary", new Boolean (IsSummary)); 77 } 78 public boolean isSummary() 79 { 80 Boolean bb = (Boolean )getValue("IsSummary"); 81 if (bb != null) return bb.booleanValue(); 82 return false; 83 } 84 void setMeasureActual (BigDecimal MeasureActual) 85 { 86 if (MeasureActual == null) throw new IllegalArgumentException ("MeasureActual is mandatory"); 87 setValueNoCheck ("MeasureActual", MeasureActual); 88 } 89 public BigDecimal getMeasureActual() 90 { 91 BigDecimal bd = (BigDecimal)getValue("MeasureActual"); 92 if (bd == null) return Env.ZERO; 93 return bd; 94 } 95 public void setMeasureTarget (BigDecimal MeasureTarget) 96 { 97 if (MeasureTarget == null) throw new IllegalArgumentException ("MeasureTarget is mandatory"); 98 setValue ("MeasureTarget", MeasureTarget); 99 } 100 public BigDecimal getMeasureTarget() 101 { 102 BigDecimal bd = (BigDecimal)getValue("MeasureTarget"); 103 if (bd == null) return Env.ZERO; 104 return bd; 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 setNote (String Note) 116 { 117 setValue ("Note", Note); 118 } 119 public String getNote() 120 { 121 return (String )getValue("Note"); 122 } 123 void setPA_Goal_ID (int PA_Goal_ID) 124 { 125 setValueNoCheck ("PA_Goal_ID", new Integer (PA_Goal_ID)); 126 } 127 public int getPA_Goal_ID() 128 { 129 Integer ii = (Integer )getValue("PA_Goal_ID"); 130 if (ii == null) return 0; 131 return ii.intValue(); 132 } 133 public void setPA_Measure_ID (int PA_Measure_ID) 134 { 135 setValue ("PA_Measure_ID", new Integer (PA_Measure_ID)); 136 } 137 public int getPA_Measure_ID() 138 { 139 Integer ii = (Integer )getValue("PA_Measure_ID"); 140 if (ii == null) return 0; 141 return ii.intValue(); 142 } 143 public void setParent_ID (int Parent_ID) 144 { 145 if (Parent_ID == 0) setValue ("Parent_ID", null); 146 else 147 setValue ("Parent_ID", new Integer (Parent_ID)); 148 } 149 public int getParent_ID() 150 { 151 Integer ii = (Integer )getValue("Parent_ID"); 152 if (ii == null) return 0; 153 return ii.intValue(); 154 } 155 public void setRelativeWeight (BigDecimal RelativeWeight) 156 { 157 if (RelativeWeight == null) throw new IllegalArgumentException ("RelativeWeight is mandatory"); 158 setValue ("RelativeWeight", RelativeWeight); 159 } 160 public BigDecimal getRelativeWeight() 161 { 162 BigDecimal bd = (BigDecimal)getValue("RelativeWeight"); 163 if (bd == null) return Env.ZERO; 164 return bd; 165 } 166 public void setSeqNo (int SeqNo) 167 { 168 setValue ("SeqNo", new Integer (SeqNo)); 169 } 170 public int getSeqNo() 171 { 172 Integer ii = (Integer )getValue("SeqNo"); 173 if (ii == null) return 0; 174 return ii.intValue(); 175 } 176 } 177 | Popular Tags |