KickJava   Java API By Example, From Geeks To Geeks.

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


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_Entry
9  ** @version $Id: X_K_Entry.java,v 1.23 2003/10/31 05:30:54 jjanke Exp $ **/

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

26 }
27 /** Load Constructor **/
28 public X_K_Entry (Properties ctx, ResultSet rs)
29 {
30 super (ctx, rs);
31 }
32 /** Load Meta Data **/
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 JavaDoc toString()
40 {
41 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("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 JavaDoc(AD_Session_ID));
49 }
50 public int getAD_Session_ID()
51 {
52 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_Session_ID");
53 if (ii == null) return 0;
54 return ii.intValue();
55 }
56 public void setDescriptionURL (String JavaDoc DescriptionURL)
57 {
58 setValue ("DescriptionURL", DescriptionURL);
59 }
60 public String JavaDoc getDescriptionURL()
61 {
62 return (String JavaDoc)getValue("DescriptionURL");
63 }
64 public void setIsPublic (boolean IsPublic)
65 {
66 setValue ("IsPublic", new Boolean JavaDoc(IsPublic));
67 }
68 public boolean isPublic()
69 {
70 Boolean JavaDoc bb = (Boolean JavaDoc)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 JavaDoc(K_Entry_ID));
77 }
78 public int getK_Entry_ID()
79 {
80 Integer JavaDoc ii = (Integer JavaDoc)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 JavaDoc(K_Source_ID));
89 }
90 public int getK_Source_ID()
91 {
92 Integer JavaDoc ii = (Integer JavaDoc)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 JavaDoc(K_Topic_ID));
99 }
100 public int getK_Topic_ID()
101 {
102 Integer JavaDoc ii = (Integer JavaDoc)getValue("K_Topic_ID");
103 if (ii == null) return 0;
104 return ii.intValue();
105 }
106 public void setKeywords (String JavaDoc Keywords)
107 {
108 setValue ("Keywords", Keywords);
109 }
110 public String JavaDoc getKeywords()
111 {
112 return (String JavaDoc)getValue("Keywords");
113 }
114 public void setName (String JavaDoc Name)
115 {
116 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
117 setValue ("Name", Name);
118 }
119 public String JavaDoc getName()
120 {
121 return (String JavaDoc)getValue("Name");
122 }
123 public void setRating (int Rating)
124 {
125 setValue ("Rating", new Integer JavaDoc(Rating));
126 }
127 public int getRating()
128 {
129 Integer JavaDoc ii = (Integer JavaDoc)getValue("Rating");
130 if (ii == null) return 0;
131 return ii.intValue();
132 }
133 public void setText (String JavaDoc Text)
134 {
135 if (Text == null) throw new IllegalArgumentException JavaDoc ("Text is mandatory");
136 setValue ("Text", Text);
137 }
138 public String JavaDoc getText()
139 {
140 return (String JavaDoc)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