KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_W_CounterCount extends PO
11 {
12 /** Standard Constructor **/
13 public X_W_CounterCount (Properties ctx, int W_CounterCount_ID)
14 {
15 super (ctx, W_CounterCount_ID);
16 /** if (W_CounterCount_ID == 0)
17 {
18 setCounter (0);
19 setName (null);
20 setPageURL (null);
21 setW_CounterCount_ID (0);
22 }
23  **/

24 }
25 /** Load Constructor **/
26 public X_W_CounterCount (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 = 552;
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_W_CounterCount[").append(getID()).append("]");
40 return sb.toString();
41 }
42 public void setC_BPartner_ID (int C_BPartner_ID)
43 {
44 if (C_BPartner_ID == 0) setValue ("C_BPartner_ID", null);
45  else
46 setValue ("C_BPartner_ID", new Integer JavaDoc(C_BPartner_ID));
47 }
48 public int getC_BPartner_ID()
49 {
50 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_BPartner_ID");
51 if (ii == null) return 0;
52 return ii.intValue();
53 }
54 public void setCounter (int Counter)
55 {
56 setValue ("Counter", new Integer JavaDoc(Counter));
57 }
58 public int getCounter()
59 {
60 Integer JavaDoc ii = (Integer JavaDoc)getValue("Counter");
61 if (ii == null) return 0;
62 return ii.intValue();
63 }
64 public void setDescription (String JavaDoc Description)
65 {
66 setValue ("Description", Description);
67 }
68 public String JavaDoc getDescription()
69 {
70 return (String JavaDoc)getValue("Description");
71 }
72 public void setName (String JavaDoc Name)
73 {
74 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
75 setValue ("Name", Name);
76 }
77 public String JavaDoc getName()
78 {
79 return (String JavaDoc)getValue("Name");
80 }
81 public void setPageURL (String JavaDoc PageURL)
82 {
83 if (PageURL == null) throw new IllegalArgumentException JavaDoc ("PageURL is mandatory");
84 setValue ("PageURL", PageURL);
85 }
86 public String JavaDoc getPageURL()
87 {
88 return (String JavaDoc)getValue("PageURL");
89 }
90 void setW_CounterCount_ID (int W_CounterCount_ID)
91 {
92 setValueNoCheck ("W_CounterCount_ID", new Integer JavaDoc(W_CounterCount_ID));
93 }
94 public int getW_CounterCount_ID()
95 {
96 Integer JavaDoc ii = (Integer JavaDoc)getValue("W_CounterCount_ID");
97 if (ii == null) return 0;
98 return ii.intValue();
99 }
100 }
101
Popular Tags