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_AttributeSet extends PO 11 { 12 13 public X_M_AttributeSet (Properties ctx, int M_AttributeSet_ID) 14 { 15 super (ctx, M_AttributeSet_ID); 16 26 } 27 28 public X_M_AttributeSet (Properties ctx, ResultSet rs) 29 { 30 super (ctx, rs); 31 } 32 33 protected POInfo initPO (Properties ctx) 34 { 35 int AD_Table_ID = 560; 36 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 37 return poi; 38 } 39 public String toString() 40 { 41 StringBuffer sb = new StringBuffer ("X_M_AttributeSet[").append(getID()).append("]"); 42 return sb.toString(); 43 } 44 public void setDescription (String Description) 45 { 46 setValue ("Description", Description); 47 } 48 public String getDescription() 49 { 50 return (String )getValue("Description"); 51 } 52 public void setGuaranteeDays (int GuaranteeDays) 53 { 54 setValue ("GuaranteeDays", new Integer (GuaranteeDays)); 55 } 56 public int getGuaranteeDays() 57 { 58 Integer ii = (Integer )getValue("GuaranteeDays"); 59 if (ii == null) return 0; 60 return ii.intValue(); 61 } 62 public void setIsGuaranteeDate (boolean IsGuaranteeDate) 63 { 64 setValue ("IsGuaranteeDate", new Boolean (IsGuaranteeDate)); 65 } 66 public boolean isGuaranteeDate() 67 { 68 Boolean bb = (Boolean )getValue("IsGuaranteeDate"); 69 if (bb != null) return bb.booleanValue(); 70 return false; 71 } 72 public void setIsInstanceAttribute (boolean IsInstanceAttribute) 73 { 74 setValue ("IsInstanceAttribute", new Boolean (IsInstanceAttribute)); 75 } 76 public boolean isInstanceAttribute() 77 { 78 Boolean bb = (Boolean )getValue("IsInstanceAttribute"); 79 if (bb != null) return bb.booleanValue(); 80 return false; 81 } 82 public void setIsLot (boolean IsLot) 83 { 84 setValue ("IsLot", new Boolean (IsLot)); 85 } 86 public boolean isLot() 87 { 88 Boolean bb = (Boolean )getValue("IsLot"); 89 if (bb != null) return bb.booleanValue(); 90 return false; 91 } 92 public void setIsSerNo (boolean IsSerNo) 93 { 94 setValue ("IsSerNo", new Boolean (IsSerNo)); 95 } 96 public boolean isSerNo() 97 { 98 Boolean bb = (Boolean )getValue("IsSerNo"); 99 if (bb != null) return bb.booleanValue(); 100 return false; 101 } 102 void setM_AttributeSet_ID (int M_AttributeSet_ID) 103 { 104 setValueNoCheck ("M_AttributeSet_ID", new Integer (M_AttributeSet_ID)); 105 } 106 public int getM_AttributeSet_ID() 107 { 108 Integer ii = (Integer )getValue("M_AttributeSet_ID"); 109 if (ii == null) return 0; 110 return ii.intValue(); 111 } 112 public void setM_LotCtl_ID (int M_LotCtl_ID) 113 { 114 if (M_LotCtl_ID == 0) setValue ("M_LotCtl_ID", null); 115 else 116 setValue ("M_LotCtl_ID", new Integer (M_LotCtl_ID)); 117 } 118 public int getM_LotCtl_ID() 119 { 120 Integer ii = (Integer )getValue("M_LotCtl_ID"); 121 if (ii == null) return 0; 122 return ii.intValue(); 123 } 124 public void setM_SerNoCtl_ID (int M_SerNoCtl_ID) 125 { 126 if (M_SerNoCtl_ID == 0) setValue ("M_SerNoCtl_ID", null); 127 else 128 setValue ("M_SerNoCtl_ID", new Integer (M_SerNoCtl_ID)); 129 } 130 public int getM_SerNoCtl_ID() 131 { 132 Integer ii = (Integer )getValue("M_SerNoCtl_ID"); 133 if (ii == null) return 0; 134 return ii.intValue(); 135 } 136 public void setName (String Name) 137 { 138 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 139 setValue ("Name", Name); 140 } 141 public String getName() 142 { 143 return (String )getValue("Name"); 144 } 145 } 146
| Popular Tags
|