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_AttributeInstance extends PO 11 { 12 13 public X_M_AttributeInstance (Properties ctx, int M_AttributeInstance_ID) 14 { 15 super (ctx, M_AttributeInstance_ID); 16 22 } 23 24 public X_M_AttributeInstance (Properties ctx, ResultSet rs) 25 { 26 super (ctx, rs); 27 } 28 29 protected POInfo initPO (Properties ctx) 30 { 31 int AD_Table_ID = 561; 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_AttributeInstance[").append(getID()).append("]"); 38 return sb.toString(); 39 } 40 void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) 41 { 42 setValueNoCheck ("M_AttributeSetInstance_ID", new Integer (M_AttributeSetInstance_ID)); 43 } 44 public int getM_AttributeSetInstance_ID() 45 { 46 Integer ii = (Integer )getValue("M_AttributeSetInstance_ID"); 47 if (ii == null) return 0; 48 return ii.intValue(); 49 } 50 public void setM_AttributeValue_ID (int M_AttributeValue_ID) 51 { 52 if (M_AttributeValue_ID == 0) setValue ("M_AttributeValue_ID", null); 53 else 54 setValue ("M_AttributeValue_ID", new Integer (M_AttributeValue_ID)); 55 } 56 public int getM_AttributeValue_ID() 57 { 58 Integer ii = (Integer )getValue("M_AttributeValue_ID"); 59 if (ii == null) return 0; 60 return ii.intValue(); 61 } 62 void setM_Attribute_ID (int M_Attribute_ID) 63 { 64 setValueNoCheck ("M_Attribute_ID", new Integer (M_Attribute_ID)); 65 } 66 public int getM_Attribute_ID() 67 { 68 Integer ii = (Integer )getValue("M_Attribute_ID"); 69 if (ii == null) return 0; 70 return ii.intValue(); 71 } 72 public void setValue (String Value) 73 { 74 setValue ("Value", Value); 75 } 76 public String getValue() 77 { 78 return (String )getValue("Value"); 79 } 80 } 81 | Popular Tags |