KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > compiere > model > X_K_Comment


1 /** Generated Model - DO NOT CHANGE - Copyright (C) 1999-2003 Jorg Janke **/
2 package org.compiere.model;
3 import java.util.*;
4 import java.sql.*;
5 import java.math.*;
6 import java.io.Serializable JavaDoc;
7 import org.compiere.util.*;
8 /** Generated Model for K_Comment
9  ** @version $Id: X_K_Comment.java,v 1.23 2003/10/31 05:30:53 jjanke Exp $ **/

10 public class X_K_Comment extends PO
11 {
12 /** Standard Constructor **/
13 public X_K_Comment (Properties ctx, int K_Comment_ID)
14 {
15 super (ctx, K_Comment_ID);
16 /** if (K_Comment_ID == 0)
17 {
18 setIsPublic (false);
19 setK_Comment_ID (0);
20 setK_Entry_ID (0);
21 setRating (0);
22 setText (null);
23 }
24  **/

25 }
26 /** Load Constructor **/
27 public X_K_Comment (Properties ctx, ResultSet rs)
28 {
29 super (ctx, rs);
30 }
31 /** Load Meta Data **/
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 JavaDoc toString()
39 {
40 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("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 JavaDoc(AD_Session_ID));
48 }
49 public int getAD_Session_ID()
50 {
51 Integer JavaDoc ii = (Integer JavaDoc)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 JavaDoc(IsPublic));
58 }
59 public boolean isPublic()
60 {
61 Boolean JavaDoc bb = (Boolean JavaDoc)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 JavaDoc(K_Comment_ID));
68 }
69 public int getK_Comment_ID()
70 {
71 Integer JavaDoc ii = (Integer JavaDoc)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 JavaDoc(K_Entry_ID));
78 }
79 public int getK_Entry_ID()
80 {
81 Integer JavaDoc ii = (Integer JavaDoc)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 JavaDoc(Rating));
88 }
89 public int getRating()
90 {
91 Integer JavaDoc ii = (Integer JavaDoc)getValue("Rating");
92 if (ii == null) return 0;
93 return ii.intValue();
94 }
95 public void setText (String JavaDoc Text)
96 {
97 if (Text == null) throw new IllegalArgumentException JavaDoc ("Text is mandatory");
98 setValue ("Text", Text);
99 }
100 public String JavaDoc getText()
101 {
102 return (String JavaDoc)getValue("Text");
103 }
104 }
105
Popular Tags