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