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_M_SerNoCtl extends PO 11 { 12 13 public X_M_SerNoCtl (Properties ctx, int M_SerNoCtl_ID) 14 { 15 super (ctx, M_SerNoCtl_ID); 16 25 } 26 27 public X_M_SerNoCtl (Properties ctx, ResultSet rs) 28 { 29 super (ctx, rs); 30 } 31 32 protected POInfo initPO (Properties ctx) 33 { 34 int AD_Table_ID = 555; 35 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 36 return poi; 37 } 38 public String toString() 39 { 40 StringBuffer sb = new StringBuffer ("X_M_SerNoCtl[").append(getID()).append("]"); 41 return sb.toString(); 42 } 43 public void setCurrentNext (int CurrentNext) 44 { 45 setValue ("CurrentNext", new Integer (CurrentNext)); 46 } 47 public int getCurrentNext() 48 { 49 Integer ii = (Integer )getValue("CurrentNext"); 50 if (ii == null) return 0; 51 return ii.intValue(); 52 } 53 public void setDescription (String Description) 54 { 55 setValue ("Description", Description); 56 } 57 public String getDescription() 58 { 59 return (String )getValue("Description"); 60 } 61 public void setIncrementNo (int IncrementNo) 62 { 63 setValue ("IncrementNo", new Integer (IncrementNo)); 64 } 65 public int getIncrementNo() 66 { 67 Integer ii = (Integer )getValue("IncrementNo"); 68 if (ii == null) return 0; 69 return ii.intValue(); 70 } 71 void setM_SerNoCtl_ID (int M_SerNoCtl_ID) 72 { 73 setValueNoCheck ("M_SerNoCtl_ID", new Integer (M_SerNoCtl_ID)); 74 } 75 public int getM_SerNoCtl_ID() 76 { 77 Integer ii = (Integer )getValue("M_SerNoCtl_ID"); 78 if (ii == null) return 0; 79 return ii.intValue(); 80 } 81 public void setName (String Name) 82 { 83 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 84 setValue ("Name", Name); 85 } 86 public String getName() 87 { 88 return (String )getValue("Name"); 89 } 90 public void setPrefix (String Prefix) 91 { 92 setValue ("Prefix", Prefix); 93 } 94 public String getPrefix() 95 { 96 return (String )getValue("Prefix"); 97 } 98 public void setStartNo (int StartNo) 99 { 100 setValue ("StartNo", new Integer (StartNo)); 101 } 102 public int getStartNo() 103 { 104 Integer ii = (Integer )getValue("StartNo"); 105 if (ii == null) return 0; 106 return ii.intValue(); 107 } 108 public void setSuffix (String Suffix) 109 { 110 setValue ("Suffix", Suffix); 111 } 112 public String getSuffix() 113 { 114 return (String )getValue("Suffix"); 115 } 116 } 117 | Popular Tags |