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_WF_Node extends PO 11 { 12 13 public X_AD_WF_Node (Properties ctx, int AD_WF_Node_ID) 14 { 15 super (ctx, AD_WF_Node_ID); 16 26 } 27 28 public X_AD_WF_Node (Properties ctx, ResultSet rs) 29 { 30 super (ctx, rs); 31 } 32 33 protected POInfo initPO (Properties ctx) 34 { 35 int AD_Table_ID = 129; 36 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 37 return poi; 38 } 39 public String toString() 40 { 41 StringBuffer sb = new StringBuffer ("X_AD_WF_Node[").append(getID()).append("]"); 42 return sb.toString(); 43 } 44 public void setAD_Form_ID (int AD_Form_ID) 45 { 46 if (AD_Form_ID == 0) setValue ("AD_Form_ID", null); 47 else 48 setValue ("AD_Form_ID", new Integer (AD_Form_ID)); 49 } 50 public int getAD_Form_ID() 51 { 52 Integer ii = (Integer )getValue("AD_Form_ID"); 53 if (ii == null) return 0; 54 return ii.intValue(); 55 } 56 public void setAD_Process_ID (int AD_Process_ID) 57 { 58 if (AD_Process_ID == 0) setValue ("AD_Process_ID", null); 59 else 60 setValue ("AD_Process_ID", new Integer (AD_Process_ID)); 61 } 62 public int getAD_Process_ID() 63 { 64 Integer ii = (Integer )getValue("AD_Process_ID"); 65 if (ii == null) return 0; 66 return ii.intValue(); 67 } 68 public void setAD_Task_ID (int AD_Task_ID) 69 { 70 if (AD_Task_ID == 0) setValue ("AD_Task_ID", null); 71 else 72 setValue ("AD_Task_ID", new Integer (AD_Task_ID)); 73 } 74 public int getAD_Task_ID() 75 { 76 Integer ii = (Integer )getValue("AD_Task_ID"); 77 if (ii == null) return 0; 78 return ii.intValue(); 79 } 80 void setAD_WF_Node_ID (int AD_WF_Node_ID) 81 { 82 setValueNoCheck ("AD_WF_Node_ID", new Integer (AD_WF_Node_ID)); 83 } 84 public int getAD_WF_Node_ID() 85 { 86 Integer ii = (Integer )getValue("AD_WF_Node_ID"); 87 if (ii == null) return 0; 88 return ii.intValue(); 89 } 90 public void setAD_Window_ID (int AD_Window_ID) 91 { 92 if (AD_Window_ID == 0) setValue ("AD_Window_ID", null); 93 else 94 setValue ("AD_Window_ID", new Integer (AD_Window_ID)); 95 } 96 public int getAD_Window_ID() 97 { 98 Integer ii = (Integer )getValue("AD_Window_ID"); 99 if (ii == null) return 0; 100 return ii.intValue(); 101 } 102 void setAD_Workflow_ID (int AD_Workflow_ID) 103 { 104 setValueNoCheck ("AD_Workflow_ID", new Integer (AD_Workflow_ID)); 105 } 106 public int getAD_Workflow_ID() 107 { 108 Integer ii = (Integer )getValue("AD_Workflow_ID"); 109 if (ii == null) return 0; 110 return ii.intValue(); 111 } 112 public static final String ACTION_Form = "X"; 113 public static final String ACTION_Report = "R"; 114 public static final String ACTION_Workbench = "B"; 115 public static final String ACTION_Window = "W"; 116 public static final String ACTION_Task = "T"; 117 public static final String ACTION_WorkFlow = "F"; 118 public static final String ACTION_Process = "P"; 119 public void setAction (String Action) 120 { 121 if (Action.equals("X") || Action.equals("R") || Action.equals("B") || Action.equals("W") || Action.equals("T") || Action.equals("F") || Action.equals("P")); 122 else throw new IllegalArgumentException ("Action Invalid value - Reference_ID=104 - X - R - B - W - T - F - P"); 123 if (Action == null) throw new IllegalArgumentException ("Action is mandatory"); 124 setValue ("Action", Action); 125 } 126 public String getAction() 127 { 128 return (String )getValue("Action"); 129 } 130 public void setDescription (String Description) 131 { 132 setValue ("Description", Description); 133 } 134 public String getDescription() 135 { 136 return (String )getValue("Description"); 137 } 138 public static final String ENTITYTYPE_Dictionary = "D"; 139 public static final String ENTITYTYPE_Compiere = "C"; 140 public static final String ENTITYTYPE_UserMaintained = "U"; 141 public static final String ENTITYTYPE_Applications = "A"; 142 public void setEntityType (String EntityType) 143 { 144 if (EntityType.equals("D") || EntityType.equals("C") || EntityType.equals("U") || EntityType.equals("A")); 145 else throw new IllegalArgumentException ("EntityType Invalid value - Reference_ID=245 - D - C - U - A"); 146 if (EntityType == null) throw new IllegalArgumentException ("EntityType is mandatory"); 147 setValue ("EntityType", EntityType); 148 } 149 public String getEntityType() 150 { 151 return (String )getValue("EntityType"); 152 } 153 public void setHelp (String Help) 154 { 155 setValue ("Help", Help); 156 } 157 public String getHelp() 158 { 159 return (String )getValue("Help"); 160 } 161 public void setIsCentrallyMaintained (boolean IsCentrallyMaintained) 162 { 163 setValue ("IsCentrallyMaintained", new Boolean (IsCentrallyMaintained)); 164 } 165 public boolean isCentrallyMaintained() 166 { 167 Boolean bb = (Boolean )getValue("IsCentrallyMaintained"); 168 if (bb != null) return bb.booleanValue(); 169 return false; 170 } 171 public void setName (String Name) 172 { 173 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 174 setValue ("Name", Name); 175 } 176 public String getName() 177 { 178 return (String )getValue("Name"); 179 } 180 public void setWorkflow_ID (int Workflow_ID) 181 { 182 if (Workflow_ID == 0) setValue ("Workflow_ID", null); 183 else 184 setValue ("Workflow_ID", new Integer (Workflow_ID)); 185 } 186 public int getWorkflow_ID() 187 { 188 Integer ii = (Integer )getValue("Workflow_ID"); 189 if (ii == null) return 0; 190 return ii.intValue(); 191 } 192 public void setXposition (int Xposition) 193 { 194 setValue ("Xposition", new Integer (Xposition)); 195 } 196 public int getXposition() 197 { 198 Integer ii = (Integer )getValue("Xposition"); 199 if (ii == null) return 0; 200 return ii.intValue(); 201 } 202 public void setYposition (int Yposition) 203 { 204 setValue ("Yposition", new Integer (Yposition)); 205 } 206 public int getYposition() 207 { 208 Integer ii = (Integer )getValue("Yposition"); 209 if (ii == null) return 0; 210 return ii.intValue(); 211 } 212 } 213 | Popular Tags |