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.portlet.documentlibrary.model;
016    
017    import com.liferay.portal.model.ModelWrapper;
018    
019    import java.util.Date;
020    import java.util.HashMap;
021    import java.util.Map;
022    
023    /**
024     * <p>
025     * This class is a wrapper for {@link DLFileRank}.
026     * </p>
027     *
028     * @author    Brian Wing Shun Chan
029     * @see       DLFileRank
030     * @generated
031     */
032    public class DLFileRankWrapper implements DLFileRank, ModelWrapper<DLFileRank> {
033            public DLFileRankWrapper(DLFileRank dlFileRank) {
034                    _dlFileRank = dlFileRank;
035            }
036    
037            public Class<?> getModelClass() {
038                    return DLFileRank.class;
039            }
040    
041            public String getModelClassName() {
042                    return DLFileRank.class.getName();
043            }
044    
045            public Map<String, Object> getModelAttributes() {
046                    Map<String, Object> attributes = new HashMap<String, Object>();
047    
048                    attributes.put("fileRankId", getFileRankId());
049                    attributes.put("groupId", getGroupId());
050                    attributes.put("companyId", getCompanyId());
051                    attributes.put("userId", getUserId());
052                    attributes.put("createDate", getCreateDate());
053                    attributes.put("fileEntryId", getFileEntryId());
054                    attributes.put("active", getActive());
055    
056                    return attributes;
057            }
058    
059            public void setModelAttributes(Map<String, Object> attributes) {
060                    Long fileRankId = (Long)attributes.get("fileRankId");
061    
062                    if (fileRankId != null) {
063                            setFileRankId(fileRankId);
064                    }
065    
066                    Long groupId = (Long)attributes.get("groupId");
067    
068                    if (groupId != null) {
069                            setGroupId(groupId);
070                    }
071    
072                    Long companyId = (Long)attributes.get("companyId");
073    
074                    if (companyId != null) {
075                            setCompanyId(companyId);
076                    }
077    
078                    Long userId = (Long)attributes.get("userId");
079    
080                    if (userId != null) {
081                            setUserId(userId);
082                    }
083    
084                    Date createDate = (Date)attributes.get("createDate");
085    
086                    if (createDate != null) {
087                            setCreateDate(createDate);
088                    }
089    
090                    Long fileEntryId = (Long)attributes.get("fileEntryId");
091    
092                    if (fileEntryId != null) {
093                            setFileEntryId(fileEntryId);
094                    }
095    
096                    Boolean active = (Boolean)attributes.get("active");
097    
098                    if (active != null) {
099                            setActive(active);
100                    }
101            }
102    
103            /**
104            * Returns the primary key of this document library file rank.
105            *
106            * @return the primary key of this document library file rank
107            */
108            public long getPrimaryKey() {
109                    return _dlFileRank.getPrimaryKey();
110            }
111    
112            /**
113            * Sets the primary key of this document library file rank.
114            *
115            * @param primaryKey the primary key of this document library file rank
116            */
117            public void setPrimaryKey(long primaryKey) {
118                    _dlFileRank.setPrimaryKey(primaryKey);
119            }
120    
121            /**
122            * Returns the file rank ID of this document library file rank.
123            *
124            * @return the file rank ID of this document library file rank
125            */
126            public long getFileRankId() {
127                    return _dlFileRank.getFileRankId();
128            }
129    
130            /**
131            * Sets the file rank ID of this document library file rank.
132            *
133            * @param fileRankId the file rank ID of this document library file rank
134            */
135            public void setFileRankId(long fileRankId) {
136                    _dlFileRank.setFileRankId(fileRankId);
137            }
138    
139            /**
140            * Returns the group ID of this document library file rank.
141            *
142            * @return the group ID of this document library file rank
143            */
144            public long getGroupId() {
145                    return _dlFileRank.getGroupId();
146            }
147    
148            /**
149            * Sets the group ID of this document library file rank.
150            *
151            * @param groupId the group ID of this document library file rank
152            */
153            public void setGroupId(long groupId) {
154                    _dlFileRank.setGroupId(groupId);
155            }
156    
157            /**
158            * Returns the company ID of this document library file rank.
159            *
160            * @return the company ID of this document library file rank
161            */
162            public long getCompanyId() {
163                    return _dlFileRank.getCompanyId();
164            }
165    
166            /**
167            * Sets the company ID of this document library file rank.
168            *
169            * @param companyId the company ID of this document library file rank
170            */
171            public void setCompanyId(long companyId) {
172                    _dlFileRank.setCompanyId(companyId);
173            }
174    
175            /**
176            * Returns the user ID of this document library file rank.
177            *
178            * @return the user ID of this document library file rank
179            */
180            public long getUserId() {
181                    return _dlFileRank.getUserId();
182            }
183    
184            /**
185            * Sets the user ID of this document library file rank.
186            *
187            * @param userId the user ID of this document library file rank
188            */
189            public void setUserId(long userId) {
190                    _dlFileRank.setUserId(userId);
191            }
192    
193            /**
194            * Returns the user uuid of this document library file rank.
195            *
196            * @return the user uuid of this document library file rank
197            * @throws SystemException if a system exception occurred
198            */
199            public java.lang.String getUserUuid()
200                    throws com.liferay.portal.kernel.exception.SystemException {
201                    return _dlFileRank.getUserUuid();
202            }
203    
204            /**
205            * Sets the user uuid of this document library file rank.
206            *
207            * @param userUuid the user uuid of this document library file rank
208            */
209            public void setUserUuid(java.lang.String userUuid) {
210                    _dlFileRank.setUserUuid(userUuid);
211            }
212    
213            /**
214            * Returns the create date of this document library file rank.
215            *
216            * @return the create date of this document library file rank
217            */
218            public java.util.Date getCreateDate() {
219                    return _dlFileRank.getCreateDate();
220            }
221    
222            /**
223            * Sets the create date of this document library file rank.
224            *
225            * @param createDate the create date of this document library file rank
226            */
227            public void setCreateDate(java.util.Date createDate) {
228                    _dlFileRank.setCreateDate(createDate);
229            }
230    
231            /**
232            * Returns the file entry ID of this document library file rank.
233            *
234            * @return the file entry ID of this document library file rank
235            */
236            public long getFileEntryId() {
237                    return _dlFileRank.getFileEntryId();
238            }
239    
240            /**
241            * Sets the file entry ID of this document library file rank.
242            *
243            * @param fileEntryId the file entry ID of this document library file rank
244            */
245            public void setFileEntryId(long fileEntryId) {
246                    _dlFileRank.setFileEntryId(fileEntryId);
247            }
248    
249            /**
250            * Returns the active of this document library file rank.
251            *
252            * @return the active of this document library file rank
253            */
254            public boolean getActive() {
255                    return _dlFileRank.getActive();
256            }
257    
258            /**
259            * Returns <code>true</code> if this document library file rank is active.
260            *
261            * @return <code>true</code> if this document library file rank is active; <code>false</code> otherwise
262            */
263            public boolean isActive() {
264                    return _dlFileRank.isActive();
265            }
266    
267            /**
268            * Sets whether this document library file rank is active.
269            *
270            * @param active the active of this document library file rank
271            */
272            public void setActive(boolean active) {
273                    _dlFileRank.setActive(active);
274            }
275    
276            public boolean isNew() {
277                    return _dlFileRank.isNew();
278            }
279    
280            public void setNew(boolean n) {
281                    _dlFileRank.setNew(n);
282            }
283    
284            public boolean isCachedModel() {
285                    return _dlFileRank.isCachedModel();
286            }
287    
288            public void setCachedModel(boolean cachedModel) {
289                    _dlFileRank.setCachedModel(cachedModel);
290            }
291    
292            public boolean isEscapedModel() {
293                    return _dlFileRank.isEscapedModel();
294            }
295    
296            public java.io.Serializable getPrimaryKeyObj() {
297                    return _dlFileRank.getPrimaryKeyObj();
298            }
299    
300            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
301                    _dlFileRank.setPrimaryKeyObj(primaryKeyObj);
302            }
303    
304            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
305                    return _dlFileRank.getExpandoBridge();
306            }
307    
308            public void setExpandoBridgeAttributes(
309                    com.liferay.portal.service.ServiceContext serviceContext) {
310                    _dlFileRank.setExpandoBridgeAttributes(serviceContext);
311            }
312    
313            @Override
314            public java.lang.Object clone() {
315                    return new DLFileRankWrapper((DLFileRank)_dlFileRank.clone());
316            }
317    
318            public int compareTo(
319                    com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank) {
320                    return _dlFileRank.compareTo(dlFileRank);
321            }
322    
323            @Override
324            public int hashCode() {
325                    return _dlFileRank.hashCode();
326            }
327    
328            public com.liferay.portal.model.CacheModel<com.liferay.portlet.documentlibrary.model.DLFileRank> toCacheModel() {
329                    return _dlFileRank.toCacheModel();
330            }
331    
332            public com.liferay.portlet.documentlibrary.model.DLFileRank toEscapedModel() {
333                    return new DLFileRankWrapper(_dlFileRank.toEscapedModel());
334            }
335    
336            @Override
337            public java.lang.String toString() {
338                    return _dlFileRank.toString();
339            }
340    
341            public java.lang.String toXmlString() {
342                    return _dlFileRank.toXmlString();
343            }
344    
345            public void persist()
346                    throws com.liferay.portal.kernel.exception.SystemException {
347                    _dlFileRank.persist();
348            }
349    
350            /**
351             * @deprecated Renamed to {@link #getWrappedModel}
352             */
353            public DLFileRank getWrappedDLFileRank() {
354                    return _dlFileRank;
355            }
356    
357            public DLFileRank getWrappedModel() {
358                    return _dlFileRank;
359            }
360    
361            public void resetOriginalValues() {
362                    _dlFileRank.resetOriginalValues();
363            }
364    
365            private DLFileRank _dlFileRank;
366    }