KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > dotmarketing > portlets > campaigns > model > Click


1 package com.dotmarketing.portlets.campaigns.model;
2
3 import java.io.Serializable JavaDoc;
4
5 /** @author Hibernate CodeGenerator */
6 public class Click extends com.dotmarketing.beans.Inode implements Serializable JavaDoc {
7
8     private static final long serialVersionUID = 1L;
9
10     /** nullable persistent field */
11     private String JavaDoc link;
12
13     /** nullable persistent field */
14     private int clickCount;
15
16     /** default constructor */
17     public Click() {
18         super.setType("click");
19     }
20
21     public long getInode() {
22         return this.inode;
23     }
24
25
26
27
28
29     public void setInode(long inode) {
30         this.inode = inode;
31     }
32
33     public int getClickCount() {
34         return this.clickCount;
35     }
36
37     public void setClickCount(int clickCount) {
38         this.clickCount = clickCount;
39     }
40     public void setClickCount(Object JavaDoc clickCount) {
41         try {
42             this.clickCount = Integer.parseInt((String JavaDoc) clickCount);
43         } catch (Exception JavaDoc e) {
44         }
45     }
46
47
48     /**
49      * Returns the link.
50      * @return String
51      */

52     public String JavaDoc getLink() {
53         return link;
54     }
55
56     /**
57      * Sets the link.
58      * @param link The link to set
59      */

60     public void setLink(String JavaDoc link) {
61         this.link = link;
62     }
63
64 }
65
Popular Tags