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_ResourceAssignment extends PO 11 { 12 13 public X_S_ResourceAssignment (Properties ctx, int S_ResourceAssignment_ID) 14 { 15 super (ctx, S_ResourceAssignment_ID); 16 25 } 26 27 public X_S_ResourceAssignment (Properties ctx, ResultSet rs) 28 { 29 super (ctx, rs); 30 } 31 32 protected POInfo initPO (Properties ctx) 33 { 34 int AD_Table_ID = 485; 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_ResourceAssignment[").append(getID()).append("]"); 41 return sb.toString(); 42 } 43 void setAssignDateFrom (Timestamp AssignDateFrom) 44 { 45 if (AssignDateFrom == null) throw new IllegalArgumentException ("AssignDateFrom is mandatory"); 46 setValueNoCheck ("AssignDateFrom", AssignDateFrom); 47 } 48 public Timestamp getAssignDateFrom() 49 { 50 return (Timestamp)getValue("AssignDateFrom"); 51 } 52 void setAssignDateTo (Timestamp AssignDateTo) 53 { 54 setValueNoCheck ("AssignDateTo", AssignDateTo); 55 } 56 public Timestamp getAssignDateTo() 57 { 58 return (Timestamp)getValue("AssignDateTo"); 59 } 60 public void setDescription (String Description) 61 { 62 setValue ("Description", Description); 63 } 64 public String getDescription() 65 { 66 return (String )getValue("Description"); 67 } 68 void setIsConfirmed (boolean IsConfirmed) 69 { 70 setValueNoCheck ("IsConfirmed", new Boolean (IsConfirmed)); 71 } 72 public boolean isConfirmed() 73 { 74 Boolean bb = (Boolean )getValue("IsConfirmed"); 75 if (bb != null) return bb.booleanValue(); 76 return false; 77 } 78 public void setName (String Name) 79 { 80 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 81 setValue ("Name", Name); 82 } 83 public String getName() 84 { 85 return (String )getValue("Name"); 86 } 87 void setQty (BigDecimal Qty) 88 { 89 setValueNoCheck ("Qty", Qty); 90 } 91 public BigDecimal getQty() 92 { 93 BigDecimal bd = (BigDecimal)getValue("Qty"); 94 if (bd == null) return Env.ZERO; 95 return bd; 96 } 97 void setS_ResourceAssignment_ID (int S_ResourceAssignment_ID) 98 { 99 setValueNoCheck ("S_ResourceAssignment_ID", new Integer (S_ResourceAssignment_ID)); 100 } 101 public int getS_ResourceAssignment_ID() 102 { 103 Integer ii = (Integer )getValue("S_ResourceAssignment_ID"); 104 if (ii == null) return 0; 105 return ii.intValue(); 106 } 107 void setS_Resource_ID (int S_Resource_ID) 108 { 109 setValueNoCheck ("S_Resource_ID", new Integer (S_Resource_ID)); 110 } 111 public int getS_Resource_ID() 112 { 113 Integer ii = (Integer )getValue("S_Resource_ID"); 114 if (ii == null) return 0; 115 return ii.intValue(); 116 } 117 } 118 | Popular Tags |