KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_AD_PrintLabelLine extends PO
11 {
12 /** Standard Constructor **/
13 public X_AD_PrintLabelLine (Properties ctx, int AD_PrintLabelLine_ID)
14 {
15 super (ctx, AD_PrintLabelLine_ID);
16 /** if (AD_PrintLabelLine_ID == 0)
17 {
18 setAD_LabelPrinterFunction_ID (0);
19 setAD_PrintLabelLine_ID (0);
20 setAD_PrintLabel_ID (0);
21 setLabelFormatType (null);
22 setName (null);
23 setSeqNo (0);
24 setXposition (0);
25 setYposition (0);
26 }
27  **/

28 }
29 /** Load Constructor **/
30 public X_AD_PrintLabelLine (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 = 569;
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_PrintLabelLine[").append(getID()).append("]");
44 return sb.toString();
45 }
46 public void setAD_Column_ID (int AD_Column_ID)
47 {
48 if (AD_Column_ID == 0) setValue ("AD_Column_ID", null);
49  else
50 setValue ("AD_Column_ID", new Integer JavaDoc(AD_Column_ID));
51 }
52 public int getAD_Column_ID()
53 {
54 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_Column_ID");
55 if (ii == null) return 0;
56 return ii.intValue();
57 }
58 public void setAD_LabelPrinterFunction_ID (int AD_LabelPrinterFunction_ID)
59 {
60 setValue ("AD_LabelPrinterFunction_ID", new Integer JavaDoc(AD_LabelPrinterFunction_ID));
61 }
62 public int getAD_LabelPrinterFunction_ID()
63 {
64 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_LabelPrinterFunction_ID");
65 if (ii == null) return 0;
66 return ii.intValue();
67 }
68 void setAD_PrintLabelLine_ID (int AD_PrintLabelLine_ID)
69 {
70 setValueNoCheck ("AD_PrintLabelLine_ID", new Integer JavaDoc(AD_PrintLabelLine_ID));
71 }
72 public int getAD_PrintLabelLine_ID()
73 {
74 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_PrintLabelLine_ID");
75 if (ii == null) return 0;
76 return ii.intValue();
77 }
78 void setAD_PrintLabel_ID (int AD_PrintLabel_ID)
79 {
80 setValueNoCheck ("AD_PrintLabel_ID", new Integer JavaDoc(AD_PrintLabel_ID));
81 }
82 public int getAD_PrintLabel_ID()
83 {
84 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_PrintLabel_ID");
85 if (ii == null) return 0;
86 return ii.intValue();
87 }
88 public static final String JavaDoc LABELFORMATTYPE_Field = "F";
89 public static final String JavaDoc LABELFORMATTYPE_Text = "T";
90 public void setLabelFormatType (String JavaDoc LabelFormatType)
91 {
92 if (LabelFormatType.equals("F") || LabelFormatType.equals("T"));
93  else throw new IllegalArgumentException JavaDoc ("LabelFormatType Invalid value - Reference_ID=280 - F - T");
94 if (LabelFormatType == null) throw new IllegalArgumentException JavaDoc ("LabelFormatType is mandatory");
95 setValue ("LabelFormatType", LabelFormatType);
96 }
97 public String JavaDoc getLabelFormatType()
98 {
99 return (String JavaDoc)getValue("LabelFormatType");
100 }
101 public void setName (String JavaDoc Name)
102 {
103 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
104 setValue ("Name", Name);
105 }
106 public String JavaDoc getName()
107 {
108 return (String JavaDoc)getValue("Name");
109 }
110 public void setPrintName (String JavaDoc PrintName)
111 {
112 setValue ("PrintName", PrintName);
113 }
114 public String JavaDoc getPrintName()
115 {
116 return (String JavaDoc)getValue("PrintName");
117 }
118 public void setSeqNo (int SeqNo)
119 {
120 setValue ("SeqNo", new Integer JavaDoc(SeqNo));
121 }
122 public int getSeqNo()
123 {
124 Integer JavaDoc ii = (Integer JavaDoc)getValue("SeqNo");
125 if (ii == null) return 0;
126 return ii.intValue();
127 }
128 public void setXposition (int Xposition)
129 {
130 setValue ("Xposition", new Integer JavaDoc(Xposition));
131 }
132 public int getXposition()
133 {
134 Integer JavaDoc ii = (Integer JavaDoc)getValue("Xposition");
135 if (ii == null) return 0;
136 return ii.intValue();
137 }
138 public void setYposition (int Yposition)
139 {
140 setValue ("Yposition", new Integer JavaDoc(Yposition));
141 }
142 public int getYposition()
143 {
144 Integer JavaDoc ii = (Integer JavaDoc)getValue("Yposition");
145 if (ii == null) return 0;
146 return ii.intValue();
147 }
148 }
149
Popular Tags