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_C_OrgAssignment extends PO 11 { 12 13 public X_C_OrgAssignment (Properties ctx, int C_OrgAssignment_ID) 14 { 15 super (ctx, C_OrgAssignment_ID); 16 24 } 25 26 public X_C_OrgAssignment (Properties ctx, ResultSet rs) 27 { 28 super (ctx, rs); 29 } 30 31 protected POInfo initPO (Properties ctx) 32 { 33 int AD_Table_ID = 585; 34 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 35 return poi; 36 } 37 public String toString() 38 { 39 StringBuffer sb = new StringBuffer ("X_C_OrgAssignment[").append(getID()).append("]"); 40 return sb.toString(); 41 } 42 public void setAD_User_ID (int AD_User_ID) 43 { 44 setValue ("AD_User_ID", new Integer (AD_User_ID)); 45 } 46 public int getAD_User_ID() 47 { 48 Integer ii = (Integer )getValue("AD_User_ID"); 49 if (ii == null) return 0; 50 return ii.intValue(); 51 } 52 void setC_OrgAssignment_ID (int C_OrgAssignment_ID) 53 { 54 setValueNoCheck ("C_OrgAssignment_ID", new Integer (C_OrgAssignment_ID)); 55 } 56 public int getC_OrgAssignment_ID() 57 { 58 Integer ii = (Integer )getValue("C_OrgAssignment_ID"); 59 if (ii == null) return 0; 60 return ii.intValue(); 61 } 62 public void setValidFrom (Timestamp ValidFrom) 63 { 64 if (ValidFrom == null) throw new IllegalArgumentException ("ValidFrom is mandatory"); 65 setValue ("ValidFrom", ValidFrom); 66 } 67 public Timestamp getValidFrom() 68 { 69 return (Timestamp)getValue("ValidFrom"); 70 } 71 public void setValidTo (Timestamp ValidTo) 72 { 73 if (ValidTo == null) throw new IllegalArgumentException ("ValidTo is mandatory"); 74 setValue ("ValidTo", ValidTo); 75 } 76 public Timestamp getValidTo() 77 { 78 return (Timestamp)getValue("ValidTo"); 79 } 80 } 81 | Popular Tags |