KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_M_Warehouse extends PO
11 {
12 /** Standard Constructor **/
13 public X_M_Warehouse (Properties ctx, int M_Warehouse_ID)
14 {
15 super (ctx, M_Warehouse_ID);
16 /** if (M_Warehouse_ID == 0)
17 {
18 setC_Location_ID (0);
19 setM_Warehouse_ID (0);
20 setName (null);
21 setSeparator (null);
22 setValue (null);
23 }
24  **/

25 }
26 /** Load Constructor **/
27 public X_M_Warehouse (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 = 190;
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_M_Warehouse[").append(getID()).append("]");
41 return sb.toString();
42 }
43 public void setC_Location_ID (int C_Location_ID)
44 {
45 setValue ("C_Location_ID", new Integer JavaDoc(C_Location_ID));
46 }
47 public int getC_Location_ID()
48 {
49 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Location_ID");
50 if (ii == null) return 0;
51 return ii.intValue();
52 }
53 public void setDescription (String JavaDoc Description)
54 {
55 setValue ("Description", Description);
56 }
57 public String JavaDoc getDescription()
58 {
59 return (String JavaDoc)getValue("Description");
60 }
61 void setM_Warehouse_ID (int M_Warehouse_ID)
62 {
63 setValueNoCheck ("M_Warehouse_ID", new Integer JavaDoc(M_Warehouse_ID));
64 }
65 public int getM_Warehouse_ID()
66 {
67 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_Warehouse_ID");
68 if (ii == null) return 0;
69 return ii.intValue();
70 }
71 public void setName (String JavaDoc Name)
72 {
73 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
74 setValue ("Name", Name);
75 }
76 public String JavaDoc getName()
77 {
78 return (String JavaDoc)getValue("Name");
79 }
80 public void setSeparator (String JavaDoc Separator)
81 {
82 if (Separator == null) throw new IllegalArgumentException JavaDoc ("Separator is mandatory");
83 setValue ("Separator", Separator);
84 }
85 public String JavaDoc getSeparator()
86 {
87 return (String JavaDoc)getValue("Separator");
88 }
89 public void setValue (String JavaDoc Value)
90 {
91 if (Value == null) throw new IllegalArgumentException JavaDoc ("Value is mandatory");
92 setValue ("Value", Value);
93 }
94 public String JavaDoc getValue()
95 {
96 return (String JavaDoc)getValue("Value");
97 }
98 }
99
Popular Tags