KickJava   Java API By Example, From Geeks To Geeks.

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


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

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

23 }
24 /** Load Constructor **/
25 public X_M_Substitute (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 = 213;
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_Substitute[").append(getID()).append("]");
39 return sb.toString();
40 }
41 void setM_Product_ID (int M_Product_ID)
42 {
43 setValueNoCheck ("M_Product_ID", new Integer JavaDoc(M_Product_ID));
44 }
45 public int getM_Product_ID()
46 {
47 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_Product_ID");
48 if (ii == null) return 0;
49 return ii.intValue();
50 }
51 public void setName (String JavaDoc Name)
52 {
53 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
54 setValue ("Name", Name);
55 }
56 public String JavaDoc getName()
57 {
58 return (String JavaDoc)getValue("Name");
59 }
60 void setSubstitute_ID (int Substitute_ID)
61 {
62 setValueNoCheck ("Substitute_ID", new Integer JavaDoc(Substitute_ID));
63 }
64 public int getSubstitute_ID()
65 {
66 Integer JavaDoc ii = (Integer JavaDoc)getValue("Substitute_ID");
67 if (ii == null) return 0;
68 return ii.intValue();
69 }
70 }
71
Popular Tags