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_Attachment extends PO 11 { 12 13 public X_AD_Attachment (Properties ctx, int AD_Attachment_ID) 14 { 15 super (ctx, AD_Attachment_ID); 16 24 } 25 26 public X_AD_Attachment (Properties ctx, ResultSet rs) 27 { 28 super (ctx, rs); 29 } 30 31 protected POInfo initPO (Properties ctx) 32 { 33 int AD_Table_ID = 254; 34 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 35 return poi; 36 } 37 public String toString() 38 { 39 StringBuffer sb = new StringBuffer ("X_AD_Attachment[").append(getID()).append("]"); 40 return sb.toString(); 41 } 42 void setAD_Attachment_ID (int AD_Attachment_ID) 43 { 44 setValueNoCheck ("AD_Attachment_ID", new Integer (AD_Attachment_ID)); 45 } 46 public int getAD_Attachment_ID() 47 { 48 Integer ii = (Integer )getValue("AD_Attachment_ID"); 49 if (ii == null) return 0; 50 return ii.intValue(); 51 } 52 void setAD_Table_ID (int AD_Table_ID) 53 { 54 setValueNoCheck ("AD_Table_ID", new Integer (AD_Table_ID)); 55 } 56 public int getAD_Table_ID() 57 { 58 Integer ii = (Integer )getValue("AD_Table_ID"); 59 if (ii == null) return 0; 60 return ii.intValue(); 61 } 62 void setBinaryData (Object BinaryData) 63 { 64 setValueNoCheck ("BinaryData", BinaryData); 65 } 66 public Object getBinaryData() 67 { 68 return getValue("BinaryData"); 69 } 70 void setRecord_ID (int Record_ID) 71 { 72 setValueNoCheck ("Record_ID", new Integer (Record_ID)); 73 } 74 public int getRecord_ID() 75 { 76 Integer ii = (Integer )getValue("Record_ID"); 77 if (ii == null) return 0; 78 return ii.intValue(); 79 } 80 public void setText (String Text) 81 { 82 setValue ("Text", Text); 83 } 84 public String getText() 85 { 86 return (String )getValue("Text"); 87 } 88 public void setTitle (String Title) 89 { 90 if (Title == null) throw new IllegalArgumentException ("Title is mandatory"); 91 setValue ("Title", Title); 92 } 93 public String getTitle() 94 { 95 return (String )getValue("Title"); 96 } 97 } 98
| Popular Tags
|