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_Phase extends PO 11 { 12 13 public X_C_Phase (Properties ctx, int C_Phase_ID) 14 { 15 super (ctx, C_Phase_ID); 16 25 } 26 27 public X_C_Phase (Properties ctx, ResultSet rs) 28 { 29 super (ctx, rs); 30 } 31 32 protected POInfo initPO (Properties ctx) 33 { 34 int AD_Table_ID = 577; 35 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 36 return poi; 37 } 38 public String toString() 39 { 40 StringBuffer sb = new StringBuffer ("X_C_Phase[").append(getID()).append("]"); 41 return sb.toString(); 42 } 43 void setC_Phase_ID (int C_Phase_ID) 44 { 45 setValueNoCheck ("C_Phase_ID", new Integer (C_Phase_ID)); 46 } 47 public int getC_Phase_ID() 48 { 49 Integer ii = (Integer )getValue("C_Phase_ID"); 50 if (ii == null) return 0; 51 return ii.intValue(); 52 } 53 void setC_ProjectType_ID (int C_ProjectType_ID) 54 { 55 setValueNoCheck ("C_ProjectType_ID", new Integer (C_ProjectType_ID)); 56 } 57 public int getC_ProjectType_ID() 58 { 59 Integer ii = (Integer )getValue("C_ProjectType_ID"); 60 if (ii == null) return 0; 61 return ii.intValue(); 62 } 63 public void setDescription (String Description) 64 { 65 setValue ("Description", Description); 66 } 67 public String getDescription() 68 { 69 return (String )getValue("Description"); 70 } 71 public void setHelp (String Help) 72 { 73 setValue ("Help", Help); 74 } 75 public String getHelp() 76 { 77 return (String )getValue("Help"); 78 } 79 public void setM_Product_ID (int M_Product_ID) 80 { 81 if (M_Product_ID == 0) setValue ("M_Product_ID", null); 82 else 83 setValue ("M_Product_ID", new Integer (M_Product_ID)); 84 } 85 public int getM_Product_ID() 86 { 87 Integer ii = (Integer )getValue("M_Product_ID"); 88 if (ii == null) return 0; 89 return ii.intValue(); 90 } 91 public void setName (String Name) 92 { 93 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 94 setValue ("Name", Name); 95 } 96 public String getName() 97 { 98 return (String )getValue("Name"); 99 } 100 public void setSeqNo (int SeqNo) 101 { 102 setValue ("SeqNo", new Integer (SeqNo)); 103 } 104 public int getSeqNo() 105 { 106 Integer ii = (Integer )getValue("SeqNo"); 107 if (ii == null) return 0; 108 return ii.intValue(); 109 } 110 public void setStandardQty (BigDecimal StandardQty) 111 { 112 if (StandardQty == null) throw new IllegalArgumentException ("StandardQty is mandatory"); 113 setValue ("StandardQty", StandardQty); 114 } 115 public BigDecimal getStandardQty() 116 { 117 BigDecimal bd = (BigDecimal)getValue("StandardQty"); 118 if (bd == null) return Env.ZERO; 119 return bd; 120 } 121 } 122 | Popular Tags |