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