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_Entry extends PO 11 { 12 13 public X_K_Entry (Properties ctx, int K_Entry_ID) 14 { 15 super (ctx, K_Entry_ID); 16 26 } 27 28 public X_K_Entry (Properties ctx, ResultSet rs) 29 { 30 super (ctx, rs); 31 } 32 33 protected POInfo initPO (Properties ctx) 34 { 35 int AD_Table_ID = 612; 36 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 37 return poi; 38 } 39 public String toString() 40 { 41 StringBuffer sb = new StringBuffer ("X_K_Entry[").append(getID()).append("]"); 42 return sb.toString(); 43 } 44 void setAD_Session_ID (int AD_Session_ID) 45 { 46 if (AD_Session_ID == 0) setValueNoCheck ("AD_Session_ID", null); 47 else 48 setValueNoCheck ("AD_Session_ID", new Integer (AD_Session_ID)); 49 } 50 public int getAD_Session_ID() 51 { 52 Integer ii = (Integer )getValue("AD_Session_ID"); 53 if (ii == null) return 0; 54 return ii.intValue(); 55 } 56 public void setDescriptionURL (String DescriptionURL) 57 { 58 setValue ("DescriptionURL", DescriptionURL); 59 } 60 public String getDescriptionURL() 61 { 62 return (String )getValue("DescriptionURL"); 63 } 64 public void setIsPublic (boolean IsPublic) 65 { 66 setValue ("IsPublic", new Boolean (IsPublic)); 67 } 68 public boolean isPublic() 69 { 70 Boolean bb = (Boolean )getValue("IsPublic"); 71 if (bb != null) return bb.booleanValue(); 72 return false; 73 } 74 void setK_Entry_ID (int K_Entry_ID) 75 { 76 setValueNoCheck ("K_Entry_ID", new Integer (K_Entry_ID)); 77 } 78 public int getK_Entry_ID() 79 { 80 Integer ii = (Integer )getValue("K_Entry_ID"); 81 if (ii == null) return 0; 82 return ii.intValue(); 83 } 84 public void setK_Source_ID (int K_Source_ID) 85 { 86 if (K_Source_ID == 0) setValue ("K_Source_ID", null); 87 else 88 setValue ("K_Source_ID", new Integer (K_Source_ID)); 89 } 90 public int getK_Source_ID() 91 { 92 Integer ii = (Integer )getValue("K_Source_ID"); 93 if (ii == null) return 0; 94 return ii.intValue(); 95 } 96 void setK_Topic_ID (int K_Topic_ID) 97 { 98 setValueNoCheck ("K_Topic_ID", new Integer (K_Topic_ID)); 99 } 100 public int getK_Topic_ID() 101 { 102 Integer ii = (Integer )getValue("K_Topic_ID"); 103 if (ii == null) return 0; 104 return ii.intValue(); 105 } 106 public void setKeywords (String Keywords) 107 { 108 setValue ("Keywords", Keywords); 109 } 110 public String getKeywords() 111 { 112 return (String )getValue("Keywords"); 113 } 114 public void setName (String Name) 115 { 116 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 117 setValue ("Name", Name); 118 } 119 public String getName() 120 { 121 return (String )getValue("Name"); 122 } 123 public void setRating (int Rating) 124 { 125 setValue ("Rating", new Integer (Rating)); 126 } 127 public int getRating() 128 { 129 Integer ii = (Integer )getValue("Rating"); 130 if (ii == null) return 0; 131 return ii.intValue(); 132 } 133 public void setText (String Text) 134 { 135 if (Text == null) throw new IllegalArgumentException ("Text is mandatory"); 136 setValue ("Text", Text); 137 } 138 public String getText() 139 { 140 return (String )getValue("Text"); 141 } 142 public void setValidTo (Timestamp ValidTo) 143 { 144 setValue ("ValidTo", ValidTo); 145 } 146 public Timestamp getValidTo() 147 { 148 return (Timestamp)getValue("ValidTo"); 149 } 150 } 151 | Popular Tags |