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_ImpFormat extends PO 11 { 12 13 public X_AD_ImpFormat (Properties ctx, int AD_ImpFormat_ID) 14 { 15 super (ctx, AD_ImpFormat_ID); 16 25 } 26 27 public X_AD_ImpFormat (Properties ctx, ResultSet rs) 28 { 29 super (ctx, rs); 30 } 31 32 protected POInfo initPO (Properties ctx) 33 { 34 int AD_Table_ID = 381; 35 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 36 return poi; 37 } 38 public String toString() 39 { 40 StringBuffer sb = new StringBuffer ("X_AD_ImpFormat[").append(getID()).append("]"); 41 return sb.toString(); 42 } 43 void setAD_ImpFormat_ID (int AD_ImpFormat_ID) 44 { 45 setValueNoCheck ("AD_ImpFormat_ID", new Integer (AD_ImpFormat_ID)); 46 } 47 public int getAD_ImpFormat_ID() 48 { 49 Integer ii = (Integer )getValue("AD_ImpFormat_ID"); 50 if (ii == null) return 0; 51 return ii.intValue(); 52 } 53 public void setAD_Table_ID (int AD_Table_ID) 54 { 55 setValue ("AD_Table_ID", new Integer (AD_Table_ID)); 56 } 57 public int getAD_Table_ID() 58 { 59 Integer ii = (Integer )getValue("AD_Table_ID"); 60 if (ii == null) return 0; 61 return ii.intValue(); 62 } 63 public void setDescription (String Description) 64 { 65 setValue ("Description", Description); 66 } 67 public String getDescription() 68 { 69 return (String )getValue("Description"); 70 } 71 public static final String FORMATTYPE_FixedPosition = "F"; 72 public static final String FORMATTYPE_CommaSeparated = "C"; 73 public static final String FORMATTYPE_TabSeparated = "T"; 74 public static final String FORMATTYPE_XML = "X"; 75 public void setFormatType (String FormatType) 76 { 77 if (FormatType.equals("F") || FormatType.equals("C") || FormatType.equals("T") || FormatType.equals("X")); 78 else throw new IllegalArgumentException ("FormatType Invalid value - Reference_ID=209 - F - C - T - X"); 79 if (FormatType == null) throw new IllegalArgumentException ("FormatType is mandatory"); 80 setValue ("FormatType", FormatType); 81 } 82 public String getFormatType() 83 { 84 return (String )getValue("FormatType"); 85 } 86 public void setName (String Name) 87 { 88 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 89 setValue ("Name", Name); 90 } 91 public String getName() 92 { 93 return (String )getValue("Name"); 94 } 95 public void setProcessing (String Processing) 96 { 97 if (Processing == null) throw new IllegalArgumentException ("Processing is mandatory"); 98 setValue ("Processing", Processing); 99 } 100 public String getProcessing() 101 { 102 return (String )getValue("Processing"); 103 } 104 } 105
| Popular Tags
|