KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_C_Year extends PO
11 {
12 /** Standard Constructor **/
13 public X_C_Year (Properties ctx, int C_Year_ID)
14 {
15 super (ctx, C_Year_ID);
16 /** if (C_Year_ID == 0)
17 {
18 setC_Calendar_ID (0);
19 setC_Year_ID (0);
20 setProcessing (null);
21 setYear (null);
22 }
23  **/

24 }
25 /** Load Constructor **/
26 public X_C_Year (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 = 177;
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_C_Year[").append(getID()).append("]");
40 return sb.toString();
41 }
42 void setC_Calendar_ID (int C_Calendar_ID)
43 {
44 setValueNoCheck ("C_Calendar_ID", new Integer JavaDoc(C_Calendar_ID));
45 }
46 public int getC_Calendar_ID()
47 {
48 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Calendar_ID");
49 if (ii == null) return 0;
50 return ii.intValue();
51 }
52 void setC_Year_ID (int C_Year_ID)
53 {
54 setValueNoCheck ("C_Year_ID", new Integer JavaDoc(C_Year_ID));
55 }
56 public int getC_Year_ID()
57 {
58 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Year_ID");
59 if (ii == null) return 0;
60 return ii.intValue();
61 }
62 public void setDescription (String JavaDoc Description)
63 {
64 setValue ("Description", Description);
65 }
66 public String JavaDoc getDescription()
67 {
68 return (String JavaDoc)getValue("Description");
69 }
70 public void setProcessing (String JavaDoc Processing)
71 {
72 if (Processing == null) throw new IllegalArgumentException JavaDoc ("Processing is mandatory");
73 setValue ("Processing", Processing);
74 }
75 public String JavaDoc getProcessing()
76 {
77 return (String JavaDoc)getValue("Processing");
78 }
79 public void setYear (String JavaDoc Year)
80 {
81 if (Year == null) throw new IllegalArgumentException JavaDoc ("Year is mandatory");
82 setValue ("Year", Year);
83 }
84 public String JavaDoc getYear()
85 {
86 return (String JavaDoc)getValue("Year");
87 }
88 }
89
Popular Tags