KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_C_UOM extends PO
11 {
12 /** Standard Constructor **/
13 public X_C_UOM (Properties ctx, int C_UOM_ID)
14 {
15 super (ctx, C_UOM_ID);
16 /** if (C_UOM_ID == 0)
17 {
18 setC_UOM_ID (0);
19 setCostingPrecision (0);
20 setIsDefault (false);
21 setName (null);
22 setStdPrecision (0);
23 setX12DE355 (null);
24 }
25  **/

26 }
27 /** Load Constructor **/
28 public X_C_UOM (Properties ctx, ResultSet rs)
29 {
30 super (ctx, rs);
31 }
32 /** Load Meta Data **/
33 protected POInfo initPO (Properties ctx)
34 {
35 int AD_Table_ID = 146;
36 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
37 return poi;
38 }
39 public String JavaDoc toString()
40 {
41 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_C_UOM[").append(getID()).append("]");
42 return sb.toString();
43 }
44 void setC_UOM_ID (int C_UOM_ID)
45 {
46 setValueNoCheck ("C_UOM_ID", new Integer JavaDoc(C_UOM_ID));
47 }
48 public int getC_UOM_ID()
49 {
50 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_UOM_ID");
51 if (ii == null) return 0;
52 return ii.intValue();
53 }
54 public void setCostingPrecision (int CostingPrecision)
55 {
56 setValue ("CostingPrecision", new Integer JavaDoc(CostingPrecision));
57 }
58 public int getCostingPrecision()
59 {
60 Integer JavaDoc ii = (Integer JavaDoc)getValue("CostingPrecision");
61 if (ii == null) return 0;
62 return ii.intValue();
63 }
64 public void setDescription (String JavaDoc Description)
65 {
66 setValue ("Description", Description);
67 }
68 public String JavaDoc getDescription()
69 {
70 return (String JavaDoc)getValue("Description");
71 }
72 public void setIsDefault (boolean IsDefault)
73 {
74 setValue ("IsDefault", new Boolean JavaDoc(IsDefault));
75 }
76 public boolean isDefault()
77 {
78 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsDefault");
79 if (bb != null) return bb.booleanValue();
80 return false;
81 }
82 public void setName (String JavaDoc Name)
83 {
84 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
85 setValue ("Name", Name);
86 }
87 public String JavaDoc getName()
88 {
89 return (String JavaDoc)getValue("Name");
90 }
91 public void setStdPrecision (int StdPrecision)
92 {
93 setValue ("StdPrecision", new Integer JavaDoc(StdPrecision));
94 }
95 public int getStdPrecision()
96 {
97 Integer JavaDoc ii = (Integer JavaDoc)getValue("StdPrecision");
98 if (ii == null) return 0;
99 return ii.intValue();
100 }
101 public void setUOMSymbol (String JavaDoc UOMSymbol)
102 {
103 setValue ("UOMSymbol", UOMSymbol);
104 }
105 public String JavaDoc getUOMSymbol()
106 {
107 return (String JavaDoc)getValue("UOMSymbol");
108 }
109 public void setX12DE355 (String JavaDoc X12DE355)
110 {
111 if (X12DE355 == null) throw new IllegalArgumentException JavaDoc ("X12DE355 is mandatory");
112 setValue ("X12DE355", X12DE355);
113 }
114 public String JavaDoc getX12DE355()
115 {
116 return (String JavaDoc)getValue("X12DE355");
117 }
118 }
119
Popular Tags