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_Type extends PO 11 { 12 13 public X_K_Type (Properties ctx, int K_Type_ID) 14 { 15 super (ctx, K_Type_ID); 16 24 } 25 26 public X_K_Type (Properties ctx, ResultSet rs) 27 { 28 super (ctx, rs); 29 } 30 31 protected POInfo initPO (Properties ctx) 32 { 33 int AD_Table_ID = 606; 34 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 35 return poi; 36 } 37 public String toString() 38 { 39 StringBuffer sb = new StringBuffer ("X_K_Type[").append(getID()).append("]"); 40 return sb.toString(); 41 } 42 public void setDescription (String Description) 43 { 44 setValue ("Description", Description); 45 } 46 public String getDescription() 47 { 48 return (String )getValue("Description"); 49 } 50 public void setHelp (String Help) 51 { 52 setValue ("Help", Help); 53 } 54 public String getHelp() 55 { 56 return (String )getValue("Help"); 57 } 58 public void setIsPublic (boolean IsPublic) 59 { 60 setValue ("IsPublic", new Boolean (IsPublic)); 61 } 62 public boolean isPublic() 63 { 64 Boolean bb = (Boolean )getValue("IsPublic"); 65 if (bb != null) return bb.booleanValue(); 66 return false; 67 } 68 public void setIsPublicWrite (boolean IsPublicWrite) 69 { 70 setValue ("IsPublicWrite", new Boolean (IsPublicWrite)); 71 } 72 public boolean isPublicWrite() 73 { 74 Boolean bb = (Boolean )getValue("IsPublicWrite"); 75 if (bb != null) return bb.booleanValue(); 76 return false; 77 } 78 void setK_Type_ID (int K_Type_ID) 79 { 80 setValueNoCheck ("K_Type_ID", new Integer (K_Type_ID)); 81 } 82 public int getK_Type_ID() 83 { 84 Integer ii = (Integer )getValue("K_Type_ID"); 85 if (ii == null) return 0; 86 return ii.intValue(); 87 } 88 public void setName (String Name) 89 { 90 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 91 setValue ("Name", Name); 92 } 93 public String getName() 94 { 95 return (String )getValue("Name"); 96 } 97 } 98 | Popular Tags |