KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_C_CycleStep extends PO
11 {
12 /** Standard Constructor **/
13 public X_C_CycleStep (Properties ctx, int C_CycleStep_ID)
14 {
15 super (ctx, C_CycleStep_ID);
16 /** if (C_CycleStep_ID == 0)
17 {
18 setC_CycleStep_ID (0);
19 setC_Cycle_ID (0);
20 setName (null);
21 setRelativeWeight (Env.ZERO);
22 setSeqNo (0);
23 }
24  **/

25 }
26 /** Load Constructor **/
27 public X_C_CycleStep (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 = 590;
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_C_CycleStep[").append(getID()).append("]");
41 return sb.toString();
42 }
43 void setC_CycleStep_ID (int C_CycleStep_ID)
44 {
45 setValueNoCheck ("C_CycleStep_ID", new Integer JavaDoc(C_CycleStep_ID));
46 }
47 public int getC_CycleStep_ID()
48 {
49 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_CycleStep_ID");
50 if (ii == null) return 0;
51 return ii.intValue();
52 }
53 void setC_Cycle_ID (int C_Cycle_ID)
54 {
55 setValueNoCheck ("C_Cycle_ID", new Integer JavaDoc(C_Cycle_ID));
56 }
57 public int getC_Cycle_ID()
58 {
59 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Cycle_ID");
60 if (ii == null) return 0;
61 return ii.intValue();
62 }
63 public void setName (String JavaDoc Name)
64 {
65 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
66 setValue ("Name", Name);
67 }
68 public String JavaDoc getName()
69 {
70 return (String JavaDoc)getValue("Name");
71 }
72 public void setRelativeWeight (BigDecimal RelativeWeight)
73 {
74 if (RelativeWeight == null) throw new IllegalArgumentException JavaDoc ("RelativeWeight is mandatory");
75 setValue ("RelativeWeight", RelativeWeight);
76 }
77 public BigDecimal getRelativeWeight()
78 {
79 BigDecimal bd = (BigDecimal)getValue("RelativeWeight");
80 if (bd == null) return Env.ZERO;
81 return bd;
82 }
83 public void setSeqNo (int SeqNo)
84 {
85 setValue ("SeqNo", new Integer JavaDoc(SeqNo));
86 }
87 public int getSeqNo()
88 {
89 Integer JavaDoc ii = (Integer JavaDoc)getValue("SeqNo");
90 if (ii == null) return 0;
91 return ii.intValue();
92 }
93 }
94
Popular Tags