KickJava   Java API By Example, From Geeks To Geeks.

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


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

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

23 }
24 /** Load Constructor **/
25 public X_M_Lot (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 = 557;
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_M_Lot[").append(getID()).append("]");
39 return sb.toString();
40 }
41 public void setDateFrom (Timestamp DateFrom)
42 {
43 setValue ("DateFrom", DateFrom);
44 }
45 public Timestamp getDateFrom()
46 {
47 return (Timestamp)getValue("DateFrom");
48 }
49 public void setDateTo (Timestamp DateTo)
50 {
51 setValue ("DateTo", DateTo);
52 }
53 public Timestamp getDateTo()
54 {
55 return (Timestamp)getValue("DateTo");
56 }
57 public void setDescription (String JavaDoc Description)
58 {
59 setValue ("Description", Description);
60 }
61 public String JavaDoc getDescription()
62 {
63 return (String JavaDoc)getValue("Description");
64 }
65 public void setHelp (String JavaDoc Help)
66 {
67 setValue ("Help", Help);
68 }
69 public String JavaDoc getHelp()
70 {
71 return (String JavaDoc)getValue("Help");
72 }
73 void setM_LotCtl_ID (int M_LotCtl_ID)
74 {
75 if (M_LotCtl_ID == 0) setValueNoCheck ("M_LotCtl_ID", null);
76  else
77 setValueNoCheck ("M_LotCtl_ID", new Integer JavaDoc(M_LotCtl_ID));
78 }
79 public int getM_LotCtl_ID()
80 {
81 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_LotCtl_ID");
82 if (ii == null) return 0;
83 return ii.intValue();
84 }
85 void setM_Lot_ID (int M_Lot_ID)
86 {
87 setValueNoCheck ("M_Lot_ID", new Integer JavaDoc(M_Lot_ID));
88 }
89 public int getM_Lot_ID()
90 {
91 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_Lot_ID");
92 if (ii == null) return 0;
93 return ii.intValue();
94 }
95 void setM_Product_ID (int M_Product_ID)
96 {
97 setValueNoCheck ("M_Product_ID", new Integer JavaDoc(M_Product_ID));
98 }
99 public int getM_Product_ID()
100 {
101 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_Product_ID");
102 if (ii == null) return 0;
103 return ii.intValue();
104 }
105 public void setName (String JavaDoc Name)
106 {
107 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
108 setValue ("Name", Name);
109 }
110 public String JavaDoc getName()
111 {
112 return (String JavaDoc)getValue("Name");
113 }
114 }
115
Popular Tags