KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_AD_ImpFormat extends PO
11 {
12 /** Standard Constructor **/
13 public X_AD_ImpFormat (Properties ctx, int AD_ImpFormat_ID)
14 {
15 super (ctx, AD_ImpFormat_ID);
16 /** if (AD_ImpFormat_ID == 0)
17 {
18 setAD_ImpFormat_ID (0);
19 setAD_Table_ID (0);
20 setFormatType (null);
21 setName (null);
22 setProcessing (null);
23 }
24  **/

25 }
26 /** Load Constructor **/
27 public X_AD_ImpFormat (Properties ctx, ResultSet rs)
28 {
29 super (ctx, rs);
30 }
31 /** Load Meta Data **/
32 protected POInfo initPO (Properties ctx)
33 {
34 int AD_Table_ID = 381;
35 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
36 return poi;
37 }
38 public String JavaDoc toString()
39 {
40 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_AD_ImpFormat[").append(getID()).append("]");
41 return sb.toString();
42 }
43 void setAD_ImpFormat_ID (int AD_ImpFormat_ID)
44 {
45 setValueNoCheck ("AD_ImpFormat_ID", new Integer JavaDoc(AD_ImpFormat_ID));
46 }
47 public int getAD_ImpFormat_ID()
48 {
49 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_ImpFormat_ID");
50 if (ii == null) return 0;
51 return ii.intValue();
52 }
53 public void setAD_Table_ID (int AD_Table_ID)
54 {
55 setValue ("AD_Table_ID", new Integer JavaDoc(AD_Table_ID));
56 }
57 public int getAD_Table_ID()
58 {
59 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_Table_ID");
60 if (ii == null) return 0;
61 return ii.intValue();
62 }
63 public void setDescription (String JavaDoc Description)
64 {
65 setValue ("Description", Description);
66 }
67 public String JavaDoc getDescription()
68 {
69 return (String JavaDoc)getValue("Description");
70 }
71 public static final String JavaDoc FORMATTYPE_FixedPosition = "F";
72 public static final String JavaDoc FORMATTYPE_CommaSeparated = "C";
73 public static final String JavaDoc FORMATTYPE_TabSeparated = "T";
74 public static final String JavaDoc FORMATTYPE_XML = "X";
75 public void setFormatType (String JavaDoc FormatType)
76 {
77 if (FormatType.equals("F") || FormatType.equals("C") || FormatType.equals("T") || FormatType.equals("X"));
78  else throw new IllegalArgumentException JavaDoc ("FormatType Invalid value - Reference_ID=209 - F - C - T - X");
79 if (FormatType == null) throw new IllegalArgumentException JavaDoc ("FormatType is mandatory");
80 setValue ("FormatType", FormatType);
81 }
82 public String JavaDoc getFormatType()
83 {
84 return (String JavaDoc)getValue("FormatType");
85 }
86 public void setName (String JavaDoc Name)
87 {
88 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
89 setValue ("Name", Name);
90 }
91 public String JavaDoc getName()
92 {
93 return (String JavaDoc)getValue("Name");
94 }
95 public void setProcessing (String JavaDoc Processing)
96 {
97 if (Processing == null) throw new IllegalArgumentException JavaDoc ("Processing is mandatory");
98 setValue ("Processing", Processing);
99 }
100 public String JavaDoc getProcessing()
101 {
102 return (String JavaDoc)getValue("Processing");
103 }
104 }
105
Popular Tags