KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_K_Type extends PO
11 {
12 /** Standard Constructor **/
13 public X_K_Type (Properties ctx, int K_Type_ID)
14 {
15 super (ctx, K_Type_ID);
16 /** if (K_Type_ID == 0)
17 {
18 setIsPublic (false);
19 setIsPublicWrite (false);
20 setK_Type_ID (0);
21 setName (null);
22 }
23  **/

24 }
25 /** Load Constructor **/
26 public X_K_Type (Properties ctx, ResultSet rs)
27 {
28 super (ctx, rs);
29 }
30 /** Load Meta Data **/
31 protected POInfo initPO (Properties ctx)
32 {
33 int AD_Table_ID = 606;
34 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
35 return poi;
36 }
37 public String JavaDoc toString()
38 {
39 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_K_Type[").append(getID()).append("]");
40 return sb.toString();
41 }
42 public void setDescription (String JavaDoc Description)
43 {
44 setValue ("Description", Description);
45 }
46 public String JavaDoc getDescription()
47 {
48 return (String JavaDoc)getValue("Description");
49 }
50 public void setHelp (String JavaDoc Help)
51 {
52 setValue ("Help", Help);
53 }
54 public String JavaDoc getHelp()
55 {
56 return (String JavaDoc)getValue("Help");
57 }
58 public void setIsPublic (boolean IsPublic)
59 {
60 setValue ("IsPublic", new Boolean JavaDoc(IsPublic));
61 }
62 public boolean isPublic()
63 {
64 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsPublic");
65 if (bb != null) return bb.booleanValue();
66 return false;
67 }
68 public void setIsPublicWrite (boolean IsPublicWrite)
69 {
70 setValue ("IsPublicWrite", new Boolean JavaDoc(IsPublicWrite));
71 }
72 public boolean isPublicWrite()
73 {
74 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsPublicWrite");
75 if (bb != null) return bb.booleanValue();
76 return false;
77 }
78 void setK_Type_ID (int K_Type_ID)
79 {
80 setValueNoCheck ("K_Type_ID", new Integer JavaDoc(K_Type_ID));
81 }
82 public int getK_Type_ID()
83 {
84 Integer JavaDoc ii = (Integer JavaDoc)getValue("K_Type_ID");
85 if (ii == null) return 0;
86 return ii.intValue();
87 }
88 public void setName (String JavaDoc Name)
89 {
90 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
91 setValue ("Name", Name);
92 }
93 public String JavaDoc getName()
94 {
95 return (String JavaDoc)getValue("Name");
96 }
97 }
98
Popular Tags