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_C_Cycle extends PO 11 { 12 13 public X_C_Cycle (Properties ctx, int C_Cycle_ID) 14 { 15 super (ctx, C_Cycle_ID); 16 23 } 24 25 public X_C_Cycle (Properties ctx, ResultSet rs) 26 { 27 super (ctx, rs); 28 } 29 30 protected POInfo initPO (Properties ctx) 31 { 32 int AD_Table_ID = 432; 33 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 34 return poi; 35 } 36 public String toString() 37 { 38 StringBuffer sb = new StringBuffer ("X_C_Cycle[").append(getID()).append("]"); 39 return sb.toString(); 40 } 41 public void setC_Currency_ID (int C_Currency_ID) 42 { 43 setValue ("C_Currency_ID", new Integer (C_Currency_ID)); 44 } 45 public int getC_Currency_ID() 46 { 47 Integer ii = (Integer )getValue("C_Currency_ID"); 48 if (ii == null) return 0; 49 return ii.intValue(); 50 } 51 void setC_Cycle_ID (int C_Cycle_ID) 52 { 53 setValueNoCheck ("C_Cycle_ID", new Integer (C_Cycle_ID)); 54 } 55 public int getC_Cycle_ID() 56 { 57 Integer ii = (Integer )getValue("C_Cycle_ID"); 58 if (ii == null) return 0; 59 return ii.intValue(); 60 } 61 public void setDescription (String Description) 62 { 63 setValue ("Description", Description); 64 } 65 public String getDescription() 66 { 67 return (String )getValue("Description"); 68 } 69 public void setName (String Name) 70 { 71 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 72 setValue ("Name", Name); 73 } 74 public String getName() 75 { 76 return (String )getValue("Name"); 77 } 78 } 79 | Popular Tags |