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