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_ImpFormat_Row extends PO 11 { 12 13 public X_AD_ImpFormat_Row (Properties ctx, int AD_ImpFormat_Row_ID) 14 { 15 super (ctx, AD_ImpFormat_Row_ID); 16 28 } 29 30 public X_AD_ImpFormat_Row (Properties ctx, ResultSet rs) 31 { 32 super (ctx, rs); 33 } 34 35 protected POInfo initPO (Properties ctx) 36 { 37 int AD_Table_ID = 382; 38 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 39 return poi; 40 } 41 public String toString() 42 { 43 StringBuffer sb = new StringBuffer ("X_AD_ImpFormat_Row[").append(getID()).append("]"); 44 return sb.toString(); 45 } 46 public void setAD_Column_ID (int AD_Column_ID) 47 { 48 setValue ("AD_Column_ID", new Integer (AD_Column_ID)); 49 } 50 public int getAD_Column_ID() 51 { 52 Integer ii = (Integer )getValue("AD_Column_ID"); 53 if (ii == null) return 0; 54 return ii.intValue(); 55 } 56 void setAD_ImpFormat_ID (int AD_ImpFormat_ID) 57 { 58 setValueNoCheck ("AD_ImpFormat_ID", new Integer (AD_ImpFormat_ID)); 59 } 60 public int getAD_ImpFormat_ID() 61 { 62 Integer ii = (Integer )getValue("AD_ImpFormat_ID"); 63 if (ii == null) return 0; 64 return ii.intValue(); 65 } 66 void setAD_ImpFormat_Row_ID (int AD_ImpFormat_Row_ID) 67 { 68 setValueNoCheck ("AD_ImpFormat_Row_ID", new Integer (AD_ImpFormat_Row_ID)); 69 } 70 public int getAD_ImpFormat_Row_ID() 71 { 72 Integer ii = (Integer )getValue("AD_ImpFormat_Row_ID"); 73 if (ii == null) return 0; 74 return ii.intValue(); 75 } 76 public void setCallout (String Callout) 77 { 78 setValue ("Callout", Callout); 79 } 80 public String getCallout() 81 { 82 return (String )getValue("Callout"); 83 } 84 public void setConstantValue (String ConstantValue) 85 { 86 setValue ("ConstantValue", ConstantValue); 87 } 88 public String getConstantValue() 89 { 90 return (String )getValue("ConstantValue"); 91 } 92 public void setDataFormat (String DataFormat) 93 { 94 setValue ("DataFormat", DataFormat); 95 } 96 public String getDataFormat() 97 { 98 return (String )getValue("DataFormat"); 99 } 100 public static final String DATATYPE_String = "S"; 101 public static final String DATATYPE_Number = "N"; 102 public static final String DATATYPE_Date = "D"; 103 public static final String DATATYPE_Constant = "C"; 104 public void setDataType (String DataType) 105 { 106 if (DataType.equals("S") || DataType.equals("N") || DataType.equals("D") || DataType.equals("C")); 107 else throw new IllegalArgumentException ("DataType Invalid value - Reference_ID=210 - S - N - D - C"); 108 if (DataType == null) throw new IllegalArgumentException ("DataType is mandatory"); 109 setValue ("DataType", DataType); 110 } 111 public String getDataType() 112 { 113 return (String )getValue("DataType"); 114 } 115 public void setDecimalPoint (String DecimalPoint) 116 { 117 if (DecimalPoint == null) throw new IllegalArgumentException ("DecimalPoint is mandatory"); 118 setValue ("DecimalPoint", DecimalPoint); 119 } 120 public String getDecimalPoint() 121 { 122 return (String )getValue("DecimalPoint"); 123 } 124 public void setDivideBy100 (boolean DivideBy100) 125 { 126 setValue ("DivideBy100", new Boolean (DivideBy100)); 127 } 128 public boolean isDivideBy100() 129 { 130 Boolean bb = (Boolean )getValue("DivideBy100"); 131 if (bb != null) return bb.booleanValue(); 132 return false; 133 } 134 public void setEndNo (int EndNo) 135 { 136 setValue ("EndNo", new Integer (EndNo)); 137 } 138 public int getEndNo() 139 { 140 Integer ii = (Integer )getValue("EndNo"); 141 if (ii == null) return 0; 142 return ii.intValue(); 143 } 144 public void setName (String Name) 145 { 146 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 147 setValue ("Name", Name); 148 } 149 public String getName() 150 { 151 return (String )getValue("Name"); 152 } 153 public void setScript (String Script) 154 { 155 setValue ("Script", Script); 156 } 157 public String getScript() 158 { 159 return (String )getValue("Script"); 160 } 161 public void setSeqNo (int SeqNo) 162 { 163 setValue ("SeqNo", new Integer (SeqNo)); 164 } 165 public int getSeqNo() 166 { 167 Integer ii = (Integer )getValue("SeqNo"); 168 if (ii == null) return 0; 169 return ii.intValue(); 170 } 171 public void setStartNo (int StartNo) 172 { 173 setValue ("StartNo", new Integer (StartNo)); 174 } 175 public int getStartNo() 176 { 177 Integer ii = (Integer )getValue("StartNo"); 178 if (ii == null) return 0; 179 return ii.intValue(); 180 } 181 } 182
| Popular Tags
|