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