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_WorkbenchWindow extends PO 11 { 12 13 public X_AD_WorkbenchWindow (Properties ctx, int AD_WorkbenchWindow_ID) 14 { 15 super (ctx, AD_WorkbenchWindow_ID); 16 25 } 26 27 public X_AD_WorkbenchWindow (Properties ctx, ResultSet rs) 28 { 29 super (ctx, rs); 30 } 31 32 protected POInfo initPO (Properties ctx) 33 { 34 int AD_Table_ID = 469; 35 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 36 return poi; 37 } 38 public String toString() 39 { 40 StringBuffer sb = new StringBuffer ("X_AD_WorkbenchWindow[").append(getID()).append("]"); 41 return sb.toString(); 42 } 43 public void setAD_Form_ID (int AD_Form_ID) 44 { 45 if (AD_Form_ID == 0) setValue ("AD_Form_ID", null); 46 else 47 setValue ("AD_Form_ID", new Integer (AD_Form_ID)); 48 } 49 public int getAD_Form_ID() 50 { 51 Integer ii = (Integer )getValue("AD_Form_ID"); 52 if (ii == null) return 0; 53 return ii.intValue(); 54 } 55 public void setAD_Process_ID (int AD_Process_ID) 56 { 57 if (AD_Process_ID == 0) setValue ("AD_Process_ID", null); 58 else 59 setValue ("AD_Process_ID", new Integer (AD_Process_ID)); 60 } 61 public int getAD_Process_ID() 62 { 63 Integer ii = (Integer )getValue("AD_Process_ID"); 64 if (ii == null) return 0; 65 return ii.intValue(); 66 } 67 public void setAD_Task_ID (int AD_Task_ID) 68 { 69 if (AD_Task_ID == 0) setValue ("AD_Task_ID", null); 70 else 71 setValue ("AD_Task_ID", new Integer (AD_Task_ID)); 72 } 73 public int getAD_Task_ID() 74 { 75 Integer ii = (Integer )getValue("AD_Task_ID"); 76 if (ii == null) return 0; 77 return ii.intValue(); 78 } 79 public void setAD_Window_ID (int AD_Window_ID) 80 { 81 if (AD_Window_ID == 0) setValue ("AD_Window_ID", null); 82 else 83 setValue ("AD_Window_ID", new Integer (AD_Window_ID)); 84 } 85 public int getAD_Window_ID() 86 { 87 Integer ii = (Integer )getValue("AD_Window_ID"); 88 if (ii == null) return 0; 89 return ii.intValue(); 90 } 91 void setAD_WorkbenchWindow_ID (int AD_WorkbenchWindow_ID) 92 { 93 setValueNoCheck ("AD_WorkbenchWindow_ID", new Integer (AD_WorkbenchWindow_ID)); 94 } 95 public int getAD_WorkbenchWindow_ID() 96 { 97 Integer ii = (Integer )getValue("AD_WorkbenchWindow_ID"); 98 if (ii == null) return 0; 99 return ii.intValue(); 100 } 101 void setAD_Workbench_ID (int AD_Workbench_ID) 102 { 103 setValueNoCheck ("AD_Workbench_ID", new Integer (AD_Workbench_ID)); 104 } 105 public int getAD_Workbench_ID() 106 { 107 Integer ii = (Integer )getValue("AD_Workbench_ID"); 108 if (ii == null) return 0; 109 return ii.intValue(); 110 } 111 public static final String ENTITYTYPE_Dictionary = "D"; 112 public static final String ENTITYTYPE_Compiere = "C"; 113 public static final String ENTITYTYPE_UserMaintained = "U"; 114 public static final String ENTITYTYPE_Applications = "A"; 115 public void setEntityType (String EntityType) 116 { 117 if (EntityType.equals("D") || EntityType.equals("C") || EntityType.equals("U") || EntityType.equals("A")); 118 else throw new IllegalArgumentException ("EntityType Invalid value - Reference_ID=245 - D - C - U - A"); 119 if (EntityType == null) throw new IllegalArgumentException ("EntityType is mandatory"); 120 setValue ("EntityType", EntityType); 121 } 122 public String getEntityType() 123 { 124 return (String )getValue("EntityType"); 125 } 126 public void setIsPrimary (boolean IsPrimary) 127 { 128 setValue ("IsPrimary", new Boolean (IsPrimary)); 129 } 130 public boolean isPrimary() 131 { 132 Boolean bb = (Boolean )getValue("IsPrimary"); 133 if (bb != null) return bb.booleanValue(); 134 return false; 135 } 136 public void setSeqNo (int SeqNo) 137 { 138 setValue ("SeqNo", new Integer (SeqNo)); 139 } 140 public int getSeqNo() 141 { 142 Integer ii = (Integer )getValue("SeqNo"); 143 if (ii == null) return 0; 144 return ii.intValue(); 145 } 146 } 147 | Popular Tags |