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 extends PO 11 { 12 13 public X_AD_PInstance (Properties ctx, int AD_PInstance_ID) 14 { 15 super (ctx, AD_PInstance_ID); 16 24 } 25 26 public X_AD_PInstance (Properties ctx, ResultSet rs) 27 { 28 super (ctx, rs); 29 } 30 31 protected POInfo initPO (Properties ctx) 32 { 33 int AD_Table_ID = 282; 34 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 35 return poi; 36 } 37 public String toString() 38 { 39 StringBuffer sb = new StringBuffer ("X_AD_PInstance[").append(getID()).append("]"); 40 return sb.toString(); 41 } 42 void setAD_PInstance_ID (int AD_PInstance_ID) 43 { 44 setValueNoCheck ("AD_PInstance_ID", new Integer (AD_PInstance_ID)); 45 } 46 public int getAD_PInstance_ID() 47 { 48 Integer ii = (Integer )getValue("AD_PInstance_ID"); 49 if (ii == null) return 0; 50 return ii.intValue(); 51 } 52 public void setAD_Process_ID (int AD_Process_ID) 53 { 54 setValue ("AD_Process_ID", new Integer (AD_Process_ID)); 55 } 56 public int getAD_Process_ID() 57 { 58 Integer ii = (Integer )getValue("AD_Process_ID"); 59 if (ii == null) return 0; 60 return ii.intValue(); 61 } 62 public void setAD_User_ID (int AD_User_ID) 63 { 64 if (AD_User_ID == 0) setValue ("AD_User_ID", null); 65 else 66 setValue ("AD_User_ID", new Integer (AD_User_ID)); 67 } 68 public int getAD_User_ID() 69 { 70 Integer ii = (Integer )getValue("AD_User_ID"); 71 if (ii == null) return 0; 72 return ii.intValue(); 73 } 74 public void setErrorMsg (String ErrorMsg) 75 { 76 setValue ("ErrorMsg", ErrorMsg); 77 } 78 public String getErrorMsg() 79 { 80 return (String )getValue("ErrorMsg"); 81 } 82 public void setIsProcessing (boolean IsProcessing) 83 { 84 setValue ("IsProcessing", new Boolean (IsProcessing)); 85 } 86 public boolean isProcessing() 87 { 88 Boolean bb = (Boolean )getValue("IsProcessing"); 89 if (bb != null) return bb.booleanValue(); 90 return false; 91 } 92 public void setRecord_ID (int Record_ID) 93 { 94 setValue ("Record_ID", new Integer (Record_ID)); 95 } 96 public int getRecord_ID() 97 { 98 Integer ii = (Integer )getValue("Record_ID"); 99 if (ii == null) return 0; 100 return ii.intValue(); 101 } 102 public void setResult (int Result) 103 { 104 setValue ("Result", new Integer (Result)); 105 } 106 public int getResult() 107 { 108 Integer ii = (Integer )getValue("Result"); 109 if (ii == null) return 0; 110 return ii.intValue(); 111 } 112 } 113
| Popular Tags
|