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_AttributeSetInstance extends PO 11 { 12 13 public X_M_AttributeSetInstance (Properties ctx, int M_AttributeSetInstance_ID) 14 { 15 super (ctx, M_AttributeSetInstance_ID); 16 22 } 23 24 public X_M_AttributeSetInstance (Properties ctx, ResultSet rs) 25 { 26 super (ctx, rs); 27 } 28 29 protected POInfo initPO (Properties ctx) 30 { 31 int AD_Table_ID = 559; 32 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 33 return poi; 34 } 35 public String toString() 36 { 37 StringBuffer sb = new StringBuffer ("X_M_AttributeSetInstance[").append(getID()).append("]"); 38 return sb.toString(); 39 } 40 public void setDescription (String Description) 41 { 42 setValue ("Description", Description); 43 } 44 public String getDescription() 45 { 46 return (String )getValue("Description"); 47 } 48 public void setGuaranteeDate (Timestamp GuaranteeDate) 49 { 50 setValue ("GuaranteeDate", GuaranteeDate); 51 } 52 public Timestamp getGuaranteeDate() 53 { 54 return (Timestamp)getValue("GuaranteeDate"); 55 } 56 public void setLot (String Lot) 57 { 58 setValue ("Lot", Lot); 59 } 60 public String getLot() 61 { 62 return (String )getValue("Lot"); 63 } 64 void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) 65 { 66 setValueNoCheck ("M_AttributeSetInstance_ID", new Integer (M_AttributeSetInstance_ID)); 67 } 68 public int getM_AttributeSetInstance_ID() 69 { 70 Integer ii = (Integer )getValue("M_AttributeSetInstance_ID"); 71 if (ii == null) return 0; 72 return ii.intValue(); 73 } 74 public void setM_AttributeSet_ID (int M_AttributeSet_ID) 75 { 76 setValue ("M_AttributeSet_ID", new Integer (M_AttributeSet_ID)); 77 } 78 public int getM_AttributeSet_ID() 79 { 80 Integer ii = (Integer )getValue("M_AttributeSet_ID"); 81 if (ii == null) return 0; 82 return ii.intValue(); 83 } 84 public void setM_Lot_ID (int M_Lot_ID) 85 { 86 if (M_Lot_ID == 0) setValue ("M_Lot_ID", null); 87 else 88 setValue ("M_Lot_ID", new Integer (M_Lot_ID)); 89 } 90 public int getM_Lot_ID() 91 { 92 Integer ii = (Integer )getValue("M_Lot_ID"); 93 if (ii == null) return 0; 94 return ii.intValue(); 95 } 96 public void setSerNo (String SerNo) 97 { 98 setValue ("SerNo", SerNo); 99 } 100 public String getSerNo() 101 { 102 return (String )getValue("SerNo"); 103 } 104 } 105 | Popular Tags |