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_PrintFont extends PO 11 { 12 13 public X_AD_PrintFont (Properties ctx, int AD_PrintFont_ID) 14 { 15 super (ctx, AD_PrintFont_ID); 16 24 } 25 26 public X_AD_PrintFont (Properties ctx, ResultSet rs) 27 { 28 super (ctx, rs); 29 } 30 31 protected POInfo initPO (Properties ctx) 32 { 33 int AD_Table_ID = 491; 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_PrintFont[").append(getID()).append("]"); 40 return sb.toString(); 41 } 42 void setAD_PrintFont_ID (int AD_PrintFont_ID) 43 { 44 setValueNoCheck ("AD_PrintFont_ID", new Integer (AD_PrintFont_ID)); 45 } 46 public int getAD_PrintFont_ID() 47 { 48 Integer ii = (Integer )getValue("AD_PrintFont_ID"); 49 if (ii == null) return 0; 50 return ii.intValue(); 51 } 52 public void setCode (String Code) 53 { 54 if (Code == null) throw new IllegalArgumentException ("Code is mandatory"); 55 setValue ("Code", Code); 56 } 57 public String getCode() 58 { 59 return (String )getValue("Code"); 60 } 61 public void setIsDefault (boolean IsDefault) 62 { 63 setValue ("IsDefault", new Boolean (IsDefault)); 64 } 65 public boolean isDefault() 66 { 67 Boolean bb = (Boolean )getValue("IsDefault"); 68 if (bb != null) return bb.booleanValue(); 69 return false; 70 } 71 public void setName (String Name) 72 { 73 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 74 setValue ("Name", Name); 75 } 76 public String getName() 77 { 78 return (String )getValue("Name"); 79 } 80 } 81
| Popular Tags
|