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_PrintPaper extends PO 11 { 12 13 public X_AD_PrintPaper (Properties ctx, int AD_PrintPaper_ID) 14 { 15 super (ctx, AD_PrintPaper_ID); 16 29 } 30 31 public X_AD_PrintPaper (Properties ctx, ResultSet rs) 32 { 33 super (ctx, rs); 34 } 35 36 protected POInfo initPO (Properties ctx) 37 { 38 int AD_Table_ID = 492; 39 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 40 return poi; 41 } 42 public String toString() 43 { 44 StringBuffer sb = new StringBuffer ("X_AD_PrintPaper[").append(getID()).append("]"); 45 return sb.toString(); 46 } 47 void setAD_PrintPaper_ID (int AD_PrintPaper_ID) 48 { 49 setValueNoCheck ("AD_PrintPaper_ID", new Integer (AD_PrintPaper_ID)); 50 } 51 public int getAD_PrintPaper_ID() 52 { 53 Integer ii = (Integer )getValue("AD_PrintPaper_ID"); 54 if (ii == null) return 0; 55 return ii.intValue(); 56 } 57 public void setCode (String Code) 58 { 59 if (Code == null) throw new IllegalArgumentException ("Code is mandatory"); 60 setValue ("Code", Code); 61 } 62 public String getCode() 63 { 64 return (String )getValue("Code"); 65 } 66 public void setDescription (String Description) 67 { 68 setValue ("Description", Description); 69 } 70 public String getDescription() 71 { 72 return (String )getValue("Description"); 73 } 74 public void setIsDefault (boolean IsDefault) 75 { 76 setValue ("IsDefault", new Boolean (IsDefault)); 77 } 78 public boolean isDefault() 79 { 80 Boolean bb = (Boolean )getValue("IsDefault"); 81 if (bb != null) return bb.booleanValue(); 82 return false; 83 } 84 public void setIsLandscape (boolean IsLandscape) 85 { 86 setValue ("IsLandscape", new Boolean (IsLandscape)); 87 } 88 public boolean isLandscape() 89 { 90 Boolean bb = (Boolean )getValue("IsLandscape"); 91 if (bb != null) return bb.booleanValue(); 92 return false; 93 } 94 public void setMarginBottom (int MarginBottom) 95 { 96 setValue ("MarginBottom", new Integer (MarginBottom)); 97 } 98 public int getMarginBottom() 99 { 100 Integer ii = (Integer )getValue("MarginBottom"); 101 if (ii == null) return 0; 102 return ii.intValue(); 103 } 104 public void setMarginLeft (int MarginLeft) 105 { 106 setValue ("MarginLeft", new Integer (MarginLeft)); 107 } 108 public int getMarginLeft() 109 { 110 Integer ii = (Integer )getValue("MarginLeft"); 111 if (ii == null) return 0; 112 return ii.intValue(); 113 } 114 public void setMarginRight (int MarginRight) 115 { 116 setValue ("MarginRight", new Integer (MarginRight)); 117 } 118 public int getMarginRight() 119 { 120 Integer ii = (Integer )getValue("MarginRight"); 121 if (ii == null) return 0; 122 return ii.intValue(); 123 } 124 public void setMarginTop (int MarginTop) 125 { 126 setValue ("MarginTop", new Integer (MarginTop)); 127 } 128 public int getMarginTop() 129 { 130 Integer ii = (Integer )getValue("MarginTop"); 131 if (ii == null) return 0; 132 return ii.intValue(); 133 } 134 public void setName (String Name) 135 { 136 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 137 setValue ("Name", Name); 138 } 139 public String getName() 140 { 141 return (String )getValue("Name"); 142 } 143 public void setProcessing (String Processing) 144 { 145 setValue ("Processing", Processing); 146 } 147 public String getProcessing() 148 { 149 return (String )getValue("Processing"); 150 } 151 } 152
| Popular Tags
|