KickJava   Java API By Example, From Geeks To Geeks.

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


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

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

24 }
25 /** Load Constructor **/
26 public X_W_ClickCount (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 = 553;
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_ClickCount[").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 setTargetURL (String JavaDoc TargetURL)
82 {
83 if (TargetURL == null) throw new IllegalArgumentException JavaDoc ("TargetURL is mandatory");
84 setValue ("TargetURL", TargetURL);
85 }
86 public String JavaDoc getTargetURL()
87 {
88 return (String JavaDoc)getValue("TargetURL");
89 }
90 void setW_ClickCount_ID (int W_ClickCount_ID)
91 {
92 setValueNoCheck ("W_ClickCount_ID", new Integer JavaDoc(W_ClickCount_ID));
93 }
94 public int getW_ClickCount_ID()
95 {
96 Integer JavaDoc ii = (Integer JavaDoc)getValue("W_ClickCount_ID");
97 if (ii == null) return 0;
98 return ii.intValue();
99 }
100 }
101
Popular Tags