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_M_Shipper extends PO 11 { 12 13 public X_M_Shipper (Properties ctx, int M_Shipper_ID) 14 { 15 super (ctx, M_Shipper_ID); 16 22 } 23 24 public X_M_Shipper (Properties ctx, ResultSet rs) 25 { 26 super (ctx, rs); 27 } 28 29 protected POInfo initPO (Properties ctx) 30 { 31 int AD_Table_ID = 253; 32 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 33 return poi; 34 } 35 public String toString() 36 { 37 StringBuffer sb = new StringBuffer ("X_M_Shipper[").append(getID()).append("]"); 38 return sb.toString(); 39 } 40 public void setC_BPartner_ID (int C_BPartner_ID) 41 { 42 if (C_BPartner_ID == 0) setValue ("C_BPartner_ID", null); 43 else 44 setValue ("C_BPartner_ID", new Integer (C_BPartner_ID)); 45 } 46 public int getC_BPartner_ID() 47 { 48 Integer ii = (Integer )getValue("C_BPartner_ID"); 49 if (ii == null) return 0; 50 return ii.intValue(); 51 } 52 public void setDescription (String Description) 53 { 54 setValue ("Description", Description); 55 } 56 public String getDescription() 57 { 58 return (String )getValue("Description"); 59 } 60 void setM_Shipper_ID (int M_Shipper_ID) 61 { 62 setValueNoCheck ("M_Shipper_ID", new Integer (M_Shipper_ID)); 63 } 64 public int getM_Shipper_ID() 65 { 66 Integer ii = (Integer )getValue("M_Shipper_ID"); 67 if (ii == null) return 0; 68 return ii.intValue(); 69 } 70 public void setName (String Name) 71 { 72 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 73 setValue ("Name", Name); 74 } 75 public String getName() 76 { 77 return (String )getValue("Name"); 78 } 79 public void setTrackingURL (String TrackingURL) 80 { 81 setValue ("TrackingURL", TrackingURL); 82 } 83 public String getTrackingURL() 84 { 85 return (String )getValue("TrackingURL"); 86 } 87 } 88 | Popular Tags |