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_AD_PrintForm extends PO 11 { 12 13 public X_AD_PrintForm (Properties ctx, int AD_PrintForm_ID) 14 { 15 super (ctx, AD_PrintForm_ID); 16 22 } 23 24 public X_AD_PrintForm (Properties ctx, ResultSet rs) 25 { 26 super (ctx, rs); 27 } 28 29 protected POInfo initPO (Properties ctx) 30 { 31 int AD_Table_ID = 454; 32 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 33 return poi; 34 } 35 public String toString() 36 { 37 StringBuffer sb = new StringBuffer ("X_AD_PrintForm[").append(getID()).append("]"); 38 return sb.toString(); 39 } 40 void setAD_PrintForm_ID (int AD_PrintForm_ID) 41 { 42 setValueNoCheck ("AD_PrintForm_ID", new Integer (AD_PrintForm_ID)); 43 } 44 public int getAD_PrintForm_ID() 45 { 46 Integer ii = (Integer )getValue("AD_PrintForm_ID"); 47 if (ii == null) return 0; 48 return ii.intValue(); 49 } 50 public void setDescription (String Description) 51 { 52 setValue ("Description", Description); 53 } 54 public String getDescription() 55 { 56 return (String )getValue("Description"); 57 } 58 public void setInvoice_MailText_ID (int Invoice_MailText_ID) 59 { 60 if (Invoice_MailText_ID == 0) setValue ("Invoice_MailText_ID", null); 61 else 62 setValue ("Invoice_MailText_ID", new Integer (Invoice_MailText_ID)); 63 } 64 public int getInvoice_MailText_ID() 65 { 66 Integer ii = (Integer )getValue("Invoice_MailText_ID"); 67 if (ii == null) return 0; 68 return ii.intValue(); 69 } 70 public void setInvoice_PrintFormat_ID (int Invoice_PrintFormat_ID) 71 { 72 if (Invoice_PrintFormat_ID == 0) setValue ("Invoice_PrintFormat_ID", null); 73 else 74 setValue ("Invoice_PrintFormat_ID", new Integer (Invoice_PrintFormat_ID)); 75 } 76 public int getInvoice_PrintFormat_ID() 77 { 78 Integer ii = (Integer )getValue("Invoice_PrintFormat_ID"); 79 if (ii == null) return 0; 80 return ii.intValue(); 81 } 82 public void setName (String Name) 83 { 84 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 85 setValue ("Name", Name); 86 } 87 public String getName() 88 { 89 return (String )getValue("Name"); 90 } 91 public void setOrder_MailText_ID (int Order_MailText_ID) 92 { 93 if (Order_MailText_ID == 0) setValue ("Order_MailText_ID", null); 94 else 95 setValue ("Order_MailText_ID", new Integer (Order_MailText_ID)); 96 } 97 public int getOrder_MailText_ID() 98 { 99 Integer ii = (Integer )getValue("Order_MailText_ID"); 100 if (ii == null) return 0; 101 return ii.intValue(); 102 } 103 public void setOrder_PrintFormat_ID (int Order_PrintFormat_ID) 104 { 105 if (Order_PrintFormat_ID == 0) setValue ("Order_PrintFormat_ID", null); 106 else 107 setValue ("Order_PrintFormat_ID", new Integer (Order_PrintFormat_ID)); 108 } 109 public int getOrder_PrintFormat_ID() 110 { 111 Integer ii = (Integer )getValue("Order_PrintFormat_ID"); 112 if (ii == null) return 0; 113 return ii.intValue(); 114 } 115 public void setProject_MailText_ID (int Project_MailText_ID) 116 { 117 if (Project_MailText_ID == 0) setValue ("Project_MailText_ID", null); 118 else 119 setValue ("Project_MailText_ID", new Integer (Project_MailText_ID)); 120 } 121 public int getProject_MailText_ID() 122 { 123 Integer ii = (Integer )getValue("Project_MailText_ID"); 124 if (ii == null) return 0; 125 return ii.intValue(); 126 } 127 public void setProject_PrintFormat_ID (int Project_PrintFormat_ID) 128 { 129 if (Project_PrintFormat_ID == 0) setValue ("Project_PrintFormat_ID", null); 130 else 131 setValue ("Project_PrintFormat_ID", new Integer (Project_PrintFormat_ID)); 132 } 133 public int getProject_PrintFormat_ID() 134 { 135 Integer ii = (Integer )getValue("Project_PrintFormat_ID"); 136 if (ii == null) return 0; 137 return ii.intValue(); 138 } 139 public void setRemittance_MailText_ID (int Remittance_MailText_ID) 140 { 141 if (Remittance_MailText_ID == 0) setValue ("Remittance_MailText_ID", null); 142 else 143 setValue ("Remittance_MailText_ID", new Integer (Remittance_MailText_ID)); 144 } 145 public int getRemittance_MailText_ID() 146 { 147 Integer ii = (Integer )getValue("Remittance_MailText_ID"); 148 if (ii == null) return 0; 149 return ii.intValue(); 150 } 151 public void setRemittance_PrintFormat_ID (int Remittance_PrintFormat_ID) 152 { 153 if (Remittance_PrintFormat_ID == 0) setValue ("Remittance_PrintFormat_ID", null); 154 else 155 setValue ("Remittance_PrintFormat_ID", new Integer (Remittance_PrintFormat_ID)); 156 } 157 public int getRemittance_PrintFormat_ID() 158 { 159 Integer ii = (Integer )getValue("Remittance_PrintFormat_ID"); 160 if (ii == null) return 0; 161 return ii.intValue(); 162 } 163 public void setShipment_MailText_ID (int Shipment_MailText_ID) 164 { 165 if (Shipment_MailText_ID == 0) setValue ("Shipment_MailText_ID", null); 166 else 167 setValue ("Shipment_MailText_ID", new Integer (Shipment_MailText_ID)); 168 } 169 public int getShipment_MailText_ID() 170 { 171 Integer ii = (Integer )getValue("Shipment_MailText_ID"); 172 if (ii == null) return 0; 173 return ii.intValue(); 174 } 175 public void setShipment_PrintFormat_ID (int Shipment_PrintFormat_ID) 176 { 177 if (Shipment_PrintFormat_ID == 0) setValue ("Shipment_PrintFormat_ID", null); 178 else 179 setValue ("Shipment_PrintFormat_ID", new Integer (Shipment_PrintFormat_ID)); 180 } 181 public int getShipment_PrintFormat_ID() 182 { 183 Integer ii = (Integer )getValue("Shipment_PrintFormat_ID"); 184 if (ii == null) return 0; 185 return ii.intValue(); 186 } 187 } 188
| Popular Tags
|