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_Report extends PO 11 { 12 13 public X_PA_Report (Properties ctx, int PA_Report_ID) 14 { 15 super (ctx, PA_Report_ID); 16 29 } 30 31 public X_PA_Report (Properties ctx, ResultSet rs) 32 { 33 super (ctx, rs); 34 } 35 36 protected POInfo initPO (Properties ctx) 37 { 38 int AD_Table_ID = 445; 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_Report[").append(getID()).append("]"); 45 return sb.toString(); 46 } 47 public void setAD_PrintFormat_ID (int AD_PrintFormat_ID) 48 { 49 if (AD_PrintFormat_ID == 0) setValue ("AD_PrintFormat_ID", null); 50 else 51 setValue ("AD_PrintFormat_ID", new Integer (AD_PrintFormat_ID)); 52 } 53 public int getAD_PrintFormat_ID() 54 { 55 Integer ii = (Integer )getValue("AD_PrintFormat_ID"); 56 if (ii == null) return 0; 57 return ii.intValue(); 58 } 59 public void setC_AcctSchema_ID (int C_AcctSchema_ID) 60 { 61 setValue ("C_AcctSchema_ID", new Integer (C_AcctSchema_ID)); 62 } 63 public int getC_AcctSchema_ID() 64 { 65 Integer ii = (Integer )getValue("C_AcctSchema_ID"); 66 if (ii == null) return 0; 67 return ii.intValue(); 68 } 69 public void setC_Calendar_ID (int C_Calendar_ID) 70 { 71 setValue ("C_Calendar_ID", new Integer (C_Calendar_ID)); 72 } 73 public int getC_Calendar_ID() 74 { 75 Integer ii = (Integer )getValue("C_Calendar_ID"); 76 if (ii == null) return 0; 77 return ii.intValue(); 78 } 79 public void setDescription (String Description) 80 { 81 setValue ("Description", Description); 82 } 83 public String getDescription() 84 { 85 return (String )getValue("Description"); 86 } 87 public void setListSources (boolean ListSources) 88 { 89 setValue ("ListSources", new Boolean (ListSources)); 90 } 91 public boolean isListSources() 92 { 93 Boolean bb = (Boolean )getValue("ListSources"); 94 if (bb != null) return bb.booleanValue(); 95 return false; 96 } 97 public void setListTrx (boolean ListTrx) 98 { 99 setValue ("ListTrx", new Boolean (ListTrx)); 100 } 101 public boolean isListTrx() 102 { 103 Boolean bb = (Boolean )getValue("ListTrx"); 104 if (bb != null) return bb.booleanValue(); 105 return false; 106 } 107 public void setName (String Name) 108 { 109 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 110 setValue ("Name", Name); 111 } 112 public String getName() 113 { 114 return (String )getValue("Name"); 115 } 116 public void setPA_ReportColumnSet_ID (int PA_ReportColumnSet_ID) 117 { 118 setValue ("PA_ReportColumnSet_ID", new Integer (PA_ReportColumnSet_ID)); 119 } 120 public int getPA_ReportColumnSet_ID() 121 { 122 Integer ii = (Integer )getValue("PA_ReportColumnSet_ID"); 123 if (ii == null) return 0; 124 return ii.intValue(); 125 } 126 public void setPA_ReportLineSet_ID (int PA_ReportLineSet_ID) 127 { 128 setValue ("PA_ReportLineSet_ID", new Integer (PA_ReportLineSet_ID)); 129 } 130 public int getPA_ReportLineSet_ID() 131 { 132 Integer ii = (Integer )getValue("PA_ReportLineSet_ID"); 133 if (ii == null) return 0; 134 return ii.intValue(); 135 } 136 void setPA_Report_ID (int PA_Report_ID) 137 { 138 setValueNoCheck ("PA_Report_ID", new Integer (PA_Report_ID)); 139 } 140 public int getPA_Report_ID() 141 { 142 Integer ii = (Integer )getValue("PA_Report_ID"); 143 if (ii == null) return 0; 144 return ii.intValue(); 145 } 146 public void setProcessing (String Processing) 147 { 148 if (Processing == null) throw new IllegalArgumentException ("Processing is mandatory"); 149 setValue ("Processing", Processing); 150 } 151 public String getProcessing() 152 { 153 return (String )getValue("Processing"); 154 } 155 } 156 | Popular Tags |