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