KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_M_LotCtl extends PO
11 {
12 /** Standard Constructor **/
13 public X_M_LotCtl (Properties ctx, int M_LotCtl_ID)
14 {
15 super (ctx, M_LotCtl_ID);
16 /** if (M_LotCtl_ID == 0)
17 {
18 setCurrentNext (0);
19 setIncrementNo (0);
20 setM_LotCtl_ID (0);
21 setName (null);
22 setStartNo (0);
23 }
24  **/

25 }
26 /** Load Constructor **/
27 public X_M_LotCtl (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 = 556;
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_LotCtl[").append(getID()).append("]");
41 return sb.toString();
42 }
43 public void setCurrentNext (int CurrentNext)
44 {
45 setValue ("CurrentNext", new Integer JavaDoc(CurrentNext));
46 }
47 public int getCurrentNext()
48 {
49 Integer JavaDoc ii = (Integer JavaDoc)getValue("CurrentNext");
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 public void setIncrementNo (int IncrementNo)
62 {
63 setValue ("IncrementNo", new Integer JavaDoc(IncrementNo));
64 }
65 public int getIncrementNo()
66 {
67 Integer JavaDoc ii = (Integer JavaDoc)getValue("IncrementNo");
68 if (ii == null) return 0;
69 return ii.intValue();
70 }
71 void setM_LotCtl_ID (int M_LotCtl_ID)
72 {
73 setValueNoCheck ("M_LotCtl_ID", new Integer JavaDoc(M_LotCtl_ID));
74 }
75 public int getM_LotCtl_ID()
76 {
77 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_LotCtl_ID");
78 if (ii == null) return 0;
79 return ii.intValue();
80 }
81 public void setName (String JavaDoc Name)
82 {
83 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
84 setValue ("Name", Name);
85 }
86 public String JavaDoc getName()
87 {
88 return (String JavaDoc)getValue("Name");
89 }
90 public void setPrefix (String JavaDoc Prefix)
91 {
92 setValue ("Prefix", Prefix);
93 }
94 public String JavaDoc getPrefix()
95 {
96 return (String JavaDoc)getValue("Prefix");
97 }
98 public void setStartNo (int StartNo)
99 {
100 setValue ("StartNo", new Integer JavaDoc(StartNo));
101 }
102 public int getStartNo()
103 {
104 Integer JavaDoc ii = (Integer JavaDoc)getValue("StartNo");
105 if (ii == null) return 0;
106 return ii.intValue();
107 }
108 public void setSuffix (String JavaDoc Suffix)
109 {
110 setValue ("Suffix", Suffix);
111 }
112 public String JavaDoc getSuffix()
113 {
114 return (String JavaDoc)getValue("Suffix");
115 }
116 }
117
Popular Tags