KickJava   Java API By Example, From Geeks To Geeks.

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


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

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

23 }
24 /** Load Constructor **/
25 public X_AD_Org (Properties ctx, ResultSet rs)
26 {
27 super (ctx, rs);
28 }
29 /** Load Meta Data **/
30 protected POInfo initPO (Properties ctx)
31 {
32 int AD_Table_ID = 155;
33 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
34 return poi;
35 }
36 public String JavaDoc toString()
37 {
38 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_AD_Org[").append(getID()).append("]");
39 return sb.toString();
40 }
41 public void setDescription (String JavaDoc Description)
42 {
43 setValue ("Description", Description);
44 }
45 public String JavaDoc getDescription()
46 {
47 return (String JavaDoc)getValue("Description");
48 }
49 public void setIsSummary (boolean IsSummary)
50 {
51 setValue ("IsSummary", new Boolean JavaDoc(IsSummary));
52 }
53 public boolean isSummary()
54 {
55 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsSummary");
56 if (bb != null) return bb.booleanValue();
57 return false;
58 }
59 public void setName (String JavaDoc Name)
60 {
61 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
62 setValue ("Name", Name);
63 }
64 public String JavaDoc getName()
65 {
66 return (String JavaDoc)getValue("Name");
67 }
68 public void setValue (String JavaDoc Value)
69 {
70 if (Value == null) throw new IllegalArgumentException JavaDoc ("Value is mandatory");
71 setValue ("Value", Value);
72 }
73 public String JavaDoc getValue()
74 {
75 return (String JavaDoc)getValue("Value");
76 }
77 }
78
Popular Tags