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_Run extends PO 11 { 12 13 public X_C_Recurring_Run (Properties ctx, int C_Recurring_Run_ID) 14 { 15 super (ctx, C_Recurring_Run_ID); 16 22 } 23 24 public X_C_Recurring_Run (Properties ctx, ResultSet rs) 25 { 26 super (ctx, rs); 27 } 28 29 protected POInfo initPO (Properties ctx) 30 { 31 int AD_Table_ID = 573; 32 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 33 return poi; 34 } 35 public String toString() 36 { 37 StringBuffer sb = new StringBuffer ("X_C_Recurring_Run[").append(getID()).append("]"); 38 return sb.toString(); 39 } 40 void setC_Invoice_ID (int C_Invoice_ID) 41 { 42 if (C_Invoice_ID == 0) setValueNoCheck ("C_Invoice_ID", null); 43 else 44 setValueNoCheck ("C_Invoice_ID", new Integer (C_Invoice_ID)); 45 } 46 public int getC_Invoice_ID() 47 { 48 Integer ii = (Integer )getValue("C_Invoice_ID"); 49 if (ii == null) return 0; 50 return ii.intValue(); 51 } 52 void setC_Order_ID (int C_Order_ID) 53 { 54 if (C_Order_ID == 0) setValueNoCheck ("C_Order_ID", null); 55 else 56 setValueNoCheck ("C_Order_ID", new Integer (C_Order_ID)); 57 } 58 public int getC_Order_ID() 59 { 60 Integer ii = (Integer )getValue("C_Order_ID"); 61 if (ii == null) return 0; 62 return ii.intValue(); 63 } 64 void setC_Payment_ID (int C_Payment_ID) 65 { 66 if (C_Payment_ID == 0) setValueNoCheck ("C_Payment_ID", null); 67 else 68 setValueNoCheck ("C_Payment_ID", new Integer (C_Payment_ID)); 69 } 70 public int getC_Payment_ID() 71 { 72 Integer ii = (Integer )getValue("C_Payment_ID"); 73 if (ii == null) return 0; 74 return ii.intValue(); 75 } 76 void setC_Project_ID (int C_Project_ID) 77 { 78 if (C_Project_ID == 0) setValueNoCheck ("C_Project_ID", null); 79 else 80 setValueNoCheck ("C_Project_ID", new Integer (C_Project_ID)); 81 } 82 public int getC_Project_ID() 83 { 84 Integer ii = (Integer )getValue("C_Project_ID"); 85 if (ii == null) return 0; 86 return ii.intValue(); 87 } 88 void setC_Recurring_ID (int C_Recurring_ID) 89 { 90 setValueNoCheck ("C_Recurring_ID", new Integer (C_Recurring_ID)); 91 } 92 public int getC_Recurring_ID() 93 { 94 Integer ii = (Integer )getValue("C_Recurring_ID"); 95 if (ii == null) return 0; 96 return ii.intValue(); 97 } 98 void setC_Recurring_Run_ID (int C_Recurring_Run_ID) 99 { 100 setValueNoCheck ("C_Recurring_Run_ID", new Integer (C_Recurring_Run_ID)); 101 } 102 public int getC_Recurring_Run_ID() 103 { 104 Integer ii = (Integer )getValue("C_Recurring_Run_ID"); 105 if (ii == null) return 0; 106 return ii.intValue(); 107 } 108 public void setDateDoc (Timestamp DateDoc) 109 { 110 setValue ("DateDoc", DateDoc); 111 } 112 public Timestamp getDateDoc() 113 { 114 return (Timestamp)getValue("DateDoc"); 115 } 116 void setGL_JournalBatch_ID (int GL_JournalBatch_ID) 117 { 118 if (GL_JournalBatch_ID == 0) setValueNoCheck ("GL_JournalBatch_ID", null); 119 else 120 setValueNoCheck ("GL_JournalBatch_ID", new Integer (GL_JournalBatch_ID)); 121 } 122 public int getGL_JournalBatch_ID() 123 { 124 Integer ii = (Integer )getValue("GL_JournalBatch_ID"); 125 if (ii == null) return 0; 126 return ii.intValue(); 127 } 128 } 129 | Popular Tags |