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