001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.model;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link Image}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       Image
024     * @generated
025     */
026    public class ImageWrapper implements Image, ModelWrapper<Image> {
027            public ImageWrapper(Image image) {
028                    _image = image;
029            }
030    
031            public Class<?> getModelClass() {
032                    return Image.class;
033            }
034    
035            public String getModelClassName() {
036                    return Image.class.getName();
037            }
038    
039            /**
040            * Returns the primary key of this image.
041            *
042            * @return the primary key of this image
043            */
044            public long getPrimaryKey() {
045                    return _image.getPrimaryKey();
046            }
047    
048            /**
049            * Sets the primary key of this image.
050            *
051            * @param primaryKey the primary key of this image
052            */
053            public void setPrimaryKey(long primaryKey) {
054                    _image.setPrimaryKey(primaryKey);
055            }
056    
057            /**
058            * Returns the image ID of this image.
059            *
060            * @return the image ID of this image
061            */
062            public long getImageId() {
063                    return _image.getImageId();
064            }
065    
066            /**
067            * Sets the image ID of this image.
068            *
069            * @param imageId the image ID of this image
070            */
071            public void setImageId(long imageId) {
072                    _image.setImageId(imageId);
073            }
074    
075            /**
076            * Returns the modified date of this image.
077            *
078            * @return the modified date of this image
079            */
080            public java.util.Date getModifiedDate() {
081                    return _image.getModifiedDate();
082            }
083    
084            /**
085            * Sets the modified date of this image.
086            *
087            * @param modifiedDate the modified date of this image
088            */
089            public void setModifiedDate(java.util.Date modifiedDate) {
090                    _image.setModifiedDate(modifiedDate);
091            }
092    
093            /**
094            * Returns the text of this image.
095            *
096            * @return the text of this image
097            */
098            public java.lang.String getText() {
099                    return _image.getText();
100            }
101    
102            /**
103            * Sets the text of this image.
104            *
105            * @param text the text of this image
106            */
107            public void setText(java.lang.String text) {
108                    _image.setText(text);
109            }
110    
111            /**
112            * Returns the type of this image.
113            *
114            * @return the type of this image
115            */
116            public java.lang.String getType() {
117                    return _image.getType();
118            }
119    
120            /**
121            * Sets the type of this image.
122            *
123            * @param type the type of this image
124            */
125            public void setType(java.lang.String type) {
126                    _image.setType(type);
127            }
128    
129            /**
130            * Returns the height of this image.
131            *
132            * @return the height of this image
133            */
134            public int getHeight() {
135                    return _image.getHeight();
136            }
137    
138            /**
139            * Sets the height of this image.
140            *
141            * @param height the height of this image
142            */
143            public void setHeight(int height) {
144                    _image.setHeight(height);
145            }
146    
147            /**
148            * Returns the width of this image.
149            *
150            * @return the width of this image
151            */
152            public int getWidth() {
153                    return _image.getWidth();
154            }
155    
156            /**
157            * Sets the width of this image.
158            *
159            * @param width the width of this image
160            */
161            public void setWidth(int width) {
162                    _image.setWidth(width);
163            }
164    
165            /**
166            * Returns the size of this image.
167            *
168            * @return the size of this image
169            */
170            public int getSize() {
171                    return _image.getSize();
172            }
173    
174            /**
175            * Sets the size of this image.
176            *
177            * @param size the size of this image
178            */
179            public void setSize(int size) {
180                    _image.setSize(size);
181            }
182    
183            public boolean isNew() {
184                    return _image.isNew();
185            }
186    
187            public void setNew(boolean n) {
188                    _image.setNew(n);
189            }
190    
191            public boolean isCachedModel() {
192                    return _image.isCachedModel();
193            }
194    
195            public void setCachedModel(boolean cachedModel) {
196                    _image.setCachedModel(cachedModel);
197            }
198    
199            public boolean isEscapedModel() {
200                    return _image.isEscapedModel();
201            }
202    
203            public java.io.Serializable getPrimaryKeyObj() {
204                    return _image.getPrimaryKeyObj();
205            }
206    
207            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
208                    _image.setPrimaryKeyObj(primaryKeyObj);
209            }
210    
211            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
212                    return _image.getExpandoBridge();
213            }
214    
215            public void setExpandoBridgeAttributes(
216                    com.liferay.portal.service.ServiceContext serviceContext) {
217                    _image.setExpandoBridgeAttributes(serviceContext);
218            }
219    
220            @Override
221            public java.lang.Object clone() {
222                    return new ImageWrapper((Image)_image.clone());
223            }
224    
225            public int compareTo(com.liferay.portal.model.Image image) {
226                    return _image.compareTo(image);
227            }
228    
229            @Override
230            public int hashCode() {
231                    return _image.hashCode();
232            }
233    
234            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.Image> toCacheModel() {
235                    return _image.toCacheModel();
236            }
237    
238            public com.liferay.portal.model.Image toEscapedModel() {
239                    return new ImageWrapper(_image.toEscapedModel());
240            }
241    
242            @Override
243            public java.lang.String toString() {
244                    return _image.toString();
245            }
246    
247            public java.lang.String toXmlString() {
248                    return _image.toXmlString();
249            }
250    
251            public void persist()
252                    throws com.liferay.portal.kernel.exception.SystemException {
253                    _image.persist();
254            }
255    
256            public byte[] getTextObj() {
257                    return _image.getTextObj();
258            }
259    
260            public void setTextObj(byte[] textObj) {
261                    _image.setTextObj(textObj);
262            }
263    
264            /**
265             * @deprecated Renamed to {@link #getWrappedModel}
266             */
267            public Image getWrappedImage() {
268                    return _image;
269            }
270    
271            public Image getWrappedModel() {
272                    return _image;
273            }
274    
275            public void resetOriginalValues() {
276                    _image.resetOriginalValues();
277            }
278    
279            private Image _image;
280    }