KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > dotmarketing > portlets > banners > model > Banner


1 package com.dotmarketing.portlets.banners.model;
2
3 import java.io.Serializable JavaDoc;
4
5 import org.apache.commons.lang.builder.ToStringBuilder;
6
7 import com.dotmarketing.beans.Inode;
8
9 /** @author Hibernate CodeGenerator */
10 public class Banner extends Inode implements Serializable JavaDoc {
11
12     private String JavaDoc[] categories;
13
14     /** identifier field */
15     private long parent;
16
17     /** nullable persistent field */
18     private String JavaDoc title;
19
20     /** nullable persistent field */
21     private String JavaDoc caption;
22
23     /** nullable persistent field */
24     private String JavaDoc imageFile;
25
26     /** nullable persistent field */
27     private int imageWidth;
28
29     /** nullable persistent field */
30     private int imageHeight;
31
32     /** nullable persistent field */
33     private String JavaDoc altText;
34
35     /** nullable persistent field */
36     private boolean newWindow;
37
38     /** nullable persistent field */
39     private String JavaDoc link;
40
41     /** nullable persistent field */
42     private java.util.Date JavaDoc startDate;
43
44     /** nullable persistent field */
45     private java.util.Date JavaDoc endDate;
46
47     /** nullable persistent field */
48     private String JavaDoc body;
49
50     /** nullable persistent field */
51     private boolean active;
52
53     /** nullable persistent field */
54     private int nmbrViews;
55
56     /** nullable persistent field */
57     private int nmbrClicks;
58
59     /** nullable persistent field */
60     private long image;
61
62     /** nullable persistent field */
63     private long htmlpage;
64     
65     /** nullable persistent field */
66     private String JavaDoc path;
67     
68     /** nullable persistent field */
69     private String JavaDoc placement;
70
71     
72     /** default constructor */
73     public Banner() {
74         this.setType("Banner");
75         startDate = new java.util.Date JavaDoc();
76         endDate = new java.util.Date JavaDoc();
77     }
78
79     /**
80      * @return Returns the path.
81      */

82     public String JavaDoc getPath() {
83         return path;
84     }
85     /**
86      * @param path The path to set.
87      */

88     public void setPath(String JavaDoc path) {
89         this.path = path;
90     }
91     /**
92      * @return Returns the placement.
93      */

94     public String JavaDoc getPlacement() {
95         return placement;
96     }
97     /**
98      * @param placement The placement to set.
99      */

100     public void setPlacement(String JavaDoc placement) {
101         this.placement = placement;
102     }
103     public java.lang.String JavaDoc getTitle() {
104         return this.title;
105     }
106
107     public void setTitle(java.lang.String JavaDoc title) {
108         this.title = title;
109     }
110     public java.lang.String JavaDoc getImageFile() {
111         return this.imageFile;
112     }
113
114     public void setImageFile(java.lang.String JavaDoc imageFile) {
115         this.imageFile = imageFile;
116     }
117     public int getImageWidth() {
118         return this.imageWidth;
119     }
120
121     public void setImageWidth(int imageWidth) {
122         this.imageWidth = imageWidth;
123     }
124     public int getImageHeight() {
125         return this.imageHeight;
126     }
127
128     public void setImageHeight(int imageHeight) {
129         this.imageHeight = imageHeight;
130     }
131     public java.lang.String JavaDoc getAltText() {
132         return this.altText;
133     }
134
135     public void setAltText(java.lang.String JavaDoc altText) {
136         this.altText = altText;
137     }
138
139
140
141     public java.lang.String JavaDoc getLink() {
142         return this.link;
143     }
144
145     public void setLink(java.lang.String JavaDoc link) {
146         this.link = link;
147     }
148     public java.util.Date JavaDoc getStartDate() {
149         return this.startDate;
150     }
151
152     public void setStartDate(java.util.Date JavaDoc startDate) {
153         this.startDate = startDate;
154     }
155     public java.util.Date JavaDoc getEndDate() {
156         return this.endDate;
157     }
158
159     public void setEndDate(java.util.Date JavaDoc endDate) {
160         this.endDate = endDate;
161     }
162     public java.lang.String JavaDoc getBody() {
163         return this.body;
164     }
165
166     public void setBody(java.lang.String JavaDoc body) {
167         this.body = body;
168     }
169
170
171     public int getNmbrViews() {
172         return this.nmbrViews;
173     }
174
175     public void setNmbrViews(int nmbrViews) {
176         this.nmbrViews = nmbrViews;
177     }
178     public int getNmbrClicks() {
179         return this.nmbrClicks;
180     }
181
182     public void setNmbrClicks(int nmbrClicks) {
183         this.nmbrClicks = nmbrClicks;
184     }
185
186     public String JavaDoc toString() {
187         return ToStringBuilder.reflectionToString(this);
188     }
189
190
191     /**
192      * Returns the active.
193      * @return boolean
194      */

195     public boolean isActive() {
196         return active;
197     }
198
199     /**
200      * Returns the newWindow.
201      * @return boolean
202      */

203     public boolean isNewWindow() {
204         return newWindow;
205     }
206
207     /**
208      * Sets the active.
209      * @param active The active to set
210      */

211     public void setActive(boolean active) {
212         this.active = active;
213     }
214
215     /**
216      * Sets the newWindow.
217      * @param newWindow The newWindow to set
218      */

219     public void setNewWindow(boolean newWindow) {
220         this.newWindow = newWindow;
221     }
222
223     /**
224      * Returns the inode.
225      * @return long
226      */

227     public long getInode() {
228         return inode;
229     }
230
231     /**
232      * Sets the inode.
233      * @param inode The inode to set
234      */

235     public void setInode(long inode) {
236         this.inode = inode;
237     }
238
239     /**
240      * Returns the categories.
241      * @return String[]
242      */

243     public String JavaDoc[] getCategories() {
244         return categories;
245     }
246
247     /**
248      * Sets the categories.
249      * @param categories The categories to set
250      */

251     public void setCategories(String JavaDoc[] categories) {
252         this.categories = categories;
253     }
254
255     /**
256      * Returns the caption.
257      * @return String
258      */

259     public String JavaDoc getCaption() {
260         return caption;
261     }
262
263     /**
264      * Sets the caption.
265      * @param caption The caption to set
266      */

267     public void setCaption(String JavaDoc caption) {
268         this.caption = caption;
269     }
270
271     /**
272      * @return Returns the image.
273      */

274     public long getImage() {
275         return image;
276     }
277     /**
278      * @param image The image to set.
279      */

280     public void setImage(long image) {
281         this.image = image;
282     }
283     /**
284      * @return Returns the parent.
285      */

286     public long getParent() {
287         return parent;
288     }
289     /**
290      * @param parent The parent to set.
291      */

292     public void setParent(long parent) {
293         this.parent = parent;
294     }
295     
296     /**
297      * @return Returns the htmlpage.
298      */

299     public long getHtmlpage() {
300         return htmlpage;
301     }
302     /**
303      * @param htmlpage The htmlpage to set.
304      */

305     public void setHtmlpage(long htmlpage) {
306         this.htmlpage = htmlpage;
307     }
308 }
309
Popular Tags