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