KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > dotmarketing > portlets > fileUpload > model > FileUpload


1 package com.dotmarketing.portlets.fileUpload.model;
2
3 import java.io.Serializable JavaDoc;
4
5 import org.apache.commons.lang.builder.EqualsBuilder;
6 import org.apache.commons.lang.builder.HashCodeBuilder;
7 import org.apache.commons.lang.builder.ToStringBuilder;
8
9 import com.dotmarketing.beans.Inode;
10
11 /** @author Hibernate CodeGenerator */
12 public class FileUpload extends Inode implements Serializable JavaDoc {
13
14     private static final long serialVersionUID = 1L;
15
16     /** identifier field */
17     private long inode;
18
19     /** nullable persistent field */
20     private String JavaDoc fileName;
21
22     /** nullable persistent field */
23     private long fileSize;
24
25     /** nullable persistent field */
26     private String JavaDoc caption;
27
28     /** nullable persistent field */
29     private int width;
30
31     /** nullable persistent field */
32     private int height;
33
34     /** nullable persistent field */
35     private int sortOrder;
36
37     /** nullable persistent field */
38     private String JavaDoc alignment;
39
40     /** nullable persistent field */
41     private long parent;
42
43     /** nullable persistent field */
44     private long maxsize;
45
46     /** nullable persistent field */
47     private long maxwidth;
48
49     /** nullable persistent field */
50     private long maxheight;
51
52     /** nullable persistent field */
53     private long minheight;
54
55     /** default constructor */
56     public FileUpload() {
57         super.setType("file_upload");
58     }
59
60     public long getInode() {
61         return this.inode;
62     }
63
64     public void setInode(long inode) {
65         this.inode = inode;
66     }
67     public java.lang.String JavaDoc getFileName() {
68         return this.fileName;
69     }
70
71     public void setFileName(java.lang.String JavaDoc fileName) {
72         this.fileName = fileName;
73     }
74     public java.lang.String JavaDoc getCaption() {
75         return this.caption;
76     }
77
78     public void setCaption(java.lang.String JavaDoc caption) {
79         this.caption = caption;
80     }
81     public int getWidth() {
82         return this.width;
83     }
84
85     public void setWidth(int width) {
86         this.width = width;
87     }
88     public int getHeight() {
89         return this.height;
90     }
91
92     public void setHeight(int height) {
93         this.height = height;
94     }
95     public java.lang.String JavaDoc getAlignment() {
96         return this.alignment;
97     }
98
99     public void setAlignment(java.lang.String JavaDoc alignment) {
100         this.alignment = alignment;
101     }
102
103     public String JavaDoc toString() {
104         return ToStringBuilder.reflectionToString(this);
105     }
106
107     public boolean equals(Object JavaDoc other) {
108         if ( !(other instanceof FileUpload) ) return false;
109         FileUpload castOther = (FileUpload) other;
110         return new EqualsBuilder()
111             .append(this.inode, castOther.inode)
112             .isEquals();
113     }
114
115     public int hashCode() {
116         return new HashCodeBuilder()
117             .append(inode)
118             .toHashCode();
119     }
120
121     /**
122      * Returns the sortOrder.
123      * @return int
124      */

125     public int getSortOrder() {
126         return sortOrder;
127     }
128
129     /**
130      * Sets the sortOrder.
131      * @param sortOrder The sortOrder to set
132      */

133     public void setSortOrder(int sortOrder) {
134         this.sortOrder = sortOrder;
135     }
136 /**
137      * Returns the maxheight.
138      * @return long
139      */

140     public long getMaxheight() {
141         return maxheight;
142     }
143
144     /**
145      * Returns the maxsize.
146      * @return long
147      */

148     public long getMaxsize() {
149         return maxsize;
150     }
151
152     /**
153      * Returns the maxwidth.
154      * @return long
155      */

156     public long getMaxwidth() {
157         return maxwidth;
158     }
159
160     /**
161      * Returns the minheight.
162      * @return long
163      */

164     public long getMinheight() {
165         return minheight;
166     }
167
168     /**
169      * Returns the parent.
170      * @return long
171      */

172     public long getParent() {
173         return parent;
174     }
175
176     /**
177      * Sets the maxheight.
178      * @param maxheight The maxheight to set
179      */

180     public void setMaxheight(long maxheight) {
181         this.maxheight = maxheight;
182     }
183
184     /**
185      * Sets the maxsize.
186      * @param maxsize The maxsize to set
187      */

188     public void setMaxsize(long maxsize) {
189         this.maxsize = maxsize;
190     }
191
192     /**
193      * Sets the maxwidth.
194      * @param maxwidth The maxwidth to set
195      */

196     public void setMaxwidth(long maxwidth) {
197         this.maxwidth = maxwidth;
198     }
199
200     /**
201      * Sets the minheight.
202      * @param minheight The minheight to set
203      */

204     public void setMinheight(long minheight) {
205         this.minheight = minheight;
206     }
207
208     /**
209      * Sets the parent.
210      * @param parent The parent to set
211      */

212     public void setParent(long parent) {
213         this.parent = parent;
214     }
215
216
217
218     /**
219      * @return
220      */

221     public long getFileSize() {
222         return fileSize;
223     }
224
225     /**
226      * @param l
227      */

228     public void setFileSize(long l) {
229         fileSize = l;
230     }
231
232 }
233
Popular Tags