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_Field extends PO 11 { 12 13 public X_AD_Field (Properties ctx, int AD_Field_ID) 14 { 15 super (ctx, AD_Field_ID); 16 32 } 33 34 public X_AD_Field (Properties ctx, ResultSet rs) 35 { 36 super (ctx, rs); 37 } 38 39 protected POInfo initPO (Properties ctx) 40 { 41 int AD_Table_ID = 107; 42 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 43 return poi; 44 } 45 public String toString() 46 { 47 StringBuffer sb = new StringBuffer ("X_AD_Field[").append(getID()).append("]"); 48 return sb.toString(); 49 } 50 public void setAD_Column_ID (int AD_Column_ID) 51 { 52 setValue ("AD_Column_ID", new Integer (AD_Column_ID)); 53 } 54 public int getAD_Column_ID() 55 { 56 Integer ii = (Integer )getValue("AD_Column_ID"); 57 if (ii == null) return 0; 58 return ii.intValue(); 59 } 60 public void setAD_FieldGroup_ID (int AD_FieldGroup_ID) 61 { 62 if (AD_FieldGroup_ID == 0) setValue ("AD_FieldGroup_ID", null); 63 else 64 setValue ("AD_FieldGroup_ID", new Integer (AD_FieldGroup_ID)); 65 } 66 public int getAD_FieldGroup_ID() 67 { 68 Integer ii = (Integer )getValue("AD_FieldGroup_ID"); 69 if (ii == null) return 0; 70 return ii.intValue(); 71 } 72 void setAD_Field_ID (int AD_Field_ID) 73 { 74 setValueNoCheck ("AD_Field_ID", new Integer (AD_Field_ID)); 75 } 76 public int getAD_Field_ID() 77 { 78 Integer ii = (Integer )getValue("AD_Field_ID"); 79 if (ii == null) return 0; 80 return ii.intValue(); 81 } 82 void setAD_Tab_ID (int AD_Tab_ID) 83 { 84 setValueNoCheck ("AD_Tab_ID", new Integer (AD_Tab_ID)); 85 } 86 public int getAD_Tab_ID() 87 { 88 Integer ii = (Integer )getValue("AD_Tab_ID"); 89 if (ii == null) return 0; 90 return ii.intValue(); 91 } 92 public void setDescription (String Description) 93 { 94 setValue ("Description", Description); 95 } 96 public String getDescription() 97 { 98 return (String )getValue("Description"); 99 } 100 public void setDisplayLength (int DisplayLength) 101 { 102 setValue ("DisplayLength", new Integer (DisplayLength)); 103 } 104 public int getDisplayLength() 105 { 106 Integer ii = (Integer )getValue("DisplayLength"); 107 if (ii == null) return 0; 108 return ii.intValue(); 109 } 110 public void setDisplayLogic (String DisplayLogic) 111 { 112 setValue ("DisplayLogic", DisplayLogic); 113 } 114 public String getDisplayLogic() 115 { 116 return (String )getValue("DisplayLogic"); 117 } 118 public static final String ENTITYTYPE_Dictionary = "D"; 119 public static final String ENTITYTYPE_Compiere = "C"; 120 public static final String ENTITYTYPE_UserMaintained = "U"; 121 public static final String ENTITYTYPE_Applications = "A"; 122 public void setEntityType (String EntityType) 123 { 124 if (EntityType.equals("D") || EntityType.equals("C") || EntityType.equals("U") || EntityType.equals("A")); 125 else throw new IllegalArgumentException ("EntityType Invalid value - Reference_ID=245 - D - C - U - A"); 126 if (EntityType == null) throw new IllegalArgumentException ("EntityType is mandatory"); 127 setValue ("EntityType", EntityType); 128 } 129 public String getEntityType() 130 { 131 return (String )getValue("EntityType"); 132 } 133 public void setHelp (String Help) 134 { 135 setValue ("Help", Help); 136 } 137 public String getHelp() 138 { 139 return (String )getValue("Help"); 140 } 141 public void setIsCentrallyMaintained (boolean IsCentrallyMaintained) 142 { 143 setValue ("IsCentrallyMaintained", new Boolean (IsCentrallyMaintained)); 144 } 145 public boolean isCentrallyMaintained() 146 { 147 Boolean bb = (Boolean )getValue("IsCentrallyMaintained"); 148 if (bb != null) return bb.booleanValue(); 149 return false; 150 } 151 public void setIsDisplayed (boolean IsDisplayed) 152 { 153 setValue ("IsDisplayed", new Boolean (IsDisplayed)); 154 } 155 public boolean isDisplayed() 156 { 157 Boolean bb = (Boolean )getValue("IsDisplayed"); 158 if (bb != null) return bb.booleanValue(); 159 return false; 160 } 161 public void setIsEncrypted (boolean IsEncrypted) 162 { 163 setValue ("IsEncrypted", new Boolean (IsEncrypted)); 164 } 165 public boolean isEncrypted() 166 { 167 Boolean bb = (Boolean )getValue("IsEncrypted"); 168 if (bb != null) return bb.booleanValue(); 169 return false; 170 } 171 public void setIsFieldOnly (boolean IsFieldOnly) 172 { 173 setValue ("IsFieldOnly", new Boolean (IsFieldOnly)); 174 } 175 public boolean isFieldOnly() 176 { 177 Boolean bb = (Boolean )getValue("IsFieldOnly"); 178 if (bb != null) return bb.booleanValue(); 179 return false; 180 } 181 public void setIsHeading (boolean IsHeading) 182 { 183 setValue ("IsHeading", new Boolean (IsHeading)); 184 } 185 public boolean isHeading() 186 { 187 Boolean bb = (Boolean )getValue("IsHeading"); 188 if (bb != null) return bb.booleanValue(); 189 return false; 190 } 191 public void setIsReadOnly (boolean IsReadOnly) 192 { 193 setValue ("IsReadOnly", new Boolean (IsReadOnly)); 194 } 195 public boolean isReadOnly() 196 { 197 Boolean bb = (Boolean )getValue("IsReadOnly"); 198 if (bb != null) return bb.booleanValue(); 199 return false; 200 } 201 public void setIsSameLine (boolean IsSameLine) 202 { 203 setValue ("IsSameLine", new Boolean (IsSameLine)); 204 } 205 public boolean isSameLine() 206 { 207 Boolean bb = (Boolean )getValue("IsSameLine"); 208 if (bb != null) return bb.booleanValue(); 209 return false; 210 } 211 public void setName (String Name) 212 { 213 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 214 setValue ("Name", Name); 215 } 216 public String getName() 217 { 218 return (String )getValue("Name"); 219 } 220 public static final String OBSCURETYPE_ObscureDigitsButLast4 = "904"; 221 public static final String OBSCURETYPE_ObscureDigitsButFirstLast4 = "944"; 222 public static final String OBSCURETYPE_ObscureAlphaNumericButFirstLast4 = "A44"; 223 public static final String OBSCURETYPE_ObscureAlphaNumericButLast4 = "A04"; 224 public void setObscureType (String ObscureType) 225 { 226 if (ObscureType.equals("904") || ObscureType.equals("944") || ObscureType.equals("A44") || ObscureType.equals("A04")); 227 else throw new IllegalArgumentException ("ObscureType Invalid value - Reference_ID=291 - 904 - 944 - A44 - A04"); 228 setValue ("ObscureType", ObscureType); 229 } 230 public String getObscureType() 231 { 232 return (String )getValue("ObscureType"); 233 } 234 public void setSeqNo (int SeqNo) 235 { 236 setValue ("SeqNo", new Integer (SeqNo)); 237 } 238 public int getSeqNo() 239 { 240 Integer ii = (Integer )getValue("SeqNo"); 241 if (ii == null) return 0; 242 return ii.intValue(); 243 } 244 public void setSortNo (int SortNo) 245 { 246 setValue ("SortNo", new Integer (SortNo)); 247 } 248 public int getSortNo() 249 { 250 Integer ii = (Integer )getValue("SortNo"); 251 if (ii == null) return 0; 252 return ii.intValue(); 253 } 254 } 255 | Popular Tags |