KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_M_Locator extends PO
11 {
12 /** Standard Constructor **/
13 public X_M_Locator (Properties ctx, int M_Locator_ID)
14 {
15 super (ctx, M_Locator_ID);
16 /** if (M_Locator_ID == 0)
17 {
18 setIsDefault (false);
19 setM_Locator_ID (0);
20 setM_Warehouse_ID (0);
21 setPriorityNo (0);
22 setValue (null);
23 setX (null);
24 setY (null);
25 setZ (null);
26 }
27  **/

28 }
29 /** Load Constructor **/
30 public X_M_Locator (Properties ctx, ResultSet rs)
31 {
32 super (ctx, rs);
33 }
34 /** Load Meta Data **/
35 protected POInfo initPO (Properties ctx)
36 {
37 int AD_Table_ID = 207;
38 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
39 return poi;
40 }
41 public String JavaDoc toString()
42 {
43 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_M_Locator[").append(getID()).append("]");
44 return sb.toString();
45 }
46 public void setIsDefault (boolean IsDefault)
47 {
48 setValue ("IsDefault", new Boolean JavaDoc(IsDefault));
49 }
50 public boolean isDefault()
51 {
52 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsDefault");
53 if (bb != null) return bb.booleanValue();
54 return false;
55 }
56 void setM_Locator_ID (int M_Locator_ID)
57 {
58 setValueNoCheck ("M_Locator_ID", new Integer JavaDoc(M_Locator_ID));
59 }
60 public int getM_Locator_ID()
61 {
62 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_Locator_ID");
63 if (ii == null) return 0;
64 return ii.intValue();
65 }
66 void setM_Warehouse_ID (int M_Warehouse_ID)
67 {
68 setValueNoCheck ("M_Warehouse_ID", new Integer JavaDoc(M_Warehouse_ID));
69 }
70 public int getM_Warehouse_ID()
71 {
72 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_Warehouse_ID");
73 if (ii == null) return 0;
74 return ii.intValue();
75 }
76 public void setPriorityNo (int PriorityNo)
77 {
78 setValue ("PriorityNo", new Integer JavaDoc(PriorityNo));
79 }
80 public int getPriorityNo()
81 {
82 Integer JavaDoc ii = (Integer JavaDoc)getValue("PriorityNo");
83 if (ii == null) return 0;
84 return ii.intValue();
85 }
86 public void setValue (String JavaDoc Value)
87 {
88 if (Value == null) throw new IllegalArgumentException JavaDoc ("Value is mandatory");
89 setValue ("Value", Value);
90 }
91 public String JavaDoc getValue()
92 {
93 return (String JavaDoc)getValue("Value");
94 }
95 public void setX (String JavaDoc X)
96 {
97 if (X == null) throw new IllegalArgumentException JavaDoc ("X is mandatory");
98 setValue ("X", X);
99 }
100 public String JavaDoc getX()
101 {
102 return (String JavaDoc)getValue("X");
103 }
104 public void setY (String JavaDoc Y)
105 {
106 if (Y == null) throw new IllegalArgumentException JavaDoc ("Y is mandatory");
107 setValue ("Y", Y);
108 }
109 public String JavaDoc getY()
110 {
111 return (String JavaDoc)getValue("Y");
112 }
113 public void setZ (String JavaDoc Z)
114 {
115 if (Z == null) throw new IllegalArgumentException JavaDoc ("Z is mandatory");
116 setValue ("Z", Z);
117 }
118 public String JavaDoc getZ()
119 {
120 return (String JavaDoc)getValue("Z");
121 }
122 }
123
Popular Tags