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_Workflow extends PO 11 { 12 13 public X_AD_Workflow (Properties ctx, int AD_Workflow_ID) 14 { 15 super (ctx, AD_Workflow_ID); 16 24 } 25 26 public X_AD_Workflow (Properties ctx, ResultSet rs) 27 { 28 super (ctx, rs); 29 } 30 31 protected POInfo initPO (Properties ctx) 32 { 33 int AD_Table_ID = 117; 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_Workflow[").append(getID()).append("]"); 40 return sb.toString(); 41 } 42 public void setAD_WF_Node_ID (int AD_WF_Node_ID) 43 { 44 if (AD_WF_Node_ID == 0) setValue ("AD_WF_Node_ID", null); 45 else 46 setValue ("AD_WF_Node_ID", new Integer (AD_WF_Node_ID)); 47 } 48 public int getAD_WF_Node_ID() 49 { 50 Integer ii = (Integer )getValue("AD_WF_Node_ID"); 51 if (ii == null) return 0; 52 return ii.intValue(); 53 } 54 void setAD_Workflow_ID (int AD_Workflow_ID) 55 { 56 setValueNoCheck ("AD_Workflow_ID", new Integer (AD_Workflow_ID)); 57 } 58 public int getAD_Workflow_ID() 59 { 60 Integer ii = (Integer )getValue("AD_Workflow_ID"); 61 if (ii == null) return 0; 62 return ii.intValue(); 63 } 64 public static final String ACCESSLEVEL_Organization = "1"; 65 public static final String ACCESSLEVEL_ClientPlusOrganization = "3"; 66 public static final String ACCESSLEVEL_SystemOnly = "4"; 67 public static final String ACCESSLEVEL_All = "7"; 68 public static final String ACCESSLEVEL_ClientOnly = "2"; 69 public static final String ACCESSLEVEL_SystemPlusClient = "6"; 70 public void setAccessLevel (String AccessLevel) 71 { 72 if (AccessLevel.equals("1") || AccessLevel.equals("3") || AccessLevel.equals("4") || AccessLevel.equals("7") || AccessLevel.equals("2") || AccessLevel.equals("6")); 73 else throw new IllegalArgumentException ("AccessLevel Invalid value - Reference_ID=5 - 1 - 3 - 4 - 7 - 2 - 6"); 74 if (AccessLevel == null) throw new IllegalArgumentException ("AccessLevel is mandatory"); 75 setValue ("AccessLevel", AccessLevel); 76 } 77 public String getAccessLevel() 78 { 79 return (String )getValue("AccessLevel"); 80 } 81 public void setDescription (String Description) 82 { 83 setValue ("Description", Description); 84 } 85 public String getDescription() 86 { 87 return (String )getValue("Description"); 88 } 89 public static final String ENTITYTYPE_Dictionary = "D"; 90 public static final String ENTITYTYPE_Compiere = "C"; 91 public static final String ENTITYTYPE_UserMaintained = "U"; 92 public static final String ENTITYTYPE_Applications = "A"; 93 public void setEntityType (String EntityType) 94 { 95 if (EntityType.equals("D") || EntityType.equals("C") || EntityType.equals("U") || EntityType.equals("A")); 96 else throw new IllegalArgumentException ("EntityType Invalid value - Reference_ID=245 - D - C - U - A"); 97 if (EntityType == null) throw new IllegalArgumentException ("EntityType is mandatory"); 98 setValue ("EntityType", EntityType); 99 } 100 public String getEntityType() 101 { 102 return (String )getValue("EntityType"); 103 } 104 public void setHelp (String Help) 105 { 106 setValue ("Help", Help); 107 } 108 public String getHelp() 109 { 110 return (String )getValue("Help"); 111 } 112 public void setName (String Name) 113 { 114 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 115 setValue ("Name", Name); 116 } 117 public String getName() 118 { 119 return (String )getValue("Name"); 120 } 121 } 122
| Popular Tags
|