KickJava   Java API By Example, From Geeks To Geeks.

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


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_FreightCategory
9  ** @version $Id: X_M_FreightCategory.java,v 1.26 2003/10/31 05:30:52 jjanke Exp $ **/

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

23 }
24 /** Load Constructor **/
25 public X_M_FreightCategory (Properties ctx, ResultSet rs)
26 {
27 super (ctx, rs);
28 }
29 /** Load Meta Data **/
30 protected POInfo initPO (Properties ctx)
31 {
32 int AD_Table_ID = 595;
33 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
34 return poi;
35 }
36 public String JavaDoc toString()
37 {
38 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_M_FreightCategory[").append(getID()).append("]");
39 return sb.toString();
40 }
41 public void setDescription (String JavaDoc Description)
42 {
43 setValue ("Description", Description);
44 }
45 public String JavaDoc getDescription()
46 {
47 return (String JavaDoc)getValue("Description");
48 }
49 public void setHelp (String JavaDoc Help)
50 {
51 setValue ("Help", Help);
52 }
53 public String JavaDoc getHelp()
54 {
55 return (String JavaDoc)getValue("Help");
56 }
57 void setM_FreightCategory_ID (int M_FreightCategory_ID)
58 {
59 setValueNoCheck ("M_FreightCategory_ID", new Integer JavaDoc(M_FreightCategory_ID));
60 }
61 public int getM_FreightCategory_ID()
62 {
63 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_FreightCategory_ID");
64 if (ii == null) return 0;
65 return ii.intValue();
66 }
67 public void setName (String JavaDoc Name)
68 {
69 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
70 setValue ("Name", Name);
71 }
72 public String JavaDoc getName()
73 {
74 return (String JavaDoc)getValue("Name");
75 }
76 public void setValue (String JavaDoc Value)
77 {
78 if (Value == null) throw new IllegalArgumentException JavaDoc ("Value is mandatory");
79 setValue ("Value", Value);
80 }
81 public String JavaDoc getValue()
82 {
83 return (String JavaDoc)getValue("Value");
84 }
85 }
86
Popular Tags