1 2 package org.compiere.model; 3 import java.util.*; 4 import java.sql.*; 5 import java.math.*; 6 import java.io.Serializable ; 7 import org.compiere.util.*; 8 10 public class X_S_Training_Class extends PO 11 { 12 13 public X_S_Training_Class (Properties ctx, int S_Training_Class_ID) 14 { 15 super (ctx, S_Training_Class_ID); 16 25 } 26 27 public X_S_Training_Class (Properties ctx, ResultSet rs) 28 { 29 super (ctx, rs); 30 } 31 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 toString() 39 { 40 StringBuffer sb = new StringBuffer ("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 ("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 (M_Product_ID)); 55 } 56 public int getM_Product_ID() 57 { 58 Integer ii = (Integer )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 (S_Training_Class_ID)); 65 } 66 public int getS_Training_Class_ID() 67 { 68 Integer ii = (Integer )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 (S_Training_ID)); 75 } 76 public int getS_Training_ID() 77 { 78 Integer ii = (Integer )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 ("StartDate is mandatory"); 85 setValue ("StartDate", StartDate); 86 } 87 public Timestamp getStartDate() 88 { 89 return (Timestamp)getValue("StartDate"); 90 } 91 } 92
| Popular Tags
|