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_M_MatchPO extends PO 11 { 12 13 public X_M_MatchPO (Properties ctx, int M_MatchPO_ID) 14 { 15 super (ctx, M_MatchPO_ID); 16 29 } 30 31 public X_M_MatchPO (Properties ctx, ResultSet rs) 32 { 33 super (ctx, rs); 34 } 35 36 protected POInfo initPO (Properties ctx) 37 { 38 int AD_Table_ID = 473; 39 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 40 return poi; 41 } 42 public String toString() 43 { 44 StringBuffer sb = new StringBuffer ("X_M_MatchPO[").append(getID()).append("]"); 45 return sb.toString(); 46 } 47 public void setC_InvoiceLine_ID (int C_InvoiceLine_ID) 48 { 49 if (C_InvoiceLine_ID == 0) setValue ("C_InvoiceLine_ID", null); 50 else 51 setValue ("C_InvoiceLine_ID", new Integer (C_InvoiceLine_ID)); 52 } 53 public int getC_InvoiceLine_ID() 54 { 55 Integer ii = (Integer )getValue("C_InvoiceLine_ID"); 56 if (ii == null) return 0; 57 return ii.intValue(); 58 } 59 void setC_OrderLine_ID (int C_OrderLine_ID) 60 { 61 setValueNoCheck ("C_OrderLine_ID", new Integer (C_OrderLine_ID)); 62 } 63 public int getC_OrderLine_ID() 64 { 65 Integer ii = (Integer )getValue("C_OrderLine_ID"); 66 if (ii == null) return 0; 67 return ii.intValue(); 68 } 69 void setDateTrx (Timestamp DateTrx) 70 { 71 if (DateTrx == null) throw new IllegalArgumentException ("DateTrx is mandatory"); 72 setValueNoCheck ("DateTrx", DateTrx); 73 } 74 public Timestamp getDateTrx() 75 { 76 return (Timestamp)getValue("DateTrx"); 77 } 78 void setM_InOutLine_ID (int M_InOutLine_ID) 79 { 80 setValueNoCheck ("M_InOutLine_ID", new Integer (M_InOutLine_ID)); 81 } 82 public int getM_InOutLine_ID() 83 { 84 Integer ii = (Integer )getValue("M_InOutLine_ID"); 85 if (ii == null) return 0; 86 return ii.intValue(); 87 } 88 void setM_MatchPO_ID (int M_MatchPO_ID) 89 { 90 setValueNoCheck ("M_MatchPO_ID", new Integer (M_MatchPO_ID)); 91 } 92 public int getM_MatchPO_ID() 93 { 94 Integer ii = (Integer )getValue("M_MatchPO_ID"); 95 if (ii == null) return 0; 96 return ii.intValue(); 97 } 98 void setM_Product_ID (int M_Product_ID) 99 { 100 setValueNoCheck ("M_Product_ID", new Integer (M_Product_ID)); 101 } 102 public int getM_Product_ID() 103 { 104 Integer ii = (Integer )getValue("M_Product_ID"); 105 if (ii == null) return 0; 106 return ii.intValue(); 107 } 108 public void setPosted (boolean Posted) 109 { 110 setValue ("Posted", new Boolean (Posted)); 111 } 112 public boolean isPosted() 113 { 114 Boolean bb = (Boolean )getValue("Posted"); 115 if (bb != null) return bb.booleanValue(); 116 return false; 117 } 118 void setProcessed (boolean Processed) 119 { 120 setValueNoCheck ("Processed", new Boolean (Processed)); 121 } 122 public boolean isProcessed() 123 { 124 Boolean bb = (Boolean )getValue("Processed"); 125 if (bb != null) return bb.booleanValue(); 126 return false; 127 } 128 void setProcessing (boolean Processing) 129 { 130 setValueNoCheck ("Processing", new Boolean (Processing)); 131 } 132 public boolean isProcessing() 133 { 134 Boolean bb = (Boolean )getValue("Processing"); 135 if (bb != null) return bb.booleanValue(); 136 return false; 137 } 138 void setQty (BigDecimal Qty) 139 { 140 if (Qty == null) throw new IllegalArgumentException ("Qty is mandatory"); 141 setValueNoCheck ("Qty", Qty); 142 } 143 public BigDecimal getQty() 144 { 145 BigDecimal bd = (BigDecimal)getValue("Qty"); 146 if (bd == null) return Env.ZERO; 147 return bd; 148 } 149 } 150 | Popular Tags |