KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_AD_ImpFormat_Row extends PO
11 {
12 /** Standard Constructor **/
13 public X_AD_ImpFormat_Row (Properties ctx, int AD_ImpFormat_Row_ID)
14 {
15 super (ctx, AD_ImpFormat_Row_ID);
16 /** if (AD_ImpFormat_Row_ID == 0)
17 {
18 setAD_Column_ID (0);
19 setAD_ImpFormat_ID (0);
20 setAD_ImpFormat_Row_ID (0);
21 setDataType (null);
22 setDecimalPoint (null);
23 setDivideBy100 (false);
24 setName (null);
25 setSeqNo (0);
26 }
27  **/

28 }
29 /** Load Constructor **/
30 public X_AD_ImpFormat_Row (Properties ctx, ResultSet rs)
31 {
32 super (ctx, rs);
33 }
34 /** Load Meta Data **/
35 protected POInfo initPO (Properties ctx)
36 {
37 int AD_Table_ID = 382;
38 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
39 return poi;
40 }
41 public String JavaDoc toString()
42 {
43 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_AD_ImpFormat_Row[").append(getID()).append("]");
44 return sb.toString();
45 }
46 public void setAD_Column_ID (int AD_Column_ID)
47 {
48 setValue ("AD_Column_ID", new Integer JavaDoc(AD_Column_ID));
49 }
50 public int getAD_Column_ID()
51 {
52 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_Column_ID");
53 if (ii == null) return 0;
54 return ii.intValue();
55 }
56 void setAD_ImpFormat_ID (int AD_ImpFormat_ID)
57 {
58 setValueNoCheck ("AD_ImpFormat_ID", new Integer JavaDoc(AD_ImpFormat_ID));
59 }
60 public int getAD_ImpFormat_ID()
61 {
62 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_ImpFormat_ID");
63 if (ii == null) return 0;
64 return ii.intValue();
65 }
66 void setAD_ImpFormat_Row_ID (int AD_ImpFormat_Row_ID)
67 {
68 setValueNoCheck ("AD_ImpFormat_Row_ID", new Integer JavaDoc(AD_ImpFormat_Row_ID));
69 }
70 public int getAD_ImpFormat_Row_ID()
71 {
72 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_ImpFormat_Row_ID");
73 if (ii == null) return 0;
74 return ii.intValue();
75 }
76 public void setCallout (String JavaDoc Callout)
77 {
78 setValue ("Callout", Callout);
79 }
80 public String JavaDoc getCallout()
81 {
82 return (String JavaDoc)getValue("Callout");
83 }
84 public void setConstantValue (String JavaDoc ConstantValue)
85 {
86 setValue ("ConstantValue", ConstantValue);
87 }
88 public String JavaDoc getConstantValue()
89 {
90 return (String JavaDoc)getValue("ConstantValue");
91 }
92 public void setDataFormat (String JavaDoc DataFormat)
93 {
94 setValue ("DataFormat", DataFormat);
95 }
96 public String JavaDoc getDataFormat()
97 {
98 return (String JavaDoc)getValue("DataFormat");
99 }
100 public static final String JavaDoc DATATYPE_String = "S";
101 public static final String JavaDoc DATATYPE_Number = "N";
102 public static final String JavaDoc DATATYPE_Date = "D";
103 public static final String JavaDoc DATATYPE_Constant = "C";
104 public void setDataType (String JavaDoc DataType)
105 {
106 if (DataType.equals("S") || DataType.equals("N") || DataType.equals("D") || DataType.equals("C"));
107  else throw new IllegalArgumentException JavaDoc ("DataType Invalid value - Reference_ID=210 - S - N - D - C");
108 if (DataType == null) throw new IllegalArgumentException JavaDoc ("DataType is mandatory");
109 setValue ("DataType", DataType);
110 }
111 public String JavaDoc getDataType()
112 {
113 return (String JavaDoc)getValue("DataType");
114 }
115 public void setDecimalPoint (String JavaDoc DecimalPoint)
116 {
117 if (DecimalPoint == null) throw new IllegalArgumentException JavaDoc ("DecimalPoint is mandatory");
118 setValue ("DecimalPoint", DecimalPoint);
119 }
120 public String JavaDoc getDecimalPoint()
121 {
122 return (String JavaDoc)getValue("DecimalPoint");
123 }
124 public void setDivideBy100 (boolean DivideBy100)
125 {
126 setValue ("DivideBy100", new Boolean JavaDoc(DivideBy100));
127 }
128 public boolean isDivideBy100()
129 {
130 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("DivideBy100");
131 if (bb != null) return bb.booleanValue();
132 return false;
133 }
134 public void setEndNo (int EndNo)
135 {
136 setValue ("EndNo", new Integer JavaDoc(EndNo));
137 }
138 public int getEndNo()
139 {
140 Integer JavaDoc ii = (Integer JavaDoc)getValue("EndNo");
141 if (ii == null) return 0;
142 return ii.intValue();
143 }
144 public void setName (String JavaDoc Name)
145 {
146 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
147 setValue ("Name", Name);
148 }
149 public String JavaDoc getName()
150 {
151 return (String JavaDoc)getValue("Name");
152 }
153 public void setScript (String JavaDoc Script)
154 {
155 setValue ("Script", Script);
156 }
157 public String JavaDoc getScript()
158 {
159 return (String JavaDoc)getValue("Script");
160 }
161 public void setSeqNo (int SeqNo)
162 {
163 setValue ("SeqNo", new Integer JavaDoc(SeqNo));
164 }
165 public int getSeqNo()
166 {
167 Integer JavaDoc ii = (Integer JavaDoc)getValue("SeqNo");
168 if (ii == null) return 0;
169 return ii.intValue();
170 }
171 public void setStartNo (int StartNo)
172 {
173 setValue ("StartNo", new Integer JavaDoc(StartNo));
174 }
175 public int getStartNo()
176 {
177 Integer JavaDoc ii = (Integer JavaDoc)getValue("StartNo");
178 if (ii == null) return 0;
179 return ii.intValue();
180 }
181 }
182
Popular Tags