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_Category extends PO 11 { 12 13 public X_K_Category (Properties ctx, int K_Category_ID) 14 { 15 super (ctx, K_Category_ID); 16 22 } 23 24 public X_K_Category (Properties ctx, ResultSet rs) 25 { 26 super (ctx, rs); 27 } 28 29 protected POInfo initPO (Properties ctx) 30 { 31 int AD_Table_ID = 615; 32 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 33 return poi; 34 } 35 public String toString() 36 { 37 StringBuffer sb = new StringBuffer ("X_K_Category[").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 setHelp (String Help) 49 { 50 setValue ("Help", Help); 51 } 52 public String getHelp() 53 { 54 return (String )getValue("Help"); 55 } 56 void setK_Category_ID (int K_Category_ID) 57 { 58 setValueNoCheck ("K_Category_ID", new Integer (K_Category_ID)); 59 } 60 public int getK_Category_ID() 61 { 62 Integer ii = (Integer )getValue("K_Category_ID"); 63 if (ii == null) return 0; 64 return ii.intValue(); 65 } 66 public void setName (String Name) 67 { 68 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 69 setValue ("Name", Name); 70 } 71 public String getName() 72 { 73 return (String )getValue("Name"); 74 } 75 } 76 | Popular Tags |