KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_S_Training_Class extends PO
11 {
12 /** Standard Constructor **/
13 public X_S_Training_Class (Properties ctx, int S_Training_Class_ID)
14 {
15 super (ctx, S_Training_Class_ID);
16 /** if (S_Training_Class_ID == 0)
17 {
18 setEndDate (new Timestamp(System.currentTimeMillis()));
19 setM_Product_ID (0);
20 setS_Training_Class_ID (0);
21 setS_Training_ID (0);
22 setStartDate (new Timestamp(System.currentTimeMillis()));
23 }
24  **/

25 }
26 /** Load Constructor **/
27 public X_S_Training_Class (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 = 537;
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_S_Training_Class[").append(getID()).append("]");
41 return sb.toString();
42 }
43 public void setEndDate (Timestamp EndDate)
44 {
45 if (EndDate == null) throw new IllegalArgumentException JavaDoc ("EndDate is mandatory");
46 setValue ("EndDate", EndDate);
47 }
48 public Timestamp getEndDate()
49 {
50 return (Timestamp)getValue("EndDate");
51 }
52 void setM_Product_ID (int M_Product_ID)
53 {
54 setValueNoCheck ("M_Product_ID", new Integer JavaDoc(M_Product_ID));
55 }
56 public int getM_Product_ID()
57 {
58 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_Product_ID");
59 if (ii == null) return 0;
60 return ii.intValue();
61 }
62 void setS_Training_Class_ID (int S_Training_Class_ID)
63 {
64 setValueNoCheck ("S_Training_Class_ID", new Integer JavaDoc(S_Training_Class_ID));
65 }
66 public int getS_Training_Class_ID()
67 {
68 Integer JavaDoc ii = (Integer JavaDoc)getValue("S_Training_Class_ID");
69 if (ii == null) return 0;
70 return ii.intValue();
71 }
72 void setS_Training_ID (int S_Training_ID)
73 {
74 setValueNoCheck ("S_Training_ID", new Integer JavaDoc(S_Training_ID));
75 }
76 public int getS_Training_ID()
77 {
78 Integer JavaDoc ii = (Integer JavaDoc)getValue("S_Training_ID");
79 if (ii == null) return 0;
80 return ii.intValue();
81 }
82 public void setStartDate (Timestamp StartDate)
83 {
84 if (StartDate == null) throw new IllegalArgumentException JavaDoc ("StartDate is mandatory");
85 setValue ("StartDate", StartDate);
86 }
87 public Timestamp getStartDate()
88 {
89 return (Timestamp)getValue("StartDate");
90 }
91 }
92
Popular Tags