KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > compiere > model > X_AD_Attachment


1 /** Generated Model - DO NOT CHANGE - Copyright (C) 1999-2003 Jorg Janke **/
2 package org.compiere.model;
3 import java.util.*;
4 import java.sql.*;
5 import java.math.*;
6 import java.io.Serializable JavaDoc;
7 import org.compiere.util.*;
8 /** Generated Model for AD_Attachment
9  ** @version $Id: X_AD_Attachment.java,v 1.27 2003/10/31 05:30:54 jjanke Exp $ **/

10 public class X_AD_Attachment extends PO
11 {
12 /** Standard Constructor **/
13 public X_AD_Attachment (Properties ctx, int AD_Attachment_ID)
14 {
15 super (ctx, AD_Attachment_ID);
16 /** if (AD_Attachment_ID == 0)
17 {
18 setAD_Attachment_ID (0);
19 setAD_Table_ID (0);
20 setRecord_ID (0);
21 setTitle (null);
22 }
23  **/

24 }
25 /** Load Constructor **/
26 public X_AD_Attachment (Properties ctx, ResultSet rs)
27 {
28 super (ctx, rs);
29 }
30 /** Load Meta Data **/
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 JavaDoc toString()
38 {
39 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("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 JavaDoc(AD_Attachment_ID));
45 }
46 public int getAD_Attachment_ID()
47 {
48 Integer JavaDoc ii = (Integer JavaDoc)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 JavaDoc(AD_Table_ID));
55 }
56 public int getAD_Table_ID()
57 {
58 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_Table_ID");
59 if (ii == null) return 0;
60 return ii.intValue();
61 }
62 void setBinaryData (Object JavaDoc BinaryData)
63 {
64 setValueNoCheck ("BinaryData", BinaryData);
65 }
66 public Object JavaDoc getBinaryData()
67 {
68 return getValue("BinaryData");
69 }
70 void setRecord_ID (int Record_ID)
71 {
72 setValueNoCheck ("Record_ID", new Integer JavaDoc(Record_ID));
73 }
74 public int getRecord_ID()
75 {
76 Integer JavaDoc ii = (Integer JavaDoc)getValue("Record_ID");
77 if (ii == null) return 0;
78 return ii.intValue();
79 }
80 public void setText (String JavaDoc Text)
81 {
82 setValue ("Text", Text);
83 }
84 public String JavaDoc getText()
85 {
86 return (String JavaDoc)getValue("Text");
87 }
88 public void setTitle (String JavaDoc Title)
89 {
90 if (Title == null) throw new IllegalArgumentException JavaDoc ("Title is mandatory");
91 setValue ("Title", Title);
92 }
93 public String JavaDoc getTitle()
94 {
95 return (String JavaDoc)getValue("Title");
96 }
97 }
98
Popular Tags