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_A_Asset_Group extends PO 11 { 12 13 public X_A_Asset_Group (Properties ctx, int A_Asset_Group_ID) 14 { 15 super (ctx, A_Asset_Group_ID); 16 24 } 25 26 public X_A_Asset_Group (Properties ctx, ResultSet rs) 27 { 28 super (ctx, rs); 29 } 30 31 protected POInfo initPO (Properties ctx) 32 { 33 int AD_Table_ID = 542; 34 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 35 return poi; 36 } 37 public String toString() 38 { 39 StringBuffer sb = new StringBuffer ("X_A_Asset_Group[").append(getID()).append("]"); 40 return sb.toString(); 41 } 42 void setA_Asset_Group_ID (int A_Asset_Group_ID) 43 { 44 setValueNoCheck ("A_Asset_Group_ID", new Integer (A_Asset_Group_ID)); 45 } 46 public int getA_Asset_Group_ID() 47 { 48 Integer ii = (Integer )getValue("A_Asset_Group_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 setIsDepreciated (boolean IsDepreciated) 69 { 70 setValue ("IsDepreciated", new Boolean (IsDepreciated)); 71 } 72 public boolean isDepreciated() 73 { 74 Boolean bb = (Boolean )getValue("IsDepreciated"); 75 if (bb != null) return bb.booleanValue(); 76 return false; 77 } 78 public void setIsOwned (boolean IsOwned) 79 { 80 setValue ("IsOwned", new Boolean (IsOwned)); 81 } 82 public boolean isOwned() 83 { 84 Boolean bb = (Boolean )getValue("IsOwned"); 85 if (bb != null) return bb.booleanValue(); 86 return false; 87 } 88 public void setName (String Name) 89 { 90 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 91 setValue ("Name", Name); 92 } 93 public String getName() 94 { 95 return (String )getValue("Name"); 96 } 97 } 98
| Popular Tags
|