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_ResourceUnAvailable extends PO 11 { 12 13 public X_S_ResourceUnAvailable (Properties ctx, int S_ResourceUnAvailable_ID) 14 { 15 super (ctx, S_ResourceUnAvailable_ID); 16 23 } 24 25 public X_S_ResourceUnAvailable (Properties ctx, ResultSet rs) 26 { 27 super (ctx, rs); 28 } 29 30 protected POInfo initPO (Properties ctx) 31 { 32 int AD_Table_ID = 482; 33 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 34 return poi; 35 } 36 public String toString() 37 { 38 StringBuffer sb = new StringBuffer ("X_S_ResourceUnAvailable[").append(getID()).append("]"); 39 return sb.toString(); 40 } 41 public void setDateFrom (Timestamp DateFrom) 42 { 43 if (DateFrom == null) throw new IllegalArgumentException ("DateFrom is mandatory"); 44 setValue ("DateFrom", DateFrom); 45 } 46 public Timestamp getDateFrom() 47 { 48 return (Timestamp)getValue("DateFrom"); 49 } 50 public void setDateTo (Timestamp DateTo) 51 { 52 setValue ("DateTo", DateTo); 53 } 54 public Timestamp getDateTo() 55 { 56 return (Timestamp)getValue("DateTo"); 57 } 58 public void setDescription (String Description) 59 { 60 setValue ("Description", Description); 61 } 62 public String getDescription() 63 { 64 return (String )getValue("Description"); 65 } 66 void setS_ResourceUnAvailable_ID (int S_ResourceUnAvailable_ID) 67 { 68 setValueNoCheck ("S_ResourceUnAvailable_ID", new Integer (S_ResourceUnAvailable_ID)); 69 } 70 public int getS_ResourceUnAvailable_ID() 71 { 72 Integer ii = (Integer )getValue("S_ResourceUnAvailable_ID"); 73 if (ii == null) return 0; 74 return ii.intValue(); 75 } 76 void setS_Resource_ID (int S_Resource_ID) 77 { 78 setValueNoCheck ("S_Resource_ID", new Integer (S_Resource_ID)); 79 } 80 public int getS_Resource_ID() 81 { 82 Integer ii = (Integer )getValue("S_Resource_ID"); 83 if (ii == null) return 0; 84 return ii.intValue(); 85 } 86 } 87
| Popular Tags
|