KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > compiere > model > X_AD_PrintFont


1 /** Generated Model - DO NOT CHANGE - Copyright (C) 1999-2003 Jorg Janke **/
2 package org.compiere.model;
3 import java.util.*;
4 import java.sql.*;
5 import java.math.*;
6 import java.io.Serializable JavaDoc;
7 import org.compiere.util.*;
8 /** Generated Model for AD_PrintFont
9  ** @version $Id: X_AD_PrintFont.java,v 1.27 2003/10/31 05:30:54 jjanke Exp $ **/

10 public class X_AD_PrintFont extends PO
11 {
12 /** Standard Constructor **/
13 public X_AD_PrintFont (Properties ctx, int AD_PrintFont_ID)
14 {
15 super (ctx, AD_PrintFont_ID);
16 /** if (AD_PrintFont_ID == 0)
17 {
18 setAD_PrintFont_ID (0);
19 setCode (null);
20 setIsDefault (false);
21 setName (null);
22 }
23  **/

24 }
25 /** Load Constructor **/
26 public X_AD_PrintFont (Properties ctx, ResultSet rs)
27 {
28 super (ctx, rs);
29 }
30 /** Load Meta Data **/
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 JavaDoc toString()
38 {
39 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("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 JavaDoc(AD_PrintFont_ID));
45 }
46 public int getAD_PrintFont_ID()
47 {
48 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_PrintFont_ID");
49 if (ii == null) return 0;
50 return ii.intValue();
51 }
52 public void setCode (String JavaDoc Code)
53 {
54 if (Code == null) throw new IllegalArgumentException JavaDoc ("Code is mandatory");
55 setValue ("Code", Code);
56 }
57 public String JavaDoc getCode()
58 {
59 return (String JavaDoc)getValue("Code");
60 }
61 public void setIsDefault (boolean IsDefault)
62 {
63 setValue ("IsDefault", new Boolean JavaDoc(IsDefault));
64 }
65 public boolean isDefault()
66 {
67 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsDefault");
68 if (bb != null) return bb.booleanValue();
69 return false;
70 }
71 public void setName (String JavaDoc Name)
72 {
73 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
74 setValue ("Name", Name);
75 }
76 public String JavaDoc getName()
77 {
78 return (String JavaDoc)getValue("Name");
79 }
80 }
81
Popular Tags