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_AD_PInstance_Log extends PO 11 { 12 13 public X_AD_PInstance_Log (Properties ctx, int AD_PInstance_Log_ID) 14 { 15 super (ctx, AD_PInstance_Log_ID); 16 22 } 23 24 public X_AD_PInstance_Log (Properties ctx, ResultSet rs) 25 { 26 super (ctx, rs); 27 } 28 29 protected POInfo initPO (Properties ctx) 30 { 31 int AD_Table_ID = 578; 32 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 33 return poi; 34 } 35 public String toString() 36 { 37 StringBuffer sb = new StringBuffer ("X_AD_PInstance_Log[").append(getID()).append("]"); 38 return sb.toString(); 39 } 40 void setAD_PInstance_ID (int AD_PInstance_ID) 41 { 42 setValueNoCheck ("AD_PInstance_ID", new Integer (AD_PInstance_ID)); 43 } 44 public int getAD_PInstance_ID() 45 { 46 Integer ii = (Integer )getValue("AD_PInstance_ID"); 47 if (ii == null) return 0; 48 return ii.intValue(); 49 } 50 void setLog_ID (int Log_ID) 51 { 52 setValueNoCheck ("Log_ID", new Integer (Log_ID)); 53 } 54 public int getLog_ID() 55 { 56 Integer ii = (Integer )getValue("Log_ID"); 57 if (ii == null) return 0; 58 return ii.intValue(); 59 } 60 void setP_Date (Timestamp P_Date) 61 { 62 setValueNoCheck ("P_Date", P_Date); 63 } 64 public Timestamp getP_Date() 65 { 66 return (Timestamp)getValue("P_Date"); 67 } 68 void setP_ID (int P_ID) 69 { 70 if (P_ID == 0) setValueNoCheck ("P_ID", null); 71 else 72 setValueNoCheck ("P_ID", new Integer (P_ID)); 73 } 74 public int getP_ID() 75 { 76 Integer ii = (Integer )getValue("P_ID"); 77 if (ii == null) return 0; 78 return ii.intValue(); 79 } 80 void setP_Msg (String P_Msg) 81 { 82 setValueNoCheck ("P_Msg", P_Msg); 83 } 84 public String getP_Msg() 85 { 86 return (String )getValue("P_Msg"); 87 } 88 void setP_Number (BigDecimal P_Number) 89 { 90 setValueNoCheck ("P_Number", P_Number); 91 } 92 public BigDecimal getP_Number() 93 { 94 BigDecimal bd = (BigDecimal)getValue("P_Number"); 95 if (bd == null) return Env.ZERO; 96 return bd; 97 } 98 } 99
| Popular Tags
|