001    /**
002     * Copyright (c) 2000-present 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.document.library.kernel.model;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.expando.kernel.model.ExpandoBridge;
020    
021    import com.liferay.exportimport.kernel.lar.StagedModelType;
022    
023    import com.liferay.portal.kernel.model.ModelWrapper;
024    import com.liferay.portal.kernel.service.ServiceContext;
025    import com.liferay.portal.kernel.util.Validator;
026    
027    import java.io.Serializable;
028    
029    import java.util.Date;
030    import java.util.HashMap;
031    import java.util.Map;
032    
033    /**
034     * <p>
035     * This class is a wrapper for {@link DLFileVersion}.
036     * </p>
037     *
038     * @author Brian Wing Shun Chan
039     * @see DLFileVersion
040     * @generated
041     */
042    @ProviderType
043    public class DLFileVersionWrapper implements DLFileVersion,
044            ModelWrapper<DLFileVersion> {
045            public DLFileVersionWrapper(DLFileVersion dlFileVersion) {
046                    _dlFileVersion = dlFileVersion;
047            }
048    
049            @Override
050            public Class<?> getModelClass() {
051                    return DLFileVersion.class;
052            }
053    
054            @Override
055            public String getModelClassName() {
056                    return DLFileVersion.class.getName();
057            }
058    
059            @Override
060            public Map<String, Object> getModelAttributes() {
061                    Map<String, Object> attributes = new HashMap<String, Object>();
062    
063                    attributes.put("uuid", getUuid());
064                    attributes.put("fileVersionId", getFileVersionId());
065                    attributes.put("groupId", getGroupId());
066                    attributes.put("companyId", getCompanyId());
067                    attributes.put("userId", getUserId());
068                    attributes.put("userName", getUserName());
069                    attributes.put("createDate", getCreateDate());
070                    attributes.put("modifiedDate", getModifiedDate());
071                    attributes.put("repositoryId", getRepositoryId());
072                    attributes.put("folderId", getFolderId());
073                    attributes.put("fileEntryId", getFileEntryId());
074                    attributes.put("treePath", getTreePath());
075                    attributes.put("fileName", getFileName());
076                    attributes.put("extension", getExtension());
077                    attributes.put("mimeType", getMimeType());
078                    attributes.put("title", getTitle());
079                    attributes.put("description", getDescription());
080                    attributes.put("changeLog", getChangeLog());
081                    attributes.put("extraSettings", getExtraSettings());
082                    attributes.put("fileEntryTypeId", getFileEntryTypeId());
083                    attributes.put("version", getVersion());
084                    attributes.put("size", getSize());
085                    attributes.put("checksum", getChecksum());
086                    attributes.put("lastPublishDate", getLastPublishDate());
087                    attributes.put("status", getStatus());
088                    attributes.put("statusByUserId", getStatusByUserId());
089                    attributes.put("statusByUserName", getStatusByUserName());
090                    attributes.put("statusDate", getStatusDate());
091    
092                    return attributes;
093            }
094    
095            @Override
096            public void setModelAttributes(Map<String, Object> attributes) {
097                    String uuid = (String)attributes.get("uuid");
098    
099                    if (uuid != null) {
100                            setUuid(uuid);
101                    }
102    
103                    Long fileVersionId = (Long)attributes.get("fileVersionId");
104    
105                    if (fileVersionId != null) {
106                            setFileVersionId(fileVersionId);
107                    }
108    
109                    Long groupId = (Long)attributes.get("groupId");
110    
111                    if (groupId != null) {
112                            setGroupId(groupId);
113                    }
114    
115                    Long companyId = (Long)attributes.get("companyId");
116    
117                    if (companyId != null) {
118                            setCompanyId(companyId);
119                    }
120    
121                    Long userId = (Long)attributes.get("userId");
122    
123                    if (userId != null) {
124                            setUserId(userId);
125                    }
126    
127                    String userName = (String)attributes.get("userName");
128    
129                    if (userName != null) {
130                            setUserName(userName);
131                    }
132    
133                    Date createDate = (Date)attributes.get("createDate");
134    
135                    if (createDate != null) {
136                            setCreateDate(createDate);
137                    }
138    
139                    Date modifiedDate = (Date)attributes.get("modifiedDate");
140    
141                    if (modifiedDate != null) {
142                            setModifiedDate(modifiedDate);
143                    }
144    
145                    Long repositoryId = (Long)attributes.get("repositoryId");
146    
147                    if (repositoryId != null) {
148                            setRepositoryId(repositoryId);
149                    }
150    
151                    Long folderId = (Long)attributes.get("folderId");
152    
153                    if (folderId != null) {
154                            setFolderId(folderId);
155                    }
156    
157                    Long fileEntryId = (Long)attributes.get("fileEntryId");
158    
159                    if (fileEntryId != null) {
160                            setFileEntryId(fileEntryId);
161                    }
162    
163                    String treePath = (String)attributes.get("treePath");
164    
165                    if (treePath != null) {
166                            setTreePath(treePath);
167                    }
168    
169                    String fileName = (String)attributes.get("fileName");
170    
171                    if (fileName != null) {
172                            setFileName(fileName);
173                    }
174    
175                    String extension = (String)attributes.get("extension");
176    
177                    if (extension != null) {
178                            setExtension(extension);
179                    }
180    
181                    String mimeType = (String)attributes.get("mimeType");
182    
183                    if (mimeType != null) {
184                            setMimeType(mimeType);
185                    }
186    
187                    String title = (String)attributes.get("title");
188    
189                    if (title != null) {
190                            setTitle(title);
191                    }
192    
193                    String description = (String)attributes.get("description");
194    
195                    if (description != null) {
196                            setDescription(description);
197                    }
198    
199                    String changeLog = (String)attributes.get("changeLog");
200    
201                    if (changeLog != null) {
202                            setChangeLog(changeLog);
203                    }
204    
205                    String extraSettings = (String)attributes.get("extraSettings");
206    
207                    if (extraSettings != null) {
208                            setExtraSettings(extraSettings);
209                    }
210    
211                    Long fileEntryTypeId = (Long)attributes.get("fileEntryTypeId");
212    
213                    if (fileEntryTypeId != null) {
214                            setFileEntryTypeId(fileEntryTypeId);
215                    }
216    
217                    String version = (String)attributes.get("version");
218    
219                    if (version != null) {
220                            setVersion(version);
221                    }
222    
223                    Long size = (Long)attributes.get("size");
224    
225                    if (size != null) {
226                            setSize(size);
227                    }
228    
229                    String checksum = (String)attributes.get("checksum");
230    
231                    if (checksum != null) {
232                            setChecksum(checksum);
233                    }
234    
235                    Date lastPublishDate = (Date)attributes.get("lastPublishDate");
236    
237                    if (lastPublishDate != null) {
238                            setLastPublishDate(lastPublishDate);
239                    }
240    
241                    Integer status = (Integer)attributes.get("status");
242    
243                    if (status != null) {
244                            setStatus(status);
245                    }
246    
247                    Long statusByUserId = (Long)attributes.get("statusByUserId");
248    
249                    if (statusByUserId != null) {
250                            setStatusByUserId(statusByUserId);
251                    }
252    
253                    String statusByUserName = (String)attributes.get("statusByUserName");
254    
255                    if (statusByUserName != null) {
256                            setStatusByUserName(statusByUserName);
257                    }
258    
259                    Date statusDate = (Date)attributes.get("statusDate");
260    
261                    if (statusDate != null) {
262                            setStatusDate(statusDate);
263                    }
264            }
265    
266            @Override
267            public java.lang.String buildTreePath()
268                    throws com.liferay.portal.kernel.exception.PortalException {
269                    return _dlFileVersion.buildTreePath();
270            }
271    
272            @Override
273            public java.lang.Object clone() {
274                    return new DLFileVersionWrapper((DLFileVersion)_dlFileVersion.clone());
275            }
276    
277            @Override
278            public int compareTo(
279                    com.liferay.document.library.kernel.model.DLFileVersion dlFileVersion) {
280                    return _dlFileVersion.compareTo(dlFileVersion);
281            }
282    
283            /**
284            * Returns the change log of this document library file version.
285            *
286            * @return the change log of this document library file version
287            */
288            @Override
289            public java.lang.String getChangeLog() {
290                    return _dlFileVersion.getChangeLog();
291            }
292    
293            /**
294            * Returns the checksum of this document library file version.
295            *
296            * @return the checksum of this document library file version
297            */
298            @Override
299            public java.lang.String getChecksum() {
300                    return _dlFileVersion.getChecksum();
301            }
302    
303            /**
304            * Returns the company ID of this document library file version.
305            *
306            * @return the company ID of this document library file version
307            */
308            @Override
309            public long getCompanyId() {
310                    return _dlFileVersion.getCompanyId();
311            }
312    
313            @Override
314            public java.io.InputStream getContentStream(boolean incrementCounter)
315                    throws com.liferay.portal.kernel.exception.PortalException {
316                    return _dlFileVersion.getContentStream(incrementCounter);
317            }
318    
319            /**
320            * Returns the create date of this document library file version.
321            *
322            * @return the create date of this document library file version
323            */
324            @Override
325            public Date getCreateDate() {
326                    return _dlFileVersion.getCreateDate();
327            }
328    
329            @Override
330            public java.util.List<com.liferay.dynamic.data.mapping.kernel.DDMStructure> getDDMStructures()
331                    throws com.liferay.portal.kernel.exception.PortalException {
332                    return _dlFileVersion.getDDMStructures();
333            }
334    
335            @Override
336            public com.liferay.document.library.kernel.model.DLFileEntryType getDLFileEntryType()
337                    throws com.liferay.portal.kernel.exception.PortalException {
338                    return _dlFileVersion.getDLFileEntryType();
339            }
340    
341            /**
342            * Returns the description of this document library file version.
343            *
344            * @return the description of this document library file version
345            */
346            @Override
347            public java.lang.String getDescription() {
348                    return _dlFileVersion.getDescription();
349            }
350    
351            @Override
352            public ExpandoBridge getExpandoBridge() {
353                    return _dlFileVersion.getExpandoBridge();
354            }
355    
356            /**
357            * Returns the extension of this document library file version.
358            *
359            * @return the extension of this document library file version
360            */
361            @Override
362            public java.lang.String getExtension() {
363                    return _dlFileVersion.getExtension();
364            }
365    
366            /**
367            * Returns the extra settings of this document library file version.
368            *
369            * @return the extra settings of this document library file version
370            */
371            @Override
372            public java.lang.String getExtraSettings() {
373                    return _dlFileVersion.getExtraSettings();
374            }
375    
376            @Override
377            public com.liferay.portal.kernel.util.UnicodeProperties getExtraSettingsProperties() {
378                    return _dlFileVersion.getExtraSettingsProperties();
379            }
380    
381            @Override
382            public com.liferay.document.library.kernel.model.DLFileEntry getFileEntry()
383                    throws com.liferay.portal.kernel.exception.PortalException {
384                    return _dlFileVersion.getFileEntry();
385            }
386    
387            /**
388            * Returns the file entry ID of this document library file version.
389            *
390            * @return the file entry ID of this document library file version
391            */
392            @Override
393            public long getFileEntryId() {
394                    return _dlFileVersion.getFileEntryId();
395            }
396    
397            /**
398            * Returns the file entry type ID of this document library file version.
399            *
400            * @return the file entry type ID of this document library file version
401            */
402            @Override
403            public long getFileEntryTypeId() {
404                    return _dlFileVersion.getFileEntryTypeId();
405            }
406    
407            /**
408            * Returns the file name of this document library file version.
409            *
410            * @return the file name of this document library file version
411            */
412            @Override
413            public java.lang.String getFileName() {
414                    return _dlFileVersion.getFileName();
415            }
416    
417            /**
418            * Returns the file version ID of this document library file version.
419            *
420            * @return the file version ID of this document library file version
421            */
422            @Override
423            public long getFileVersionId() {
424                    return _dlFileVersion.getFileVersionId();
425            }
426    
427            @Override
428            public com.liferay.document.library.kernel.model.DLFolder getFolder()
429                    throws com.liferay.portal.kernel.exception.PortalException {
430                    return _dlFileVersion.getFolder();
431            }
432    
433            /**
434            * Returns the folder ID of this document library file version.
435            *
436            * @return the folder ID of this document library file version
437            */
438            @Override
439            public long getFolderId() {
440                    return _dlFileVersion.getFolderId();
441            }
442    
443            /**
444            * Returns the group ID of this document library file version.
445            *
446            * @return the group ID of this document library file version
447            */
448            @Override
449            public long getGroupId() {
450                    return _dlFileVersion.getGroupId();
451            }
452    
453            @Override
454            public java.lang.String getIcon() {
455                    return _dlFileVersion.getIcon();
456            }
457    
458            /**
459            * Returns the last publish date of this document library file version.
460            *
461            * @return the last publish date of this document library file version
462            */
463            @Override
464            public Date getLastPublishDate() {
465                    return _dlFileVersion.getLastPublishDate();
466            }
467    
468            /**
469            * Returns the mime type of this document library file version.
470            *
471            * @return the mime type of this document library file version
472            */
473            @Override
474            public java.lang.String getMimeType() {
475                    return _dlFileVersion.getMimeType();
476            }
477    
478            /**
479            * Returns the modified date of this document library file version.
480            *
481            * @return the modified date of this document library file version
482            */
483            @Override
484            public Date getModifiedDate() {
485                    return _dlFileVersion.getModifiedDate();
486            }
487    
488            /**
489            * Returns the primary key of this document library file version.
490            *
491            * @return the primary key of this document library file version
492            */
493            @Override
494            public long getPrimaryKey() {
495                    return _dlFileVersion.getPrimaryKey();
496            }
497    
498            @Override
499            public Serializable getPrimaryKeyObj() {
500                    return _dlFileVersion.getPrimaryKeyObj();
501            }
502    
503            /**
504            * Returns the repository ID of this document library file version.
505            *
506            * @return the repository ID of this document library file version
507            */
508            @Override
509            public long getRepositoryId() {
510                    return _dlFileVersion.getRepositoryId();
511            }
512    
513            /**
514            * Returns the size of this document library file version.
515            *
516            * @return the size of this document library file version
517            */
518            @Override
519            public long getSize() {
520                    return _dlFileVersion.getSize();
521            }
522    
523            /**
524            * Returns the status of this document library file version.
525            *
526            * @return the status of this document library file version
527            */
528            @Override
529            public int getStatus() {
530                    return _dlFileVersion.getStatus();
531            }
532    
533            /**
534            * Returns the status by user ID of this document library file version.
535            *
536            * @return the status by user ID of this document library file version
537            */
538            @Override
539            public long getStatusByUserId() {
540                    return _dlFileVersion.getStatusByUserId();
541            }
542    
543            /**
544            * Returns the status by user name of this document library file version.
545            *
546            * @return the status by user name of this document library file version
547            */
548            @Override
549            public java.lang.String getStatusByUserName() {
550                    return _dlFileVersion.getStatusByUserName();
551            }
552    
553            /**
554            * Returns the status by user uuid of this document library file version.
555            *
556            * @return the status by user uuid of this document library file version
557            */
558            @Override
559            public java.lang.String getStatusByUserUuid() {
560                    return _dlFileVersion.getStatusByUserUuid();
561            }
562    
563            /**
564            * Returns the status date of this document library file version.
565            *
566            * @return the status date of this document library file version
567            */
568            @Override
569            public Date getStatusDate() {
570                    return _dlFileVersion.getStatusDate();
571            }
572    
573            /**
574            * Returns the title of this document library file version.
575            *
576            * @return the title of this document library file version
577            */
578            @Override
579            public java.lang.String getTitle() {
580                    return _dlFileVersion.getTitle();
581            }
582    
583            /**
584            * Returns the tree path of this document library file version.
585            *
586            * @return the tree path of this document library file version
587            */
588            @Override
589            public java.lang.String getTreePath() {
590                    return _dlFileVersion.getTreePath();
591            }
592    
593            /**
594            * Returns the user ID of this document library file version.
595            *
596            * @return the user ID of this document library file version
597            */
598            @Override
599            public long getUserId() {
600                    return _dlFileVersion.getUserId();
601            }
602    
603            /**
604            * Returns the user name of this document library file version.
605            *
606            * @return the user name of this document library file version
607            */
608            @Override
609            public java.lang.String getUserName() {
610                    return _dlFileVersion.getUserName();
611            }
612    
613            /**
614            * Returns the user uuid of this document library file version.
615            *
616            * @return the user uuid of this document library file version
617            */
618            @Override
619            public java.lang.String getUserUuid() {
620                    return _dlFileVersion.getUserUuid();
621            }
622    
623            /**
624            * Returns the uuid of this document library file version.
625            *
626            * @return the uuid of this document library file version
627            */
628            @Override
629            public java.lang.String getUuid() {
630                    return _dlFileVersion.getUuid();
631            }
632    
633            /**
634            * Returns the version of this document library file version.
635            *
636            * @return the version of this document library file version
637            */
638            @Override
639            public java.lang.String getVersion() {
640                    return _dlFileVersion.getVersion();
641            }
642    
643            @Override
644            public int hashCode() {
645                    return _dlFileVersion.hashCode();
646            }
647    
648            /**
649            * Returns <code>true</code> if this document library file version is approved.
650            *
651            * @return <code>true</code> if this document library file version is approved; <code>false</code> otherwise
652            */
653            @Override
654            public boolean isApproved() {
655                    return _dlFileVersion.isApproved();
656            }
657    
658            @Override
659            public boolean isCachedModel() {
660                    return _dlFileVersion.isCachedModel();
661            }
662    
663            /**
664            * Returns <code>true</code> if this document library file version is denied.
665            *
666            * @return <code>true</code> if this document library file version is denied; <code>false</code> otherwise
667            */
668            @Override
669            public boolean isDenied() {
670                    return _dlFileVersion.isDenied();
671            }
672    
673            /**
674            * Returns <code>true</code> if this document library file version is a draft.
675            *
676            * @return <code>true</code> if this document library file version is a draft; <code>false</code> otherwise
677            */
678            @Override
679            public boolean isDraft() {
680                    return _dlFileVersion.isDraft();
681            }
682    
683            @Override
684            public boolean isEscapedModel() {
685                    return _dlFileVersion.isEscapedModel();
686            }
687    
688            /**
689            * Returns <code>true</code> if this document library file version is expired.
690            *
691            * @return <code>true</code> if this document library file version is expired; <code>false</code> otherwise
692            */
693            @Override
694            public boolean isExpired() {
695                    return _dlFileVersion.isExpired();
696            }
697    
698            /**
699            * Returns <code>true</code> if this document library file version is inactive.
700            *
701            * @return <code>true</code> if this document library file version is inactive; <code>false</code> otherwise
702            */
703            @Override
704            public boolean isInactive() {
705                    return _dlFileVersion.isInactive();
706            }
707    
708            /**
709            * Returns <code>true</code> if this document library file version is incomplete.
710            *
711            * @return <code>true</code> if this document library file version is incomplete; <code>false</code> otherwise
712            */
713            @Override
714            public boolean isIncomplete() {
715                    return _dlFileVersion.isIncomplete();
716            }
717    
718            @Override
719            public boolean isNew() {
720                    return _dlFileVersion.isNew();
721            }
722    
723            /**
724            * Returns <code>true</code> if this document library file version is pending.
725            *
726            * @return <code>true</code> if this document library file version is pending; <code>false</code> otherwise
727            */
728            @Override
729            public boolean isPending() {
730                    return _dlFileVersion.isPending();
731            }
732    
733            /**
734            * Returns <code>true</code> if this document library file version is scheduled.
735            *
736            * @return <code>true</code> if this document library file version is scheduled; <code>false</code> otherwise
737            */
738            @Override
739            public boolean isScheduled() {
740                    return _dlFileVersion.isScheduled();
741            }
742    
743            @Override
744            public void persist() {
745                    _dlFileVersion.persist();
746            }
747    
748            @Override
749            public void setCachedModel(boolean cachedModel) {
750                    _dlFileVersion.setCachedModel(cachedModel);
751            }
752    
753            /**
754            * Sets the change log of this document library file version.
755            *
756            * @param changeLog the change log of this document library file version
757            */
758            @Override
759            public void setChangeLog(java.lang.String changeLog) {
760                    _dlFileVersion.setChangeLog(changeLog);
761            }
762    
763            /**
764            * Sets the checksum of this document library file version.
765            *
766            * @param checksum the checksum of this document library file version
767            */
768            @Override
769            public void setChecksum(java.lang.String checksum) {
770                    _dlFileVersion.setChecksum(checksum);
771            }
772    
773            /**
774            * Sets the company ID of this document library file version.
775            *
776            * @param companyId the company ID of this document library file version
777            */
778            @Override
779            public void setCompanyId(long companyId) {
780                    _dlFileVersion.setCompanyId(companyId);
781            }
782    
783            /**
784            * Sets the create date of this document library file version.
785            *
786            * @param createDate the create date of this document library file version
787            */
788            @Override
789            public void setCreateDate(Date createDate) {
790                    _dlFileVersion.setCreateDate(createDate);
791            }
792    
793            /**
794            * Sets the description of this document library file version.
795            *
796            * @param description the description of this document library file version
797            */
798            @Override
799            public void setDescription(java.lang.String description) {
800                    _dlFileVersion.setDescription(description);
801            }
802    
803            @Override
804            public void setExpandoBridgeAttributes(
805                    com.liferay.portal.kernel.model.BaseModel<?> baseModel) {
806                    _dlFileVersion.setExpandoBridgeAttributes(baseModel);
807            }
808    
809            @Override
810            public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) {
811                    _dlFileVersion.setExpandoBridgeAttributes(expandoBridge);
812            }
813    
814            @Override
815            public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
816                    _dlFileVersion.setExpandoBridgeAttributes(serviceContext);
817            }
818    
819            /**
820            * Sets the extension of this document library file version.
821            *
822            * @param extension the extension of this document library file version
823            */
824            @Override
825            public void setExtension(java.lang.String extension) {
826                    _dlFileVersion.setExtension(extension);
827            }
828    
829            /**
830            * Sets the extra settings of this document library file version.
831            *
832            * @param extraSettings the extra settings of this document library file version
833            */
834            @Override
835            public void setExtraSettings(java.lang.String extraSettings) {
836                    _dlFileVersion.setExtraSettings(extraSettings);
837            }
838    
839            @Override
840            public void setExtraSettingsProperties(
841                    com.liferay.portal.kernel.util.UnicodeProperties extraSettingsProperties) {
842                    _dlFileVersion.setExtraSettingsProperties(extraSettingsProperties);
843            }
844    
845            /**
846            * Sets the file entry ID of this document library file version.
847            *
848            * @param fileEntryId the file entry ID of this document library file version
849            */
850            @Override
851            public void setFileEntryId(long fileEntryId) {
852                    _dlFileVersion.setFileEntryId(fileEntryId);
853            }
854    
855            /**
856            * Sets the file entry type ID of this document library file version.
857            *
858            * @param fileEntryTypeId the file entry type ID of this document library file version
859            */
860            @Override
861            public void setFileEntryTypeId(long fileEntryTypeId) {
862                    _dlFileVersion.setFileEntryTypeId(fileEntryTypeId);
863            }
864    
865            /**
866            * Sets the file name of this document library file version.
867            *
868            * @param fileName the file name of this document library file version
869            */
870            @Override
871            public void setFileName(java.lang.String fileName) {
872                    _dlFileVersion.setFileName(fileName);
873            }
874    
875            /**
876            * Sets the file version ID of this document library file version.
877            *
878            * @param fileVersionId the file version ID of this document library file version
879            */
880            @Override
881            public void setFileVersionId(long fileVersionId) {
882                    _dlFileVersion.setFileVersionId(fileVersionId);
883            }
884    
885            /**
886            * Sets the folder ID of this document library file version.
887            *
888            * @param folderId the folder ID of this document library file version
889            */
890            @Override
891            public void setFolderId(long folderId) {
892                    _dlFileVersion.setFolderId(folderId);
893            }
894    
895            /**
896            * Sets the group ID of this document library file version.
897            *
898            * @param groupId the group ID of this document library file version
899            */
900            @Override
901            public void setGroupId(long groupId) {
902                    _dlFileVersion.setGroupId(groupId);
903            }
904    
905            /**
906            * Sets the last publish date of this document library file version.
907            *
908            * @param lastPublishDate the last publish date of this document library file version
909            */
910            @Override
911            public void setLastPublishDate(Date lastPublishDate) {
912                    _dlFileVersion.setLastPublishDate(lastPublishDate);
913            }
914    
915            /**
916            * Sets the mime type of this document library file version.
917            *
918            * @param mimeType the mime type of this document library file version
919            */
920            @Override
921            public void setMimeType(java.lang.String mimeType) {
922                    _dlFileVersion.setMimeType(mimeType);
923            }
924    
925            /**
926            * Sets the modified date of this document library file version.
927            *
928            * @param modifiedDate the modified date of this document library file version
929            */
930            @Override
931            public void setModifiedDate(Date modifiedDate) {
932                    _dlFileVersion.setModifiedDate(modifiedDate);
933            }
934    
935            @Override
936            public void setNew(boolean n) {
937                    _dlFileVersion.setNew(n);
938            }
939    
940            /**
941            * Sets the primary key of this document library file version.
942            *
943            * @param primaryKey the primary key of this document library file version
944            */
945            @Override
946            public void setPrimaryKey(long primaryKey) {
947                    _dlFileVersion.setPrimaryKey(primaryKey);
948            }
949    
950            @Override
951            public void setPrimaryKeyObj(Serializable primaryKeyObj) {
952                    _dlFileVersion.setPrimaryKeyObj(primaryKeyObj);
953            }
954    
955            /**
956            * Sets the repository ID of this document library file version.
957            *
958            * @param repositoryId the repository ID of this document library file version
959            */
960            @Override
961            public void setRepositoryId(long repositoryId) {
962                    _dlFileVersion.setRepositoryId(repositoryId);
963            }
964    
965            /**
966            * Sets the size of this document library file version.
967            *
968            * @param size the size of this document library file version
969            */
970            @Override
971            public void setSize(long size) {
972                    _dlFileVersion.setSize(size);
973            }
974    
975            /**
976            * Sets the status of this document library file version.
977            *
978            * @param status the status of this document library file version
979            */
980            @Override
981            public void setStatus(int status) {
982                    _dlFileVersion.setStatus(status);
983            }
984    
985            /**
986            * Sets the status by user ID of this document library file version.
987            *
988            * @param statusByUserId the status by user ID of this document library file version
989            */
990            @Override
991            public void setStatusByUserId(long statusByUserId) {
992                    _dlFileVersion.setStatusByUserId(statusByUserId);
993            }
994    
995            /**
996            * Sets the status by user name of this document library file version.
997            *
998            * @param statusByUserName the status by user name of this document library file version
999            */
1000            @Override
1001            public void setStatusByUserName(java.lang.String statusByUserName) {
1002                    _dlFileVersion.setStatusByUserName(statusByUserName);
1003            }
1004    
1005            /**
1006            * Sets the status by user uuid of this document library file version.
1007            *
1008            * @param statusByUserUuid the status by user uuid of this document library file version
1009            */
1010            @Override
1011            public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
1012                    _dlFileVersion.setStatusByUserUuid(statusByUserUuid);
1013            }
1014    
1015            /**
1016            * Sets the status date of this document library file version.
1017            *
1018            * @param statusDate the status date of this document library file version
1019            */
1020            @Override
1021            public void setStatusDate(Date statusDate) {
1022                    _dlFileVersion.setStatusDate(statusDate);
1023            }
1024    
1025            /**
1026            * Sets the title of this document library file version.
1027            *
1028            * @param title the title of this document library file version
1029            */
1030            @Override
1031            public void setTitle(java.lang.String title) {
1032                    _dlFileVersion.setTitle(title);
1033            }
1034    
1035            /**
1036            * Sets the tree path of this document library file version.
1037            *
1038            * @param treePath the tree path of this document library file version
1039            */
1040            @Override
1041            public void setTreePath(java.lang.String treePath) {
1042                    _dlFileVersion.setTreePath(treePath);
1043            }
1044    
1045            /**
1046            * Sets the user ID of this document library file version.
1047            *
1048            * @param userId the user ID of this document library file version
1049            */
1050            @Override
1051            public void setUserId(long userId) {
1052                    _dlFileVersion.setUserId(userId);
1053            }
1054    
1055            /**
1056            * Sets the user name of this document library file version.
1057            *
1058            * @param userName the user name of this document library file version
1059            */
1060            @Override
1061            public void setUserName(java.lang.String userName) {
1062                    _dlFileVersion.setUserName(userName);
1063            }
1064    
1065            /**
1066            * Sets the user uuid of this document library file version.
1067            *
1068            * @param userUuid the user uuid of this document library file version
1069            */
1070            @Override
1071            public void setUserUuid(java.lang.String userUuid) {
1072                    _dlFileVersion.setUserUuid(userUuid);
1073            }
1074    
1075            /**
1076            * Sets the uuid of this document library file version.
1077            *
1078            * @param uuid the uuid of this document library file version
1079            */
1080            @Override
1081            public void setUuid(java.lang.String uuid) {
1082                    _dlFileVersion.setUuid(uuid);
1083            }
1084    
1085            /**
1086            * Sets the version of this document library file version.
1087            *
1088            * @param version the version of this document library file version
1089            */
1090            @Override
1091            public void setVersion(java.lang.String version) {
1092                    _dlFileVersion.setVersion(version);
1093            }
1094    
1095            @Override
1096            public com.liferay.portal.kernel.model.CacheModel<com.liferay.document.library.kernel.model.DLFileVersion> toCacheModel() {
1097                    return _dlFileVersion.toCacheModel();
1098            }
1099    
1100            @Override
1101            public com.liferay.document.library.kernel.model.DLFileVersion toEscapedModel() {
1102                    return new DLFileVersionWrapper(_dlFileVersion.toEscapedModel());
1103            }
1104    
1105            @Override
1106            public java.lang.String toString() {
1107                    return _dlFileVersion.toString();
1108            }
1109    
1110            @Override
1111            public com.liferay.document.library.kernel.model.DLFileVersion toUnescapedModel() {
1112                    return new DLFileVersionWrapper(_dlFileVersion.toUnescapedModel());
1113            }
1114    
1115            @Override
1116            public java.lang.String toXmlString() {
1117                    return _dlFileVersion.toXmlString();
1118            }
1119    
1120            @Override
1121            public void updateTreePath(java.lang.String treePath) {
1122                    _dlFileVersion.updateTreePath(treePath);
1123            }
1124    
1125            @Override
1126            public boolean equals(Object obj) {
1127                    if (this == obj) {
1128                            return true;
1129                    }
1130    
1131                    if (!(obj instanceof DLFileVersionWrapper)) {
1132                            return false;
1133                    }
1134    
1135                    DLFileVersionWrapper dlFileVersionWrapper = (DLFileVersionWrapper)obj;
1136    
1137                    if (Validator.equals(_dlFileVersion, dlFileVersionWrapper._dlFileVersion)) {
1138                            return true;
1139                    }
1140    
1141                    return false;
1142            }
1143    
1144            @Override
1145            public StagedModelType getStagedModelType() {
1146                    return _dlFileVersion.getStagedModelType();
1147            }
1148    
1149            @Override
1150            public DLFileVersion getWrappedModel() {
1151                    return _dlFileVersion;
1152            }
1153    
1154            @Override
1155            public boolean isEntityCacheEnabled() {
1156                    return _dlFileVersion.isEntityCacheEnabled();
1157            }
1158    
1159            @Override
1160            public boolean isFinderCacheEnabled() {
1161                    return _dlFileVersion.isFinderCacheEnabled();
1162            }
1163    
1164            @Override
1165            public void resetOriginalValues() {
1166                    _dlFileVersion.resetOriginalValues();
1167            }
1168    
1169            private final DLFileVersion _dlFileVersion;
1170    }