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    /**
020     * <p>
021     * This class is a wrapper for {@link DLFileRank}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       DLFileRank
026     * @generated
027     */
028    public class DLFileRankWrapper implements DLFileRank, ModelWrapper<DLFileRank> {
029            public DLFileRankWrapper(DLFileRank dlFileRank) {
030                    _dlFileRank = dlFileRank;
031            }
032    
033            public Class<?> getModelClass() {
034                    return DLFileRank.class;
035            }
036    
037            public String getModelClassName() {
038                    return DLFileRank.class.getName();
039            }
040    
041            /**
042            * Returns the primary key of this document library file rank.
043            *
044            * @return the primary key of this document library file rank
045            */
046            public long getPrimaryKey() {
047                    return _dlFileRank.getPrimaryKey();
048            }
049    
050            /**
051            * Sets the primary key of this document library file rank.
052            *
053            * @param primaryKey the primary key of this document library file rank
054            */
055            public void setPrimaryKey(long primaryKey) {
056                    _dlFileRank.setPrimaryKey(primaryKey);
057            }
058    
059            /**
060            * Returns the file rank ID of this document library file rank.
061            *
062            * @return the file rank ID of this document library file rank
063            */
064            public long getFileRankId() {
065                    return _dlFileRank.getFileRankId();
066            }
067    
068            /**
069            * Sets the file rank ID of this document library file rank.
070            *
071            * @param fileRankId the file rank ID of this document library file rank
072            */
073            public void setFileRankId(long fileRankId) {
074                    _dlFileRank.setFileRankId(fileRankId);
075            }
076    
077            /**
078            * Returns the group ID of this document library file rank.
079            *
080            * @return the group ID of this document library file rank
081            */
082            public long getGroupId() {
083                    return _dlFileRank.getGroupId();
084            }
085    
086            /**
087            * Sets the group ID of this document library file rank.
088            *
089            * @param groupId the group ID of this document library file rank
090            */
091            public void setGroupId(long groupId) {
092                    _dlFileRank.setGroupId(groupId);
093            }
094    
095            /**
096            * Returns the company ID of this document library file rank.
097            *
098            * @return the company ID of this document library file rank
099            */
100            public long getCompanyId() {
101                    return _dlFileRank.getCompanyId();
102            }
103    
104            /**
105            * Sets the company ID of this document library file rank.
106            *
107            * @param companyId the company ID of this document library file rank
108            */
109            public void setCompanyId(long companyId) {
110                    _dlFileRank.setCompanyId(companyId);
111            }
112    
113            /**
114            * Returns the user ID of this document library file rank.
115            *
116            * @return the user ID of this document library file rank
117            */
118            public long getUserId() {
119                    return _dlFileRank.getUserId();
120            }
121    
122            /**
123            * Sets the user ID of this document library file rank.
124            *
125            * @param userId the user ID of this document library file rank
126            */
127            public void setUserId(long userId) {
128                    _dlFileRank.setUserId(userId);
129            }
130    
131            /**
132            * Returns the user uuid of this document library file rank.
133            *
134            * @return the user uuid of this document library file rank
135            * @throws SystemException if a system exception occurred
136            */
137            public java.lang.String getUserUuid()
138                    throws com.liferay.portal.kernel.exception.SystemException {
139                    return _dlFileRank.getUserUuid();
140            }
141    
142            /**
143            * Sets the user uuid of this document library file rank.
144            *
145            * @param userUuid the user uuid of this document library file rank
146            */
147            public void setUserUuid(java.lang.String userUuid) {
148                    _dlFileRank.setUserUuid(userUuid);
149            }
150    
151            /**
152            * Returns the create date of this document library file rank.
153            *
154            * @return the create date of this document library file rank
155            */
156            public java.util.Date getCreateDate() {
157                    return _dlFileRank.getCreateDate();
158            }
159    
160            /**
161            * Sets the create date of this document library file rank.
162            *
163            * @param createDate the create date of this document library file rank
164            */
165            public void setCreateDate(java.util.Date createDate) {
166                    _dlFileRank.setCreateDate(createDate);
167            }
168    
169            /**
170            * Returns the file entry ID of this document library file rank.
171            *
172            * @return the file entry ID of this document library file rank
173            */
174            public long getFileEntryId() {
175                    return _dlFileRank.getFileEntryId();
176            }
177    
178            /**
179            * Sets the file entry ID of this document library file rank.
180            *
181            * @param fileEntryId the file entry ID of this document library file rank
182            */
183            public void setFileEntryId(long fileEntryId) {
184                    _dlFileRank.setFileEntryId(fileEntryId);
185            }
186    
187            public boolean isNew() {
188                    return _dlFileRank.isNew();
189            }
190    
191            public void setNew(boolean n) {
192                    _dlFileRank.setNew(n);
193            }
194    
195            public boolean isCachedModel() {
196                    return _dlFileRank.isCachedModel();
197            }
198    
199            public void setCachedModel(boolean cachedModel) {
200                    _dlFileRank.setCachedModel(cachedModel);
201            }
202    
203            public boolean isEscapedModel() {
204                    return _dlFileRank.isEscapedModel();
205            }
206    
207            public java.io.Serializable getPrimaryKeyObj() {
208                    return _dlFileRank.getPrimaryKeyObj();
209            }
210    
211            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
212                    _dlFileRank.setPrimaryKeyObj(primaryKeyObj);
213            }
214    
215            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
216                    return _dlFileRank.getExpandoBridge();
217            }
218    
219            public void setExpandoBridgeAttributes(
220                    com.liferay.portal.service.ServiceContext serviceContext) {
221                    _dlFileRank.setExpandoBridgeAttributes(serviceContext);
222            }
223    
224            @Override
225            public java.lang.Object clone() {
226                    return new DLFileRankWrapper((DLFileRank)_dlFileRank.clone());
227            }
228    
229            public int compareTo(
230                    com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank) {
231                    return _dlFileRank.compareTo(dlFileRank);
232            }
233    
234            @Override
235            public int hashCode() {
236                    return _dlFileRank.hashCode();
237            }
238    
239            public com.liferay.portal.model.CacheModel<com.liferay.portlet.documentlibrary.model.DLFileRank> toCacheModel() {
240                    return _dlFileRank.toCacheModel();
241            }
242    
243            public com.liferay.portlet.documentlibrary.model.DLFileRank toEscapedModel() {
244                    return new DLFileRankWrapper(_dlFileRank.toEscapedModel());
245            }
246    
247            @Override
248            public java.lang.String toString() {
249                    return _dlFileRank.toString();
250            }
251    
252            public java.lang.String toXmlString() {
253                    return _dlFileRank.toXmlString();
254            }
255    
256            public void persist()
257                    throws com.liferay.portal.kernel.exception.SystemException {
258                    _dlFileRank.persist();
259            }
260    
261            /**
262             * @deprecated Renamed to {@link #getWrappedModel}
263             */
264            public DLFileRank getWrappedDLFileRank() {
265                    return _dlFileRank;
266            }
267    
268            public DLFileRank getWrappedModel() {
269                    return _dlFileRank;
270            }
271    
272            public void resetOriginalValues() {
273                    _dlFileRank.resetOriginalValues();
274            }
275    
276            private DLFileRank _dlFileRank;
277    }