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