KickJava   Java API By Example, From Geeks To Geeks.

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


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 S_ResourceUnAvailable
9  ** @version $Id: X_S_ResourceUnAvailable.java,v 1.26 2003/10/31 05:30:54 jjanke Exp $ **/

10 public class X_S_ResourceUnAvailable extends PO
11 {
12 /** Standard Constructor **/
13 public X_S_ResourceUnAvailable (Properties ctx, int S_ResourceUnAvailable_ID)
14 {
15 super (ctx, S_ResourceUnAvailable_ID);
16 /** if (S_ResourceUnAvailable_ID == 0)
17 {
18 setDateFrom (new Timestamp(System.currentTimeMillis()));
19 setS_ResourceUnAvailable_ID (0);
20 setS_Resource_ID (0);
21 }
22  **/

23 }
24 /** Load Constructor **/
25 public X_S_ResourceUnAvailable (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 = 482;
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_S_ResourceUnAvailable[").append(getID()).append("]");
39 return sb.toString();
40 }
41 public void setDateFrom (Timestamp DateFrom)
42 {
43 if (DateFrom == null) throw new IllegalArgumentException JavaDoc ("DateFrom is mandatory");
44 setValue ("DateFrom", DateFrom);
45 }
46 public Timestamp getDateFrom()
47 {
48 return (Timestamp)getValue("DateFrom");
49 }
50 public void setDateTo (Timestamp DateTo)
51 {
52 setValue ("DateTo", DateTo);
53 }
54 public Timestamp getDateTo()
55 {
56 return (Timestamp)getValue("DateTo");
57 }
58 public void setDescription (String JavaDoc Description)
59 {
60 setValue ("Description", Description);
61 }
62 public String JavaDoc getDescription()
63 {
64 return (String JavaDoc)getValue("Description");
65 }
66 void setS_ResourceUnAvailable_ID (int S_ResourceUnAvailable_ID)
67 {
68 setValueNoCheck ("S_ResourceUnAvailable_ID", new Integer JavaDoc(S_ResourceUnAvailable_ID));
69 }
70 public int getS_ResourceUnAvailable_ID()
71 {
72 Integer JavaDoc ii = (Integer JavaDoc)getValue("S_ResourceUnAvailable_ID");
73 if (ii == null) return 0;
74 return ii.intValue();
75 }
76 void setS_Resource_ID (int S_Resource_ID)
77 {
78 setValueNoCheck ("S_Resource_ID", new Integer JavaDoc(S_Resource_ID));
79 }
80 public int getS_Resource_ID()
81 {
82 Integer JavaDoc ii = (Integer JavaDoc)getValue("S_Resource_ID");
83 if (ii == null) return 0;
84 return ii.intValue();
85 }
86 }
87
Popular Tags