KickJava   Java API By Example, From Geeks To Geeks.

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


1 package com.dotmarketing.portlets.campaigns.model;
2
3 import java.io.Serializable JavaDoc;
4
5 import com.dotmarketing.beans.Inode;
6
7 /** @author Hibernate CodeGenerator */
8 public class Campaign extends Inode implements Serializable JavaDoc {
9
10     private static final long serialVersionUID = 1L;
11     private String JavaDoc title;
12     private java.util.Date JavaDoc startDate;
13     private java.util.Date JavaDoc completedDate;
14     private String JavaDoc fromEmail;
15     private String JavaDoc fromName;
16     private String JavaDoc subject;
17     private String JavaDoc userId;
18     private String JavaDoc message;
19     private boolean active;
20     private boolean locked;
21     private String JavaDoc sendsPerHour;
22
23     private long communicationInode;
24     private boolean sendEmail;
25
26     /**
27      * @return Returns the communicationInode.
28      */

29     public long getCommunicationInode() {
30         return communicationInode;
31     }
32
33     /**
34      * @param communicationInode The communicationInode to set.
35      */

36     public void setCommunicationInode(long communicationInode) {
37         this.communicationInode = communicationInode;
38     }
39
40     /**
41      * @return Returns the sendEmail.
42      */

43     public boolean isSendEmail() {
44         return sendEmail;
45     }
46
47     /**
48      * @param sendEmail The sendEmail to set.
49      */

50     public void setSendEmail(boolean sendEmail) {
51         this.sendEmail = sendEmail;
52     }
53
54     /**
55      * Returns the completedDate.
56      * @return java.util.Date
57      */

58     public java.util.Date JavaDoc getCompletedDate() {
59         return completedDate;
60     }
61
62     public Campaign() {
63         super.setType("campaign");
64         startDate = new java.util.Date JavaDoc();
65     }
66     /**
67      * Returns the fromEmail.
68      * @return String
69      */

70     public String JavaDoc getFromEmail() {
71         return fromEmail;
72     }
73
74     /**
75      * Returns the message.
76      * @return String
77      */

78     public String JavaDoc getMessage() {
79         return message;
80     }
81
82     /**
83      * Returns the startDate.
84      * @return java.util.Date
85      */

86     public java.util.Date JavaDoc getStartDate() {
87         return startDate;
88     }
89
90     /**
91      * Returns the subject.
92      * @return String
93      */

94     public String JavaDoc getSubject() {
95         return subject;
96     }
97
98     /**
99      * Returns the title.
100      * @return String
101      */

102     public String JavaDoc getTitle() {
103         return title;
104     }
105
106     /**
107      * Returns the userId.
108      * @return String
109      */

110     public String JavaDoc getUserId() {
111         return userId;
112     }
113
114     /**
115      * Sets the completedDate.
116      * @param completedDate The completedDate to set
117      */

118     public void setCompletedDate(java.util.Date JavaDoc completedDate) {
119         this.completedDate = completedDate;
120     }
121
122     /**
123      * Sets the fromEmail.
124      * @param fromEmail The fromEmail to set
125      */

126     public void setFromEmail(String JavaDoc fromEmail) {
127         this.fromEmail = fromEmail;
128     }
129
130     /**
131      * Sets the message.
132      * @param message The message to set
133      */

134     public void setMessage(String JavaDoc message) {
135         this.message = message;
136     }
137
138     /**
139      * Sets the startDate.
140      * @param startDate The startDate to set
141      */

142     public void setStartDate(java.util.Date JavaDoc startDate) {
143         this.startDate = startDate;
144     }
145
146     /**
147      * Sets the subject.
148      * @param subject The subject to set
149      */

150     public void setSubject(String JavaDoc subject) {
151         this.subject = subject;
152     }
153
154     /**
155      * Sets the title.
156      * @param title The title to set
157      */

158     public void setTitle(String JavaDoc title) {
159         this.title = title;
160     }
161
162     /**
163      * Sets the userId.
164      * @param userId The userId to set
165      */

166     public void setUserId(String JavaDoc userId) {
167         this.userId = userId;
168     }
169
170     /**
171      * Returns the active.
172      * @return boolean
173      */

174     public boolean isActive() {
175         return active;
176     }
177
178     /**
179      * Sets the active.
180      * @param active The active to set
181      */

182     public void setActive(boolean active) {
183         this.active = active;
184     }
185
186     /**
187      * Returns the fromName.
188      * @return String
189      */

190     public String JavaDoc getFromName() {
191         return fromName;
192     }
193
194     /**
195      * Sets the fromName.
196      * @param fromName The fromName to set
197      */

198     public void setFromName(String JavaDoc fromName) {
199         this.fromName = fromName;
200     }
201
202     /**
203      * Returns the locked.
204      * @return boolean
205      */

206     public boolean isLocked() {
207         return locked;
208     }
209
210     /**
211      * Sets the locked.
212      * @param locked The locked to set
213      */

214     public void setLocked(boolean locked) {
215         this.locked = locked;
216     }
217
218     public String JavaDoc getSendsPerHour() {
219         return sendsPerHour;
220     }
221
222     public void setSendsPerHour(String JavaDoc sendsPerHour) {
223         this.sendsPerHour = sendsPerHour;
224     }
225
226 }
227
Popular Tags