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_Activity extends PO 11 { 12 13 public X_C_Activity (Properties ctx, int C_Activity_ID) 14 { 15 super (ctx, C_Activity_ID); 16 24 } 25 26 public X_C_Activity (Properties ctx, ResultSet rs) 27 { 28 super (ctx, rs); 29 } 30 31 protected POInfo initPO (Properties ctx) 32 { 33 int AD_Table_ID = 316; 34 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 35 return poi; 36 } 37 public String toString() 38 { 39 StringBuffer sb = new StringBuffer ("X_C_Activity[").append(getID()).append("]"); 40 return sb.toString(); 41 } 42 void setC_Activity_ID (int C_Activity_ID) 43 { 44 setValueNoCheck ("C_Activity_ID", new Integer (C_Activity_ID)); 45 } 46 public int getC_Activity_ID() 47 { 48 Integer ii = (Integer )getValue("C_Activity_ID"); 49 if (ii == null) return 0; 50 return ii.intValue(); 51 } 52 public void setDescription (String Description) 53 { 54 setValue ("Description", Description); 55 } 56 public String getDescription() 57 { 58 return (String )getValue("Description"); 59 } 60 public void setHelp (String Help) 61 { 62 setValue ("Help", Help); 63 } 64 public String getHelp() 65 { 66 return (String )getValue("Help"); 67 } 68 public void setIsSummary (boolean IsSummary) 69 { 70 setValue ("IsSummary", new Boolean (IsSummary)); 71 } 72 public boolean isSummary() 73 { 74 Boolean bb = (Boolean )getValue("IsSummary"); 75 if (bb != null) return bb.booleanValue(); 76 return false; 77 } 78 public void setName (String Name) 79 { 80 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 81 setValue ("Name", Name); 82 } 83 public String getName() 84 { 85 return (String )getValue("Name"); 86 } 87 public void setValue (String Value) 88 { 89 if (Value == null) throw new IllegalArgumentException ("Value is mandatory"); 90 setValue ("Value", Value); 91 } 92 public String getValue() 93 { 94 return (String )getValue("Value"); 95 } 96 } 97 | Popular Tags |