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