KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_S_TimeType extends PO
11 {
12 /** Standard Constructor **/
13 public X_S_TimeType (Properties ctx, int S_TimeType_ID)
14 {
15 super (ctx, S_TimeType_ID);
16 /** if (S_TimeType_ID == 0)
17 {
18 setName (null);
19 setS_TimeType_ID (0);
20 }
21  **/

22 }
23 /** Load Constructor **/
24 public X_S_TimeType (Properties ctx, ResultSet rs)
25 {
26 super (ctx, rs);
27 }
28 /** Load Meta Data **/
29 protected POInfo initPO (Properties ctx)
30 {
31 int AD_Table_ID = 581;
32 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
33 return poi;
34 }
35 public String JavaDoc toString()
36 {
37 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_S_TimeType[").append(getID()).append("]");
38 return sb.toString();
39 }
40 public void setDescription (String JavaDoc Description)
41 {
42 setValue ("Description", Description);
43 }
44 public String JavaDoc getDescription()
45 {
46 return (String JavaDoc)getValue("Description");
47 }
48 public void setHelp (String JavaDoc Help)
49 {
50 setValue ("Help", Help);
51 }
52 public String JavaDoc getHelp()
53 {
54 return (String JavaDoc)getValue("Help");
55 }
56 public void setName (String JavaDoc Name)
57 {
58 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
59 setValue ("Name", Name);
60 }
61 public String JavaDoc getName()
62 {
63 return (String JavaDoc)getValue("Name");
64 }
65 void setS_TimeType_ID (int S_TimeType_ID)
66 {
67 setValueNoCheck ("S_TimeType_ID", new Integer JavaDoc(S_TimeType_ID));
68 }
69 public int getS_TimeType_ID()
70 {
71 Integer JavaDoc ii = (Integer JavaDoc)getValue("S_TimeType_ID");
72 if (ii == null) return 0;
73 return ii.intValue();
74 }
75 }
76
Popular Tags