KickJava   Java API By Example, From Geeks To Geeks.

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


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 C_Activity
9  ** @version $Id: X_C_Activity.java,v 1.27 2003/10/31 05:30:52 jjanke Exp $ **/

10 public class X_C_Activity extends PO
11 {
12 /** Standard Constructor **/
13 public X_C_Activity (Properties ctx, int C_Activity_ID)
14 {
15 super (ctx, C_Activity_ID);
16 /** if (C_Activity_ID == 0)
17 {
18 setC_Activity_ID (0);
19 setIsSummary (false);
20 setName (null);
21 setValue (null);
22 }
23  **/

24 }
25 /** Load Constructor **/
26 public X_C_Activity (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 = 316;
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_C_Activity[").append(getID()).append("]");
40 return sb.toString();
41 }
42 void setC_Activity_ID (int C_Activity_ID)
43 {
44 setValueNoCheck ("C_Activity_ID", new Integer JavaDoc(C_Activity_ID));
45 }
46 public int getC_Activity_ID()
47 {
48 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Activity_ID");
49 if (ii == null) return 0;
50 return ii.intValue();
51 }
52 public void setDescription (String JavaDoc Description)
53 {
54 setValue ("Description", Description);
55 }
56 public String JavaDoc getDescription()
57 {
58 return (String JavaDoc)getValue("Description");
59 }
60 public void setHelp (String JavaDoc Help)
61 {
62 setValue ("Help", Help);
63 }
64 public String JavaDoc getHelp()
65 {
66 return (String JavaDoc)getValue("Help");
67 }
68 public void setIsSummary (boolean IsSummary)
69 {
70 setValue ("IsSummary", new Boolean JavaDoc(IsSummary));
71 }
72 public boolean isSummary()
73 {
74 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsSummary");
75 if (bb != null) return bb.booleanValue();
76 return false;
77 }
78 public void setName (String JavaDoc Name)
79 {
80 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
81 setValue ("Name", Name);
82 }
83 public String JavaDoc getName()
84 {
85 return (String JavaDoc)getValue("Name");
86 }
87 public void setValue (String JavaDoc Value)
88 {
89 if (Value == null) throw new IllegalArgumentException JavaDoc ("Value is mandatory");
90 setValue ("Value", Value);
91 }
92 public String JavaDoc getValue()
93 {
94 return (String JavaDoc)getValue("Value");
95 }
96 }
97
Popular Tags