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_Table extends PO 11 { 12 13 public X_AD_Table (Properties ctx, int AD_Table_ID) 14 { 15 super (ctx, AD_Table_ID); 16 31 } 32 33 public X_AD_Table (Properties ctx, ResultSet rs) 34 { 35 super (ctx, rs); 36 } 37 38 protected POInfo initPO (Properties ctx) 39 { 40 int AD_Table_ID = 100; 41 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 42 return poi; 43 } 44 public String toString() 45 { 46 StringBuffer sb = new StringBuffer ("X_AD_Table[").append(getID()).append("]"); 47 return sb.toString(); 48 } 49 void setAD_Table_ID (int AD_Table_ID) 50 { 51 setValueNoCheck ("AD_Table_ID", new Integer (AD_Table_ID)); 52 } 53 public int getAD_Table_ID() 54 { 55 Integer ii = (Integer )getValue("AD_Table_ID"); 56 if (ii == null) return 0; 57 return ii.intValue(); 58 } 59 public void setAD_Val_Rule_ID (int AD_Val_Rule_ID) 60 { 61 if (AD_Val_Rule_ID == 0) setValue ("AD_Val_Rule_ID", null); 62 else 63 setValue ("AD_Val_Rule_ID", new Integer (AD_Val_Rule_ID)); 64 } 65 public int getAD_Val_Rule_ID() 66 { 67 Integer ii = (Integer )getValue("AD_Val_Rule_ID"); 68 if (ii == null) return 0; 69 return ii.intValue(); 70 } 71 public void setAD_Window_ID (int AD_Window_ID) 72 { 73 if (AD_Window_ID == 0) setValue ("AD_Window_ID", null); 74 else 75 setValue ("AD_Window_ID", new Integer (AD_Window_ID)); 76 } 77 public int getAD_Window_ID() 78 { 79 Integer ii = (Integer )getValue("AD_Window_ID"); 80 if (ii == null) return 0; 81 return ii.intValue(); 82 } 83 public static final String ACCESSLEVEL_Organization = "1"; 84 public static final String ACCESSLEVEL_ClientPlusOrganization = "3"; 85 public static final String ACCESSLEVEL_SystemOnly = "4"; 86 public static final String ACCESSLEVEL_All = "7"; 87 public static final String ACCESSLEVEL_ClientOnly = "2"; 88 public static final String ACCESSLEVEL_SystemPlusClient = "6"; 89 public void setAccessLevel (String AccessLevel) 90 { 91 if (AccessLevel.equals("1") || AccessLevel.equals("3") || AccessLevel.equals("4") || AccessLevel.equals("7") || AccessLevel.equals("2") || AccessLevel.equals("6")); 92 else throw new IllegalArgumentException ("AccessLevel Invalid value - Reference_ID=5 - 1 - 3 - 4 - 7 - 2 - 6"); 93 if (AccessLevel == null) throw new IllegalArgumentException ("AccessLevel is mandatory"); 94 setValue ("AccessLevel", AccessLevel); 95 } 96 public String getAccessLevel() 97 { 98 return (String )getValue("AccessLevel"); 99 } 100 public void setDescription (String Description) 101 { 102 setValue ("Description", Description); 103 } 104 public String getDescription() 105 { 106 return (String )getValue("Description"); 107 } 108 public static final String ENTITYTYPE_Dictionary = "D"; 109 public static final String ENTITYTYPE_Compiere = "C"; 110 public static final String ENTITYTYPE_UserMaintained = "U"; 111 public static final String ENTITYTYPE_Applications = "A"; 112 public void setEntityType (String EntityType) 113 { 114 if (EntityType.equals("D") || EntityType.equals("C") || EntityType.equals("U") || EntityType.equals("A")); 115 else throw new IllegalArgumentException ("EntityType Invalid value - Reference_ID=245 - D - C - U - A"); 116 if (EntityType == null) throw new IllegalArgumentException ("EntityType is mandatory"); 117 setValue ("EntityType", EntityType); 118 } 119 public String getEntityType() 120 { 121 return (String )getValue("EntityType"); 122 } 123 public void setHelp (String Help) 124 { 125 setValue ("Help", Help); 126 } 127 public String getHelp() 128 { 129 return (String )getValue("Help"); 130 } 131 public void setImportTable (String ImportTable) 132 { 133 setValue ("ImportTable", ImportTable); 134 } 135 public String getImportTable() 136 { 137 return (String )getValue("ImportTable"); 138 } 139 public void setIsChangeLog (boolean IsChangeLog) 140 { 141 setValue ("IsChangeLog", new Boolean (IsChangeLog)); 142 } 143 public boolean isChangeLog() 144 { 145 Boolean bb = (Boolean )getValue("IsChangeLog"); 146 if (bb != null) return bb.booleanValue(); 147 return false; 148 } 149 public void setIsDeleteable (boolean IsDeleteable) 150 { 151 setValue ("IsDeleteable", new Boolean (IsDeleteable)); 152 } 153 public boolean isDeleteable() 154 { 155 Boolean bb = (Boolean )getValue("IsDeleteable"); 156 if (bb != null) return bb.booleanValue(); 157 return false; 158 } 159 public void setIsHighVolume (boolean IsHighVolume) 160 { 161 setValue ("IsHighVolume", new Boolean (IsHighVolume)); 162 } 163 public boolean isHighVolume() 164 { 165 Boolean bb = (Boolean )getValue("IsHighVolume"); 166 if (bb != null) return bb.booleanValue(); 167 return false; 168 } 169 public void setIsSecurityEnabled (boolean IsSecurityEnabled) 170 { 171 setValue ("IsSecurityEnabled", new Boolean (IsSecurityEnabled)); 172 } 173 public boolean isSecurityEnabled() 174 { 175 Boolean bb = (Boolean )getValue("IsSecurityEnabled"); 176 if (bb != null) return bb.booleanValue(); 177 return false; 178 } 179 public void setIsView (boolean IsView) 180 { 181 setValue ("IsView", new Boolean (IsView)); 182 } 183 public boolean isView() 184 { 185 Boolean bb = (Boolean )getValue("IsView"); 186 if (bb != null) return bb.booleanValue(); 187 return false; 188 } 189 void setLoadSeq (int LoadSeq) 190 { 191 setValueNoCheck ("LoadSeq", new Integer (LoadSeq)); 192 } 193 public int getLoadSeq() 194 { 195 Integer ii = (Integer )getValue("LoadSeq"); 196 if (ii == null) return 0; 197 return ii.intValue(); 198 } 199 public void setName (String Name) 200 { 201 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 202 setValue ("Name", Name); 203 } 204 public String getName() 205 { 206 return (String )getValue("Name"); 207 } 208 public void setPO_Window_ID (int PO_Window_ID) 209 { 210 if (PO_Window_ID == 0) setValue ("PO_Window_ID", null); 211 else 212 setValue ("PO_Window_ID", new Integer (PO_Window_ID)); 213 } 214 public int getPO_Window_ID() 215 { 216 Integer ii = (Integer )getValue("PO_Window_ID"); 217 if (ii == null) return 0; 218 return ii.intValue(); 219 } 220 public static final String REPLICATIONTYPE_Local = "L"; 221 public static final String REPLICATIONTYPE_Merge = "M"; 222 public static final String REPLICATIONTYPE_Reference = "R"; 223 public void setReplicationType (String ReplicationType) 224 { 225 if (ReplicationType.equals("L") || ReplicationType.equals("M") || ReplicationType.equals("R")); 226 else throw new IllegalArgumentException ("ReplicationType Invalid value - Reference_ID=126 - L - M - R"); 227 if (ReplicationType == null) throw new IllegalArgumentException ("ReplicationType is mandatory"); 228 setValue ("ReplicationType", ReplicationType); 229 } 230 public String getReplicationType() 231 { 232 return (String )getValue("ReplicationType"); 233 } 234 public void setTableName (String TableName) 235 { 236 if (TableName == null) throw new IllegalArgumentException ("TableName is mandatory"); 237 setValue ("TableName", TableName); 238 } 239 public String getTableName() 240 { 241 return (String )getValue("TableName"); 242 } 243 } 244 | Popular Tags |