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_Comment extends PO 11 { 12 13 public X_K_Comment (Properties ctx, int K_Comment_ID) 14 { 15 super (ctx, K_Comment_ID); 16 25 } 26 27 public X_K_Comment (Properties ctx, ResultSet rs) 28 { 29 super (ctx, rs); 30 } 31 32 protected POInfo initPO (Properties ctx) 33 { 34 int AD_Table_ID = 613; 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_Comment[").append(getID()).append("]"); 41 return sb.toString(); 42 } 43 void setAD_Session_ID (int AD_Session_ID) 44 { 45 if (AD_Session_ID == 0) setValueNoCheck ("AD_Session_ID", null); 46 else 47 setValueNoCheck ("AD_Session_ID", new Integer (AD_Session_ID)); 48 } 49 public int getAD_Session_ID() 50 { 51 Integer ii = (Integer )getValue("AD_Session_ID"); 52 if (ii == null) return 0; 53 return ii.intValue(); 54 } 55 public void setIsPublic (boolean IsPublic) 56 { 57 setValue ("IsPublic", new Boolean (IsPublic)); 58 } 59 public boolean isPublic() 60 { 61 Boolean bb = (Boolean )getValue("IsPublic"); 62 if (bb != null) return bb.booleanValue(); 63 return false; 64 } 65 void setK_Comment_ID (int K_Comment_ID) 66 { 67 setValueNoCheck ("K_Comment_ID", new Integer (K_Comment_ID)); 68 } 69 public int getK_Comment_ID() 70 { 71 Integer ii = (Integer )getValue("K_Comment_ID"); 72 if (ii == null) return 0; 73 return ii.intValue(); 74 } 75 void setK_Entry_ID (int K_Entry_ID) 76 { 77 setValueNoCheck ("K_Entry_ID", new Integer (K_Entry_ID)); 78 } 79 public int getK_Entry_ID() 80 { 81 Integer ii = (Integer )getValue("K_Entry_ID"); 82 if (ii == null) return 0; 83 return ii.intValue(); 84 } 85 public void setRating (int Rating) 86 { 87 setValue ("Rating", new Integer (Rating)); 88 } 89 public int getRating() 90 { 91 Integer ii = (Integer )getValue("Rating"); 92 if (ii == null) return 0; 93 return ii.intValue(); 94 } 95 public void setText (String Text) 96 { 97 if (Text == null) throw new IllegalArgumentException ("Text is mandatory"); 98 setValue ("Text", Text); 99 } 100 public String getText() 101 { 102 return (String )getValue("Text"); 103 } 104 } 105 | Popular Tags |