1 2 package org.compiere.model; 3 import java.util.*; 4 import java.sql.*; 5 import java.math.*; 6 import java.io.Serializable ; 7 import org.compiere.util.*; 8 10 public class X_PA_Color extends PO 11 { 12 13 public X_PA_Color (Properties ctx, int PA_Color_ID) 14 { 15 super (ctx, PA_Color_ID); 16 24 } 25 26 public X_PA_Color (Properties ctx, ResultSet rs) 27 { 28 super (ctx, rs); 29 } 30 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 toString() 38 { 39 StringBuffer sb = new StringBuffer ("X_PA_Color[").append(getID()).append("]"); 40 return sb.toString(); 41 } 42 public void setJavaColorClass (String JavaColorClass) 43 { 44 if (JavaColorClass == null) throw new IllegalArgumentException ("JavaColorClass is mandatory"); 45 setValue ("JavaColorClass", JavaColorClass); 46 } 47 public String getJavaColorClass() 48 { 49 return (String )getValue("JavaColorClass"); 50 } 51 public void setName (String Name) 52 { 53 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 54 setValue ("Name", Name); 55 } 56 public String getName() 57 { 58 return (String )getValue("Name"); 59 } 60 void setPA_Color_ID (int PA_Color_ID) 61 { 62 setValueNoCheck ("PA_Color_ID", new Integer (PA_Color_ID)); 63 } 64 public int getPA_Color_ID() 65 { 66 Integer ii = (Integer )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 (UpToPercent)); 73 } 74 public int getUpToPercent() 75 { 76 Integer ii = (Integer )getValue("UpToPercent"); 77 if (ii == null) return 0; 78 return ii.intValue(); 79 } 80 } 81 | Popular Tags |