001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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    
055                    return attributes;
056            }
057    
058            public void setModelAttributes(Map<String, Object> attributes) {
059                    Long fileRankId = (Long)attributes.get("fileRankId");
060    
061                    if (fileRankId != null) {
062                            setFileRankId(fileRankId);
063                    }
064    
065                    Long groupId = (Long)attributes.get("groupId");
066    
067                    if (groupId != null) {
068                            setGroupId(groupId);
069                    }
070    
071                    Long companyId = (Long)attributes.get("companyId");
072    
073                    if (companyId != null) {
074                            setCompanyId(companyId);
075                    }
076    
077                    Long userId = (Long)attributes.get("userId");
078    
079                    if (userId != null) {
080                            setUserId(userId);
081                    }
082    
083                    Date createDate = (Date)attributes.get("createDate");
084    
085                    if (createDate != null) {
086                            setCreateDate(createDate);
087                    }
088    
089                    Long fileEntryId = (Long)attributes.get("fileEntryId");
090    
091                    if (fileEntryId != null) {
092                            setFileEntryId(fileEntryId);
093                    }
094            }
095    
096            /**
097            * Returns the primary key of this document library file rank.
098            *
099            * @return the primary key of this document library file rank
100            */
101            public long getPrimaryKey() {
102                    return _dlFileRank.getPrimaryKey();
103            }
104    
105            /**
106            * Sets the primary key of this document library file rank.
107            *
108            * @param primaryKey the primary key of this document library file rank
109            */
110            public void setPrimaryKey(long primaryKey) {
111                    _dlFileRank.setPrimaryKey(primaryKey);
112            }
113    
114            /**
115            * Returns the file rank ID of this document library file rank.
116            *
117            * @return the file rank ID of this document library file rank
118            */
119            public long getFileRankId() {
120                    return _dlFileRank.getFileRankId();
121            }
122    
123            /**
124            * Sets the file rank ID of this document library file rank.
125            *
126            * @param fileRankId the file rank ID of this document library file rank
127            */
128            public void setFileRankId(long fileRankId) {
129                    _dlFileRank.setFileRankId(fileRankId);
130            }
131    
132            /**
133            * Returns the group ID of this document library file rank.
134            *
135            * @return the group ID of this document library file rank
136            */
137            public long getGroupId() {
138                    return _dlFileRank.getGroupId();
139            }
140    
141            /**
142            * Sets the group ID of this document library file rank.
143            *
144            * @param groupId the group ID of this document library file rank
145            */
146            public void setGroupId(long groupId) {
147                    _dlFileRank.setGroupId(groupId);
148            }
149    
150            /**
151            * Returns the company ID of this document library file rank.
152            *
153            * @return the company ID of this document library file rank
154            */
155            public long getCompanyId() {
156                    return _dlFileRank.getCompanyId();
157            }
158    
159            /**
160            * Sets the company ID of this document library file rank.
161            *
162            * @param companyId the company ID of this document library file rank
163            */
164            public void setCompanyId(long companyId) {
165                    _dlFileRank.setCompanyId(companyId);
166            }
167    
168            /**
169            * Returns the user ID of this document library file rank.
170            *
171            * @return the user ID of this document library file rank
172            */
173            public long getUserId() {
174                    return _dlFileRank.getUserId();
175            }
176    
177            /**
178            * Sets the user ID of this document library file rank.
179            *
180            * @param userId the user ID of this document library file rank
181            */
182            public void setUserId(long userId) {
183                    _dlFileRank.setUserId(userId);
184            }
185    
186            /**
187            * Returns the user uuid of this document library file rank.
188            *
189            * @return the user uuid of this document library file rank
190            * @throws SystemException if a system exception occurred
191            */
192            public java.lang.String getUserUuid()
193                    throws com.liferay.portal.kernel.exception.SystemException {
194                    return _dlFileRank.getUserUuid();
195            }
196    
197            /**
198            * Sets the user uuid of this document library file rank.
199            *
200            * @param userUuid the user uuid of this document library file rank
201            */
202            public void setUserUuid(java.lang.String userUuid) {
203                    _dlFileRank.setUserUuid(userUuid);
204            }
205    
206            /**
207            * Returns the create date of this document library file rank.
208            *
209            * @return the create date of this document library file rank
210            */
211            public java.util.Date getCreateDate() {
212                    return _dlFileRank.getCreateDate();
213            }
214    
215            /**
216            * Sets the create date of this document library file rank.
217            *
218            * @param createDate the create date of this document library file rank
219            */
220            public void setCreateDate(java.util.Date createDate) {
221                    _dlFileRank.setCreateDate(createDate);
222            }
223    
224            /**
225            * Returns the file entry ID of this document library file rank.
226            *
227            * @return the file entry ID of this document library file rank
228            */
229            public long getFileEntryId() {
230                    return _dlFileRank.getFileEntryId();
231            }
232    
233            /**
234            * Sets the file entry ID of this document library file rank.
235            *
236            * @param fileEntryId the file entry ID of this document library file rank
237            */
238            public void setFileEntryId(long fileEntryId) {
239                    _dlFileRank.setFileEntryId(fileEntryId);
240            }
241    
242            public boolean isNew() {
243                    return _dlFileRank.isNew();
244            }
245    
246            public void setNew(boolean n) {
247                    _dlFileRank.setNew(n);
248            }
249    
250            public boolean isCachedModel() {
251                    return _dlFileRank.isCachedModel();
252            }
253    
254            public void setCachedModel(boolean cachedModel) {
255                    _dlFileRank.setCachedModel(cachedModel);
256            }
257    
258            public boolean isEscapedModel() {
259                    return _dlFileRank.isEscapedModel();
260            }
261    
262            public java.io.Serializable getPrimaryKeyObj() {
263                    return _dlFileRank.getPrimaryKeyObj();
264            }
265    
266            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
267                    _dlFileRank.setPrimaryKeyObj(primaryKeyObj);
268            }
269    
270            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
271                    return _dlFileRank.getExpandoBridge();
272            }
273    
274            public void setExpandoBridgeAttributes(
275                    com.liferay.portal.service.ServiceContext serviceContext) {
276                    _dlFileRank.setExpandoBridgeAttributes(serviceContext);
277            }
278    
279            @Override
280            public java.lang.Object clone() {
281                    return new DLFileRankWrapper((DLFileRank)_dlFileRank.clone());
282            }
283    
284            public int compareTo(
285                    com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank) {
286                    return _dlFileRank.compareTo(dlFileRank);
287            }
288    
289            @Override
290            public int hashCode() {
291                    return _dlFileRank.hashCode();
292            }
293    
294            public com.liferay.portal.model.CacheModel<com.liferay.portlet.documentlibrary.model.DLFileRank> toCacheModel() {
295                    return _dlFileRank.toCacheModel();
296            }
297    
298            public com.liferay.portlet.documentlibrary.model.DLFileRank toEscapedModel() {
299                    return new DLFileRankWrapper(_dlFileRank.toEscapedModel());
300            }
301    
302            @Override
303            public java.lang.String toString() {
304                    return _dlFileRank.toString();
305            }
306    
307            public java.lang.String toXmlString() {
308                    return _dlFileRank.toXmlString();
309            }
310    
311            public void persist()
312                    throws com.liferay.portal.kernel.exception.SystemException {
313                    _dlFileRank.persist();
314            }
315    
316            /**
317             * @deprecated Renamed to {@link #getWrappedModel}
318             */
319            public DLFileRank getWrappedDLFileRank() {
320                    return _dlFileRank;
321            }
322    
323            public DLFileRank getWrappedModel() {
324                    return _dlFileRank;
325            }
326    
327            public void resetOriginalValues() {
328                    _dlFileRank.resetOriginalValues();
329            }
330    
331            private DLFileRank _dlFileRank;
332    }