KickJava   Java API By Example, From Geeks To Geeks.

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


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_Trace
9  ** @version $Id: X_AD_Trace.java,v 1.27 2003/10/31 05:30:52 jjanke Exp $ **/

10 public class X_AD_Trace extends PO
11 {
12 /** Standard Constructor **/
13 public X_AD_Trace (Properties ctx, int AD_Trace_ID)
14 {
15 super (ctx, AD_Trace_ID);
16 /** if (AD_Trace_ID == 0)
17 {
18 setNo (0);
19 setWhat (null);
20 setWhen (new Timestamp(System.currentTimeMillis()));
21 }
22  **/

23 }
24 /** Load Constructor **/
25 public X_AD_Trace (Properties ctx, ResultSet rs)
26 {
27 super (ctx, rs);
28 }
29 /** Load Meta Data **/
30 protected POInfo initPO (Properties ctx)
31 {
32 int AD_Table_ID = 494;
33 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
34 return poi;
35 }
36 public String JavaDoc toString()
37 {
38 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_AD_Trace[").append(getID()).append("]");
39 return sb.toString();
40 }
41 public void setNo (int No)
42 {
43 setValue ("No", new Integer JavaDoc(No));
44 }
45 public int getNo()
46 {
47 Integer JavaDoc ii = (Integer JavaDoc)getValue("No");
48 if (ii == null) return 0;
49 return ii.intValue();
50 }
51 public void setWhat (String JavaDoc What)
52 {
53 if (What == null) throw new IllegalArgumentException JavaDoc ("What is mandatory");
54 setValue ("What", What);
55 }
56 public String JavaDoc getWhat()
57 {
58 return (String JavaDoc)getValue("What");
59 }
60 public void setWhen (Timestamp When)
61 {
62 if (When == null) throw new IllegalArgumentException JavaDoc ("When is mandatory");
63 setValue ("When", When);
64 }
65 public Timestamp getWhen()
66 {
67 return (Timestamp)getValue("When");
68 }
69 }
70
Popular Tags