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_UserDef_Field extends PO 11 { 12 13 public X_AD_UserDef_Field (Properties ctx, int AD_UserDef_Field_ID) 14 { 15 super (ctx, AD_UserDef_Field_ID); 16 28 } 29 30 public X_AD_UserDef_Field (Properties ctx, ResultSet rs) 31 { 32 super (ctx, rs); 33 } 34 35 protected POInfo initPO (Properties ctx) 36 { 37 int AD_Table_ID = 464; 38 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 39 return poi; 40 } 41 public String toString() 42 { 43 StringBuffer sb = new StringBuffer ("X_AD_UserDef_Field[").append(getID()).append("]"); 44 return sb.toString(); 45 } 46 public void setAD_Field_ID (int AD_Field_ID) 47 { 48 setValue ("AD_Field_ID", new Integer (AD_Field_ID)); 49 } 50 public int getAD_Field_ID() 51 { 52 Integer ii = (Integer )getValue("AD_Field_ID"); 53 if (ii == null) return 0; 54 return ii.intValue(); 55 } 56 void setAD_UserDef_Field_ID (int AD_UserDef_Field_ID) 57 { 58 setValueNoCheck ("AD_UserDef_Field_ID", new Integer (AD_UserDef_Field_ID)); 59 } 60 public int getAD_UserDef_Field_ID() 61 { 62 Integer ii = (Integer )getValue("AD_UserDef_Field_ID"); 63 if (ii == null) return 0; 64 return ii.intValue(); 65 } 66 void setAD_UserDef_Tab_ID (int AD_UserDef_Tab_ID) 67 { 68 setValueNoCheck ("AD_UserDef_Tab_ID", new Integer (AD_UserDef_Tab_ID)); 69 } 70 public int getAD_UserDef_Tab_ID() 71 { 72 Integer ii = (Integer )getValue("AD_UserDef_Tab_ID"); 73 if (ii == null) return 0; 74 return ii.intValue(); 75 } 76 public void setDescription (String Description) 77 { 78 setValue ("Description", Description); 79 } 80 public String getDescription() 81 { 82 return (String )getValue("Description"); 83 } 84 public void setDisplayLength (int DisplayLength) 85 { 86 setValue ("DisplayLength", new Integer (DisplayLength)); 87 } 88 public int getDisplayLength() 89 { 90 Integer ii = (Integer )getValue("DisplayLength"); 91 if (ii == null) return 0; 92 return ii.intValue(); 93 } 94 public void setDisplayLogic (String DisplayLogic) 95 { 96 setValue ("DisplayLogic", DisplayLogic); 97 } 98 public String getDisplayLogic() 99 { 100 return (String )getValue("DisplayLogic"); 101 } 102 public void setHelp (String Help) 103 { 104 setValue ("Help", Help); 105 } 106 public String getHelp() 107 { 108 return (String )getValue("Help"); 109 } 110 public void setIsDisplayed (boolean IsDisplayed) 111 { 112 setValue ("IsDisplayed", new Boolean (IsDisplayed)); 113 } 114 public boolean isDisplayed() 115 { 116 Boolean bb = (Boolean )getValue("IsDisplayed"); 117 if (bb != null) return bb.booleanValue(); 118 return false; 119 } 120 public void setIsReadOnly (boolean IsReadOnly) 121 { 122 setValue ("IsReadOnly", new Boolean (IsReadOnly)); 123 } 124 public boolean isReadOnly() 125 { 126 Boolean bb = (Boolean )getValue("IsReadOnly"); 127 if (bb != null) return bb.booleanValue(); 128 return false; 129 } 130 public void setIsSameLine (boolean IsSameLine) 131 { 132 setValue ("IsSameLine", new Boolean (IsSameLine)); 133 } 134 public boolean isSameLine() 135 { 136 Boolean bb = (Boolean )getValue("IsSameLine"); 137 if (bb != null) return bb.booleanValue(); 138 return false; 139 } 140 public void setIsUpdateable (boolean IsUpdateable) 141 { 142 setValue ("IsUpdateable", new Boolean (IsUpdateable)); 143 } 144 public boolean isUpdateable() 145 { 146 Boolean bb = (Boolean )getValue("IsUpdateable"); 147 if (bb != null) return bb.booleanValue(); 148 return false; 149 } 150 public void setName (String Name) 151 { 152 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 153 setValue ("Name", Name); 154 } 155 public String getName() 156 { 157 return (String )getValue("Name"); 158 } 159 public void setSeqNo (int SeqNo) 160 { 161 setValue ("SeqNo", new Integer (SeqNo)); 162 } 163 public int getSeqNo() 164 { 165 Integer ii = (Integer )getValue("SeqNo"); 166 if (ii == null) return 0; 167 return ii.intValue(); 168 } 169 public void setSortNo (int SortNo) 170 { 171 setValue ("SortNo", new Integer (SortNo)); 172 } 173 public int getSortNo() 174 { 175 Integer ii = (Integer )getValue("SortNo"); 176 if (ii == null) return 0; 177 return ii.intValue(); 178 } 179 } 180
| Popular Tags
|