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