KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > compiere > model > X_M_Shipper


1 /** Generated Model - DO NOT CHANGE - Copyright (C) 1999-2003 Jorg Janke **/
2 package org.compiere.model;
3 import java.util.*;
4 import java.sql.*;
5 import java.math.*;
6 import java.io.Serializable JavaDoc;
7 import org.compiere.util.*;
8 /** Generated Model for M_Shipper
9  ** @version $Id: X_M_Shipper.java,v 1.26 2003/10/31 05:30:52 jjanke Exp $ **/

10 public class X_M_Shipper extends PO
11 {
12 /** Standard Constructor **/
13 public X_M_Shipper (Properties ctx, int M_Shipper_ID)
14 {
15 super (ctx, M_Shipper_ID);
16 /** if (M_Shipper_ID == 0)
17 {
18 setM_Shipper_ID (0);
19 setName (null);
20 }
21  **/

22 }
23 /** Load Constructor **/
24 public X_M_Shipper (Properties ctx, ResultSet rs)
25 {
26 super (ctx, rs);
27 }
28 /** Load Meta Data **/
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 JavaDoc toString()
36 {
37 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("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 JavaDoc(C_BPartner_ID));
45 }
46 public int getC_BPartner_ID()
47 {
48 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_BPartner_ID");
49 if (ii == null) return 0;
50 return ii.intValue();
51 }
52 public void setDescription (String JavaDoc Description)
53 {
54 setValue ("Description", Description);
55 }
56 public String JavaDoc getDescription()
57 {
58 return (String JavaDoc)getValue("Description");
59 }
60 void setM_Shipper_ID (int M_Shipper_ID)
61 {
62 setValueNoCheck ("M_Shipper_ID", new Integer JavaDoc(M_Shipper_ID));
63 }
64 public int getM_Shipper_ID()
65 {
66 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_Shipper_ID");
67 if (ii == null) return 0;
68 return ii.intValue();
69 }
70 public void setName (String JavaDoc Name)
71 {
72 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
73 setValue ("Name", Name);
74 }
75 public String JavaDoc getName()
76 {
77 return (String JavaDoc)getValue("Name");
78 }
79 public void setTrackingURL (String JavaDoc TrackingURL)
80 {
81 setValue ("TrackingURL", TrackingURL);
82 }
83 public String JavaDoc getTrackingURL()
84 {
85 return (String JavaDoc)getValue("TrackingURL");
86 }
87 }
88
Popular Tags