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_K_CategoryValue extends PO 11 { 12 13 public X_K_CategoryValue (Properties ctx, int K_CategoryValue_ID) 14 { 15 super (ctx, K_CategoryValue_ID); 16 23 } 24 25 public X_K_CategoryValue (Properties ctx, ResultSet rs) 26 { 27 super (ctx, rs); 28 } 29 30 protected POInfo initPO (Properties ctx) 31 { 32 int AD_Table_ID = 614; 33 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 34 return poi; 35 } 36 public String toString() 37 { 38 StringBuffer sb = new StringBuffer ("X_K_CategoryValue[").append(getID()).append("]"); 39 return sb.toString(); 40 } 41 public void setDescription (String Description) 42 { 43 setValue ("Description", Description); 44 } 45 public String getDescription() 46 { 47 return (String )getValue("Description"); 48 } 49 void setK_CategoryValue_ID (int K_CategoryValue_ID) 50 { 51 setValueNoCheck ("K_CategoryValue_ID", new Integer (K_CategoryValue_ID)); 52 } 53 public int getK_CategoryValue_ID() 54 { 55 Integer ii = (Integer )getValue("K_CategoryValue_ID"); 56 if (ii == null) return 0; 57 return ii.intValue(); 58 } 59 void setK_Category_ID (int K_Category_ID) 60 { 61 setValueNoCheck ("K_Category_ID", new Integer (K_Category_ID)); 62 } 63 public int getK_Category_ID() 64 { 65 Integer ii = (Integer )getValue("K_Category_ID"); 66 if (ii == null) return 0; 67 return ii.intValue(); 68 } 69 public void setName (String Name) 70 { 71 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 72 setValue ("Name", Name); 73 } 74 public String getName() 75 { 76 return (String )getValue("Name"); 77 } 78 } 79 | Popular Tags |