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_Recurring extends PO 11 { 12 13 public X_C_Recurring (Properties ctx, int C_Recurring_ID) 14 { 15 super (ctx, C_Recurring_ID); 16 27 } 28 29 public X_C_Recurring (Properties ctx, ResultSet rs) 30 { 31 super (ctx, rs); 32 } 33 34 protected POInfo initPO (Properties ctx) 35 { 36 int AD_Table_ID = 574; 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_Recurring[").append(getID()).append("]"); 43 return sb.toString(); 44 } 45 public void setC_Invoice_ID (int C_Invoice_ID) 46 { 47 if (C_Invoice_ID == 0) setValue ("C_Invoice_ID", null); 48 else 49 setValue ("C_Invoice_ID", new Integer (C_Invoice_ID)); 50 } 51 public int getC_Invoice_ID() 52 { 53 Integer ii = (Integer )getValue("C_Invoice_ID"); 54 if (ii == null) return 0; 55 return ii.intValue(); 56 } 57 public void setC_Order_ID (int C_Order_ID) 58 { 59 if (C_Order_ID == 0) setValue ("C_Order_ID", null); 60 else 61 setValue ("C_Order_ID", new Integer (C_Order_ID)); 62 } 63 public int getC_Order_ID() 64 { 65 Integer ii = (Integer )getValue("C_Order_ID"); 66 if (ii == null) return 0; 67 return ii.intValue(); 68 } 69 public void setC_Payment_ID (int C_Payment_ID) 70 { 71 if (C_Payment_ID == 0) setValue ("C_Payment_ID", null); 72 else 73 setValue ("C_Payment_ID", new Integer (C_Payment_ID)); 74 } 75 public int getC_Payment_ID() 76 { 77 Integer ii = (Integer )getValue("C_Payment_ID"); 78 if (ii == null) return 0; 79 return ii.intValue(); 80 } 81 public void setC_Project_ID (int C_Project_ID) 82 { 83 if (C_Project_ID == 0) setValue ("C_Project_ID", null); 84 else 85 setValue ("C_Project_ID", new Integer (C_Project_ID)); 86 } 87 public int getC_Project_ID() 88 { 89 Integer ii = (Integer )getValue("C_Project_ID"); 90 if (ii == null) return 0; 91 return ii.intValue(); 92 } 93 void setC_Recurring_ID (int C_Recurring_ID) 94 { 95 setValueNoCheck ("C_Recurring_ID", new Integer (C_Recurring_ID)); 96 } 97 public int getC_Recurring_ID() 98 { 99 Integer ii = (Integer )getValue("C_Recurring_ID"); 100 if (ii == null) return 0; 101 return ii.intValue(); 102 } 103 void setDateLastRun (Timestamp DateLastRun) 104 { 105 setValueNoCheck ("DateLastRun", DateLastRun); 106 } 107 public Timestamp getDateLastRun() 108 { 109 return (Timestamp)getValue("DateLastRun"); 110 } 111 public void setDateNextRun (Timestamp DateNextRun) 112 { 113 if (DateNextRun == null) throw new IllegalArgumentException ("DateNextRun is mandatory"); 114 setValue ("DateNextRun", DateNextRun); 115 } 116 public Timestamp getDateNextRun() 117 { 118 return (Timestamp)getValue("DateNextRun"); 119 } 120 public void setDescription (String Description) 121 { 122 setValue ("Description", Description); 123 } 124 public String getDescription() 125 { 126 return (String )getValue("Description"); 127 } 128 public void setFrequency (int Frequency) 129 { 130 setValue ("Frequency", new Integer (Frequency)); 131 } 132 public int getFrequency() 133 { 134 Integer ii = (Integer )getValue("Frequency"); 135 if (ii == null) return 0; 136 return ii.intValue(); 137 } 138 public static final String FREQUENCYTYPE_Daily = "D"; 139 public static final String FREQUENCYTYPE_Weekly = "W"; 140 public static final String FREQUENCYTYPE_Monthly = "M"; 141 public static final String FREQUENCYTYPE_Quarterly = "Q"; 142 public void setFrequencyType (String FrequencyType) 143 { 144 if (FrequencyType.equals("D") || FrequencyType.equals("W") || FrequencyType.equals("M") || FrequencyType.equals("Q")); 145 else throw new IllegalArgumentException ("FrequencyType Invalid value - Reference_ID=283 - D - W - M - Q"); 146 if (FrequencyType == null) throw new IllegalArgumentException ("FrequencyType is mandatory"); 147 setValue ("FrequencyType", FrequencyType); 148 } 149 public String getFrequencyType() 150 { 151 return (String )getValue("FrequencyType"); 152 } 153 public void setGL_JournalBatch_ID (int GL_JournalBatch_ID) 154 { 155 if (GL_JournalBatch_ID == 0) setValue ("GL_JournalBatch_ID", null); 156 else 157 setValue ("GL_JournalBatch_ID", new Integer (GL_JournalBatch_ID)); 158 } 159 public int getGL_JournalBatch_ID() 160 { 161 Integer ii = (Integer )getValue("GL_JournalBatch_ID"); 162 if (ii == null) return 0; 163 return ii.intValue(); 164 } 165 public void setHelp (String Help) 166 { 167 setValue ("Help", Help); 168 } 169 public String getHelp() 170 { 171 return (String )getValue("Help"); 172 } 173 public void setName (String Name) 174 { 175 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 176 setValue ("Name", Name); 177 } 178 public String getName() 179 { 180 return (String )getValue("Name"); 181 } 182 public void setProcessing (String Processing) 183 { 184 setValue ("Processing", Processing); 185 } 186 public String getProcessing() 187 { 188 return (String )getValue("Processing"); 189 } 190 public static final String RECURRINGTYPE_Invoice = "I"; 191 public static final String RECURRINGTYPE_Order = "O"; 192 public static final String RECURRINGTYPE_GLJournal = "G"; 193 public static final String RECURRINGTYPE_Project = "J"; 194 public void setRecurringType (String RecurringType) 195 { 196 if (RecurringType.equals("I") || RecurringType.equals("O") || RecurringType.equals("G") || RecurringType.equals("J")); 197 else throw new IllegalArgumentException ("RecurringType Invalid value - Reference_ID=282 - I - O - G - J"); 198 if (RecurringType == null) throw new IllegalArgumentException ("RecurringType is mandatory"); 199 setValue ("RecurringType", RecurringType); 200 } 201 public String getRecurringType() 202 { 203 return (String )getValue("RecurringType"); 204 } 205 public void setRunsMax (int RunsMax) 206 { 207 setValue ("RunsMax", new Integer (RunsMax)); 208 } 209 public int getRunsMax() 210 { 211 Integer ii = (Integer )getValue("RunsMax"); 212 if (ii == null) return 0; 213 return ii.intValue(); 214 } 215 void setRunsRemaining (int RunsRemaining) 216 { 217 setValueNoCheck ("RunsRemaining", new Integer (RunsRemaining)); 218 } 219 public int getRunsRemaining() 220 { 221 Integer ii = (Integer )getValue("RunsRemaining"); 222 if (ii == null) return 0; 223 return ii.intValue(); 224 } 225 } 226
| Popular Tags
|