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_R_RequestType extends PO 11 { 12 13 public X_R_RequestType (Properties ctx, int R_RequestType_ID) 14 { 15 super (ctx, R_RequestType_ID); 16 24 } 25 26 public X_R_RequestType (Properties ctx, ResultSet rs) 27 { 28 super (ctx, rs); 29 } 30 31 protected POInfo initPO (Properties ctx) 32 { 33 int AD_Table_ID = 529; 34 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 35 return poi; 36 } 37 public String toString() 38 { 39 StringBuffer sb = new StringBuffer ("X_R_RequestType[").append(getID()).append("]"); 40 return sb.toString(); 41 } 42 public void setDescription (String Description) 43 { 44 setValue ("Description", Description); 45 } 46 public String getDescription() 47 { 48 return (String )getValue("Description"); 49 } 50 public void setIsDefault (boolean IsDefault) 51 { 52 setValue ("IsDefault", new Boolean (IsDefault)); 53 } 54 public boolean isDefault() 55 { 56 Boolean bb = (Boolean )getValue("IsDefault"); 57 if (bb != null) return bb.booleanValue(); 58 return false; 59 } 60 public void setIsSelfService (boolean IsSelfService) 61 { 62 setValue ("IsSelfService", new Boolean (IsSelfService)); 63 } 64 public boolean isSelfService() 65 { 66 Boolean bb = (Boolean )getValue("IsSelfService"); 67 if (bb != null) return bb.booleanValue(); 68 return false; 69 } 70 public void setName (String Name) 71 { 72 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 73 setValue ("Name", Name); 74 } 75 public String getName() 76 { 77 return (String )getValue("Name"); 78 } 79 void setR_RequestType_ID (int R_RequestType_ID) 80 { 81 setValueNoCheck ("R_RequestType_ID", new Integer (R_RequestType_ID)); 82 } 83 public int getR_RequestType_ID() 84 { 85 Integer ii = (Integer )getValue("R_RequestType_ID"); 86 if (ii == null) return 0; 87 return ii.intValue(); 88 } 89 } 90
| Popular Tags
|