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_Val_Rule extends PO 11 { 12 13 public X_AD_Val_Rule (Properties ctx, int AD_Val_Rule_ID) 14 { 15 super (ctx, AD_Val_Rule_ID); 16 24 } 25 26 public X_AD_Val_Rule (Properties ctx, ResultSet rs) 27 { 28 super (ctx, rs); 29 } 30 31 protected POInfo initPO (Properties ctx) 32 { 33 int AD_Table_ID = 108; 34 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 35 return poi; 36 } 37 public String toString() 38 { 39 StringBuffer sb = new StringBuffer ("X_AD_Val_Rule[").append(getID()).append("]"); 40 return sb.toString(); 41 } 42 void setAD_Val_Rule_ID (int AD_Val_Rule_ID) 43 { 44 setValueNoCheck ("AD_Val_Rule_ID", new Integer (AD_Val_Rule_ID)); 45 } 46 public int getAD_Val_Rule_ID() 47 { 48 Integer ii = (Integer )getValue("AD_Val_Rule_ID"); 49 if (ii == null) return 0; 50 return ii.intValue(); 51 } 52 public void setCode (String Code) 53 { 54 setValue ("Code", Code); 55 } 56 public String getCode() 57 { 58 return (String )getValue("Code"); 59 } 60 public void setDescription (String Description) 61 { 62 setValue ("Description", Description); 63 } 64 public String getDescription() 65 { 66 return (String )getValue("Description"); 67 } 68 public static final String ENTITYTYPE_Dictionary = "D"; 69 public static final String ENTITYTYPE_Compiere = "C"; 70 public static final String ENTITYTYPE_UserMaintained = "U"; 71 public static final String ENTITYTYPE_Applications = "A"; 72 public void setEntityType (String EntityType) 73 { 74 if (EntityType.equals("D") || EntityType.equals("C") || EntityType.equals("U") || EntityType.equals("A")); 75 else throw new IllegalArgumentException ("EntityType Invalid value - Reference_ID=245 - D - C - U - A"); 76 if (EntityType == null) throw new IllegalArgumentException ("EntityType is mandatory"); 77 setValue ("EntityType", EntityType); 78 } 79 public String getEntityType() 80 { 81 return (String )getValue("EntityType"); 82 } 83 public void setName (String Name) 84 { 85 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 86 setValue ("Name", Name); 87 } 88 public String getName() 89 { 90 return (String )getValue("Name"); 91 } 92 public static final String TYPE_SQL = "S"; 93 public static final String TYPE_JavaLanguage = "J"; 94 public static final String TYPE_JavaScript = "E"; 95 public void setType (String Type) 96 { 97 if (Type.equals("S") || Type.equals("J") || Type.equals("E")); 98 else throw new IllegalArgumentException ("Type Invalid value - Reference_ID=101 - S - J - E"); 99 if (Type == null) throw new IllegalArgumentException ("Type is mandatory"); 100 setValue ("Type", Type); 101 } 102 public String getType() 103 { 104 return (String )getValue("Type"); 105 } 106 } 107
| Popular Tags
|