KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_PA_Color extends PO
11 {
12 /** Standard Constructor **/
13 public X_PA_Color (Properties ctx, int PA_Color_ID)
14 {
15 super (ctx, PA_Color_ID);
16 /** if (PA_Color_ID == 0)
17 {
18 setJavaColorClass (null);
19 setName (null);
20 setPA_Color_ID (0);
21 setUpToPercent (0);
22 }
23  **/

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