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_AD_PrintGraph extends PO 11 { 12 13 public X_AD_PrintGraph (Properties ctx, int AD_PrintGraph_ID) 14 { 15 super (ctx, AD_PrintGraph_ID); 16 26 } 27 28 public X_AD_PrintGraph (Properties ctx, ResultSet rs) 29 { 30 super (ctx, rs); 31 } 32 33 protected POInfo initPO (Properties ctx) 34 { 35 int AD_Table_ID = 521; 36 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 37 return poi; 38 } 39 public String toString() 40 { 41 StringBuffer sb = new StringBuffer ("X_AD_PrintGraph[").append(getID()).append("]"); 42 return sb.toString(); 43 } 44 public void setAD_PrintFormat_ID (int AD_PrintFormat_ID) 45 { 46 setValue ("AD_PrintFormat_ID", new Integer (AD_PrintFormat_ID)); 47 } 48 public int getAD_PrintFormat_ID() 49 { 50 Integer ii = (Integer )getValue("AD_PrintFormat_ID"); 51 if (ii == null) return 0; 52 return ii.intValue(); 53 } 54 void setAD_PrintGraph_ID (int AD_PrintGraph_ID) 55 { 56 setValueNoCheck ("AD_PrintGraph_ID", new Integer (AD_PrintGraph_ID)); 57 } 58 public int getAD_PrintGraph_ID() 59 { 60 Integer ii = (Integer )getValue("AD_PrintGraph_ID"); 61 if (ii == null) return 0; 62 return ii.intValue(); 63 } 64 public void setData1_PrintFormatItem_ID (int Data1_PrintFormatItem_ID) 65 { 66 if (Data1_PrintFormatItem_ID == 0) setValue ("Data1_PrintFormatItem_ID", null); 67 else 68 setValue ("Data1_PrintFormatItem_ID", new Integer (Data1_PrintFormatItem_ID)); 69 } 70 public int getData1_PrintFormatItem_ID() 71 { 72 Integer ii = (Integer )getValue("Data1_PrintFormatItem_ID"); 73 if (ii == null) return 0; 74 return ii.intValue(); 75 } 76 public void setData2_PrintFormatItem_ID (int Data2_PrintFormatItem_ID) 77 { 78 if (Data2_PrintFormatItem_ID == 0) setValue ("Data2_PrintFormatItem_ID", null); 79 else 80 setValue ("Data2_PrintFormatItem_ID", new Integer (Data2_PrintFormatItem_ID)); 81 } 82 public int getData2_PrintFormatItem_ID() 83 { 84 Integer ii = (Integer )getValue("Data2_PrintFormatItem_ID"); 85 if (ii == null) return 0; 86 return ii.intValue(); 87 } 88 public void setData3_PrintFormatItem_ID (int Data3_PrintFormatItem_ID) 89 { 90 if (Data3_PrintFormatItem_ID == 0) setValue ("Data3_PrintFormatItem_ID", null); 91 else 92 setValue ("Data3_PrintFormatItem_ID", new Integer (Data3_PrintFormatItem_ID)); 93 } 94 public int getData3_PrintFormatItem_ID() 95 { 96 Integer ii = (Integer )getValue("Data3_PrintFormatItem_ID"); 97 if (ii == null) return 0; 98 return ii.intValue(); 99 } 100 public void setData4_PrintFormatItem_ID (int Data4_PrintFormatItem_ID) 101 { 102 if (Data4_PrintFormatItem_ID == 0) setValue ("Data4_PrintFormatItem_ID", null); 103 else 104 setValue ("Data4_PrintFormatItem_ID", new Integer (Data4_PrintFormatItem_ID)); 105 } 106 public int getData4_PrintFormatItem_ID() 107 { 108 Integer ii = (Integer )getValue("Data4_PrintFormatItem_ID"); 109 if (ii == null) return 0; 110 return ii.intValue(); 111 } 112 public void setData_PrintFormatItem_ID (int Data_PrintFormatItem_ID) 113 { 114 setValue ("Data_PrintFormatItem_ID", new Integer (Data_PrintFormatItem_ID)); 115 } 116 public int getData_PrintFormatItem_ID() 117 { 118 Integer ii = (Integer )getValue("Data_PrintFormatItem_ID"); 119 if (ii == null) return 0; 120 return ii.intValue(); 121 } 122 public void setDescription (String Description) 123 { 124 setValue ("Description", Description); 125 } 126 public String getDescription() 127 { 128 return (String )getValue("Description"); 129 } 130 public void setDescription_PrintFormatItem_ID (int Description_PrintFormatItem_ID) 131 { 132 setValue ("Description_PrintFormatItem_ID", new Integer (Description_PrintFormatItem_ID)); 133 } 134 public int getDescription_PrintFormatItem_ID() 135 { 136 Integer ii = (Integer )getValue("Description_PrintFormatItem_ID"); 137 if (ii == null) return 0; 138 return ii.intValue(); 139 } 140 public static final String GRAPHTYPE_PieChart = "P"; 141 public static final String GRAPHTYPE_LineChart = "L"; 142 public static final String GRAPHTYPE_BarChart = "B"; 143 public void setGraphType (String GraphType) 144 { 145 if (GraphType.equals("P") || GraphType.equals("L") || GraphType.equals("B")); 146 else throw new IllegalArgumentException ("GraphType Invalid value - Reference_ID=265 - P - L - B"); 147 if (GraphType == null) throw new IllegalArgumentException ("GraphType is mandatory"); 148 setValue ("GraphType", GraphType); 149 } 150 public String getGraphType() 151 { 152 return (String )getValue("GraphType"); 153 } 154 public void setName (String Name) 155 { 156 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 157 setValue ("Name", Name); 158 } 159 public String getName() 160 { 161 return (String )getValue("Name"); 162 } 163 } 164
| Popular Tags
|