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.portlet.documentlibrary.model;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.lar.StagedModelType;
020    import com.liferay.portal.kernel.util.Validator;
021    import com.liferay.portal.model.ModelWrapper;
022    
023    import java.util.Date;
024    import java.util.HashMap;
025    import java.util.Map;
026    
027    /**
028     * <p>
029     * This class is a wrapper for {@link DLFileEntryType}.
030     * </p>
031     *
032     * @author Brian Wing Shun Chan
033     * @see DLFileEntryType
034     * @generated
035     */
036    @ProviderType
037    public class DLFileEntryTypeWrapper implements DLFileEntryType,
038            ModelWrapper<DLFileEntryType> {
039            public DLFileEntryTypeWrapper(DLFileEntryType dlFileEntryType) {
040                    _dlFileEntryType = dlFileEntryType;
041            }
042    
043            @Override
044            public Class<?> getModelClass() {
045                    return DLFileEntryType.class;
046            }
047    
048            @Override
049            public String getModelClassName() {
050                    return DLFileEntryType.class.getName();
051            }
052    
053            @Override
054            public Map<String, Object> getModelAttributes() {
055                    Map<String, Object> attributes = new HashMap<String, Object>();
056    
057                    attributes.put("uuid", getUuid());
058                    attributes.put("fileEntryTypeId", getFileEntryTypeId());
059                    attributes.put("groupId", getGroupId());
060                    attributes.put("companyId", getCompanyId());
061                    attributes.put("userId", getUserId());
062                    attributes.put("userName", getUserName());
063                    attributes.put("createDate", getCreateDate());
064                    attributes.put("modifiedDate", getModifiedDate());
065                    attributes.put("fileEntryTypeKey", getFileEntryTypeKey());
066                    attributes.put("name", getName());
067                    attributes.put("description", getDescription());
068    
069                    return attributes;
070            }
071    
072            @Override
073            public void setModelAttributes(Map<String, Object> attributes) {
074                    String uuid = (String)attributes.get("uuid");
075    
076                    if (uuid != null) {
077                            setUuid(uuid);
078                    }
079    
080                    Long fileEntryTypeId = (Long)attributes.get("fileEntryTypeId");
081    
082                    if (fileEntryTypeId != null) {
083                            setFileEntryTypeId(fileEntryTypeId);
084                    }
085    
086                    Long groupId = (Long)attributes.get("groupId");
087    
088                    if (groupId != null) {
089                            setGroupId(groupId);
090                    }
091    
092                    Long companyId = (Long)attributes.get("companyId");
093    
094                    if (companyId != null) {
095                            setCompanyId(companyId);
096                    }
097    
098                    Long userId = (Long)attributes.get("userId");
099    
100                    if (userId != null) {
101                            setUserId(userId);
102                    }
103    
104                    String userName = (String)attributes.get("userName");
105    
106                    if (userName != null) {
107                            setUserName(userName);
108                    }
109    
110                    Date createDate = (Date)attributes.get("createDate");
111    
112                    if (createDate != null) {
113                            setCreateDate(createDate);
114                    }
115    
116                    Date modifiedDate = (Date)attributes.get("modifiedDate");
117    
118                    if (modifiedDate != null) {
119                            setModifiedDate(modifiedDate);
120                    }
121    
122                    String fileEntryTypeKey = (String)attributes.get("fileEntryTypeKey");
123    
124                    if (fileEntryTypeKey != null) {
125                            setFileEntryTypeKey(fileEntryTypeKey);
126                    }
127    
128                    String name = (String)attributes.get("name");
129    
130                    if (name != null) {
131                            setName(name);
132                    }
133    
134                    String description = (String)attributes.get("description");
135    
136                    if (description != null) {
137                            setDescription(description);
138                    }
139            }
140    
141            @Override
142            public java.lang.Object clone() {
143                    return new DLFileEntryTypeWrapper((DLFileEntryType)_dlFileEntryType.clone());
144            }
145    
146            @Override
147            public int compareTo(
148                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType) {
149                    return _dlFileEntryType.compareTo(dlFileEntryType);
150            }
151    
152            @Override
153            public java.lang.String[] getAvailableLanguageIds() {
154                    return _dlFileEntryType.getAvailableLanguageIds();
155            }
156    
157            /**
158            * Returns the company ID of this document library file entry type.
159            *
160            * @return the company ID of this document library file entry type
161            */
162            @Override
163            public long getCompanyId() {
164                    return _dlFileEntryType.getCompanyId();
165            }
166    
167            /**
168            * Returns the create date of this document library file entry type.
169            *
170            * @return the create date of this document library file entry type
171            */
172            @Override
173            public java.util.Date getCreateDate() {
174                    return _dlFileEntryType.getCreateDate();
175            }
176    
177            @Override
178            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getDDMStructures() {
179                    return _dlFileEntryType.getDDMStructures();
180            }
181    
182            @Override
183            public java.lang.String getDefaultLanguageId() {
184                    return _dlFileEntryType.getDefaultLanguageId();
185            }
186    
187            /**
188            * Returns the description of this document library file entry type.
189            *
190            * @return the description of this document library file entry type
191            */
192            @Override
193            public java.lang.String getDescription() {
194                    return _dlFileEntryType.getDescription();
195            }
196    
197            /**
198            * Returns the localized description of this document library file entry type in the language. Uses the default language if no localization exists for the requested language.
199            *
200            * @param languageId the ID of the language
201            * @return the localized description of this document library file entry type
202            */
203            @Override
204            public java.lang.String getDescription(java.lang.String languageId) {
205                    return _dlFileEntryType.getDescription(languageId);
206            }
207    
208            /**
209            * Returns the localized description of this document library file entry type in the language, optionally using the default language if no localization exists for the requested language.
210            *
211            * @param languageId the ID of the language
212            * @param useDefault whether to use the default language if no localization exists for the requested language
213            * @return the localized description of this document library file entry type
214            */
215            @Override
216            public java.lang.String getDescription(java.lang.String languageId,
217                    boolean useDefault) {
218                    return _dlFileEntryType.getDescription(languageId, useDefault);
219            }
220    
221            /**
222            * Returns the localized description of this document library file entry type in the language. Uses the default language if no localization exists for the requested language.
223            *
224            * @param locale the locale of the language
225            * @return the localized description of this document library file entry type
226            */
227            @Override
228            public java.lang.String getDescription(java.util.Locale locale) {
229                    return _dlFileEntryType.getDescription(locale);
230            }
231    
232            /**
233            * Returns the localized description of this document library file entry type in the language, optionally using the default language if no localization exists for the requested language.
234            *
235            * @param locale the local of the language
236            * @param useDefault whether to use the default language if no localization exists for the requested language
237            * @return the localized description of this document library file entry type. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
238            */
239            @Override
240            public java.lang.String getDescription(java.util.Locale locale,
241                    boolean useDefault) {
242                    return _dlFileEntryType.getDescription(locale, useDefault);
243            }
244    
245            @Override
246            public java.lang.String getDescriptionCurrentLanguageId() {
247                    return _dlFileEntryType.getDescriptionCurrentLanguageId();
248            }
249    
250            @Override
251            public java.lang.String getDescriptionCurrentValue() {
252                    return _dlFileEntryType.getDescriptionCurrentValue();
253            }
254    
255            /**
256            * Returns a map of the locales and localized descriptions of this document library file entry type.
257            *
258            * @return the locales and localized descriptions of this document library file entry type
259            */
260            @Override
261            public java.util.Map<java.util.Locale, java.lang.String> getDescriptionMap() {
262                    return _dlFileEntryType.getDescriptionMap();
263            }
264    
265            @Override
266            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
267                    return _dlFileEntryType.getExpandoBridge();
268            }
269    
270            /**
271            * Returns the file entry type ID of this document library file entry type.
272            *
273            * @return the file entry type ID of this document library file entry type
274            */
275            @Override
276            public long getFileEntryTypeId() {
277                    return _dlFileEntryType.getFileEntryTypeId();
278            }
279    
280            /**
281            * Returns the file entry type key of this document library file entry type.
282            *
283            * @return the file entry type key of this document library file entry type
284            */
285            @Override
286            public java.lang.String getFileEntryTypeKey() {
287                    return _dlFileEntryType.getFileEntryTypeKey();
288            }
289    
290            /**
291            * Returns the group ID of this document library file entry type.
292            *
293            * @return the group ID of this document library file entry type
294            */
295            @Override
296            public long getGroupId() {
297                    return _dlFileEntryType.getGroupId();
298            }
299    
300            /**
301            * Returns the modified date of this document library file entry type.
302            *
303            * @return the modified date of this document library file entry type
304            */
305            @Override
306            public java.util.Date getModifiedDate() {
307                    return _dlFileEntryType.getModifiedDate();
308            }
309    
310            /**
311            * Returns the name of this document library file entry type.
312            *
313            * @return the name of this document library file entry type
314            */
315            @Override
316            public java.lang.String getName() {
317                    return _dlFileEntryType.getName();
318            }
319    
320            /**
321            * Returns the localized name of this document library file entry type in the language. Uses the default language if no localization exists for the requested language.
322            *
323            * @param languageId the ID of the language
324            * @return the localized name of this document library file entry type
325            */
326            @Override
327            public java.lang.String getName(java.lang.String languageId) {
328                    return _dlFileEntryType.getName(languageId);
329            }
330    
331            /**
332            * Returns the localized name of this document library file entry type in the language, optionally using the default language if no localization exists for the requested language.
333            *
334            * @param languageId the ID of the language
335            * @param useDefault whether to use the default language if no localization exists for the requested language
336            * @return the localized name of this document library file entry type
337            */
338            @Override
339            public java.lang.String getName(java.lang.String languageId,
340                    boolean useDefault) {
341                    return _dlFileEntryType.getName(languageId, useDefault);
342            }
343    
344            /**
345            * Returns the localized name of this document library file entry type in the language. Uses the default language if no localization exists for the requested language.
346            *
347            * @param locale the locale of the language
348            * @return the localized name of this document library file entry type
349            */
350            @Override
351            public java.lang.String getName(java.util.Locale locale) {
352                    return _dlFileEntryType.getName(locale);
353            }
354    
355            /**
356            * Returns the localized name of this document library file entry type in the language, optionally using the default language if no localization exists for the requested language.
357            *
358            * @param locale the local of the language
359            * @param useDefault whether to use the default language if no localization exists for the requested language
360            * @return the localized name of this document library file entry type. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
361            */
362            @Override
363            public java.lang.String getName(java.util.Locale locale, boolean useDefault) {
364                    return _dlFileEntryType.getName(locale, useDefault);
365            }
366    
367            @Override
368            public java.lang.String getNameCurrentLanguageId() {
369                    return _dlFileEntryType.getNameCurrentLanguageId();
370            }
371    
372            @Override
373            public java.lang.String getNameCurrentValue() {
374                    return _dlFileEntryType.getNameCurrentValue();
375            }
376    
377            /**
378            * Returns a map of the locales and localized names of this document library file entry type.
379            *
380            * @return the locales and localized names of this document library file entry type
381            */
382            @Override
383            public java.util.Map<java.util.Locale, java.lang.String> getNameMap() {
384                    return _dlFileEntryType.getNameMap();
385            }
386    
387            /**
388            * Returns the primary key of this document library file entry type.
389            *
390            * @return the primary key of this document library file entry type
391            */
392            @Override
393            public long getPrimaryKey() {
394                    return _dlFileEntryType.getPrimaryKey();
395            }
396    
397            @Override
398            public java.io.Serializable getPrimaryKeyObj() {
399                    return _dlFileEntryType.getPrimaryKeyObj();
400            }
401    
402            @Override
403            public java.lang.String getUnambiguousName(
404                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> dlFileEntryTypes,
405                    long groupId, java.util.Locale locale)
406                    throws com.liferay.portal.kernel.exception.PortalException {
407                    return _dlFileEntryType.getUnambiguousName(dlFileEntryTypes, groupId,
408                            locale);
409            }
410    
411            /**
412            * Returns the user ID of this document library file entry type.
413            *
414            * @return the user ID of this document library file entry type
415            */
416            @Override
417            public long getUserId() {
418                    return _dlFileEntryType.getUserId();
419            }
420    
421            /**
422            * Returns the user name of this document library file entry type.
423            *
424            * @return the user name of this document library file entry type
425            */
426            @Override
427            public java.lang.String getUserName() {
428                    return _dlFileEntryType.getUserName();
429            }
430    
431            /**
432            * Returns the user uuid of this document library file entry type.
433            *
434            * @return the user uuid of this document library file entry type
435            */
436            @Override
437            public java.lang.String getUserUuid() {
438                    return _dlFileEntryType.getUserUuid();
439            }
440    
441            /**
442            * Returns the uuid of this document library file entry type.
443            *
444            * @return the uuid of this document library file entry type
445            */
446            @Override
447            public java.lang.String getUuid() {
448                    return _dlFileEntryType.getUuid();
449            }
450    
451            @Override
452            public int hashCode() {
453                    return _dlFileEntryType.hashCode();
454            }
455    
456            @Override
457            public boolean isCachedModel() {
458                    return _dlFileEntryType.isCachedModel();
459            }
460    
461            @Override
462            public boolean isEscapedModel() {
463                    return _dlFileEntryType.isEscapedModel();
464            }
465    
466            @Override
467            public boolean isExportable() {
468                    return _dlFileEntryType.isExportable();
469            }
470    
471            @Override
472            public boolean isNew() {
473                    return _dlFileEntryType.isNew();
474            }
475    
476            @Override
477            public void persist() {
478                    _dlFileEntryType.persist();
479            }
480    
481            @Override
482            public void prepareLocalizedFieldsForImport()
483                    throws com.liferay.portal.LocaleException {
484                    _dlFileEntryType.prepareLocalizedFieldsForImport();
485            }
486    
487            @Override
488            public void prepareLocalizedFieldsForImport(
489                    java.util.Locale defaultImportLocale)
490                    throws com.liferay.portal.LocaleException {
491                    _dlFileEntryType.prepareLocalizedFieldsForImport(defaultImportLocale);
492            }
493    
494            @Override
495            public void setCachedModel(boolean cachedModel) {
496                    _dlFileEntryType.setCachedModel(cachedModel);
497            }
498    
499            /**
500            * Sets the company ID of this document library file entry type.
501            *
502            * @param companyId the company ID of this document library file entry type
503            */
504            @Override
505            public void setCompanyId(long companyId) {
506                    _dlFileEntryType.setCompanyId(companyId);
507            }
508    
509            /**
510            * Sets the create date of this document library file entry type.
511            *
512            * @param createDate the create date of this document library file entry type
513            */
514            @Override
515            public void setCreateDate(java.util.Date createDate) {
516                    _dlFileEntryType.setCreateDate(createDate);
517            }
518    
519            /**
520            * Sets the description of this document library file entry type.
521            *
522            * @param description the description of this document library file entry type
523            */
524            @Override
525            public void setDescription(java.lang.String description) {
526                    _dlFileEntryType.setDescription(description);
527            }
528    
529            /**
530            * Sets the localized description of this document library file entry type in the language.
531            *
532            * @param description the localized description of this document library file entry type
533            * @param locale the locale of the language
534            */
535            @Override
536            public void setDescription(java.lang.String description,
537                    java.util.Locale locale) {
538                    _dlFileEntryType.setDescription(description, locale);
539            }
540    
541            /**
542            * Sets the localized description of this document library file entry type in the language, and sets the default locale.
543            *
544            * @param description the localized description of this document library file entry type
545            * @param locale the locale of the language
546            * @param defaultLocale the default locale
547            */
548            @Override
549            public void setDescription(java.lang.String description,
550                    java.util.Locale locale, java.util.Locale defaultLocale) {
551                    _dlFileEntryType.setDescription(description, locale, defaultLocale);
552            }
553    
554            @Override
555            public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
556                    _dlFileEntryType.setDescriptionCurrentLanguageId(languageId);
557            }
558    
559            /**
560            * Sets the localized descriptions of this document library file entry type from the map of locales and localized descriptions.
561            *
562            * @param descriptionMap the locales and localized descriptions of this document library file entry type
563            */
564            @Override
565            public void setDescriptionMap(
566                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap) {
567                    _dlFileEntryType.setDescriptionMap(descriptionMap);
568            }
569    
570            /**
571            * Sets the localized descriptions of this document library file entry type from the map of locales and localized descriptions, and sets the default locale.
572            *
573            * @param descriptionMap the locales and localized descriptions of this document library file entry type
574            * @param defaultLocale the default locale
575            */
576            @Override
577            public void setDescriptionMap(
578                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
579                    java.util.Locale defaultLocale) {
580                    _dlFileEntryType.setDescriptionMap(descriptionMap, defaultLocale);
581            }
582    
583            @Override
584            public void setExpandoBridgeAttributes(
585                    com.liferay.portal.model.BaseModel<?> baseModel) {
586                    _dlFileEntryType.setExpandoBridgeAttributes(baseModel);
587            }
588    
589            @Override
590            public void setExpandoBridgeAttributes(
591                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
592                    _dlFileEntryType.setExpandoBridgeAttributes(expandoBridge);
593            }
594    
595            @Override
596            public void setExpandoBridgeAttributes(
597                    com.liferay.portal.service.ServiceContext serviceContext) {
598                    _dlFileEntryType.setExpandoBridgeAttributes(serviceContext);
599            }
600    
601            /**
602            * Sets the file entry type ID of this document library file entry type.
603            *
604            * @param fileEntryTypeId the file entry type ID of this document library file entry type
605            */
606            @Override
607            public void setFileEntryTypeId(long fileEntryTypeId) {
608                    _dlFileEntryType.setFileEntryTypeId(fileEntryTypeId);
609            }
610    
611            /**
612            * Sets the file entry type key of this document library file entry type.
613            *
614            * @param fileEntryTypeKey the file entry type key of this document library file entry type
615            */
616            @Override
617            public void setFileEntryTypeKey(java.lang.String fileEntryTypeKey) {
618                    _dlFileEntryType.setFileEntryTypeKey(fileEntryTypeKey);
619            }
620    
621            /**
622            * Sets the group ID of this document library file entry type.
623            *
624            * @param groupId the group ID of this document library file entry type
625            */
626            @Override
627            public void setGroupId(long groupId) {
628                    _dlFileEntryType.setGroupId(groupId);
629            }
630    
631            /**
632            * Sets the modified date of this document library file entry type.
633            *
634            * @param modifiedDate the modified date of this document library file entry type
635            */
636            @Override
637            public void setModifiedDate(java.util.Date modifiedDate) {
638                    _dlFileEntryType.setModifiedDate(modifiedDate);
639            }
640    
641            /**
642            * Sets the name of this document library file entry type.
643            *
644            * @param name the name of this document library file entry type
645            */
646            @Override
647            public void setName(java.lang.String name) {
648                    _dlFileEntryType.setName(name);
649            }
650    
651            /**
652            * Sets the localized name of this document library file entry type in the language.
653            *
654            * @param name the localized name of this document library file entry type
655            * @param locale the locale of the language
656            */
657            @Override
658            public void setName(java.lang.String name, java.util.Locale locale) {
659                    _dlFileEntryType.setName(name, locale);
660            }
661    
662            /**
663            * Sets the localized name of this document library file entry type in the language, and sets the default locale.
664            *
665            * @param name the localized name of this document library file entry type
666            * @param locale the locale of the language
667            * @param defaultLocale the default locale
668            */
669            @Override
670            public void setName(java.lang.String name, java.util.Locale locale,
671                    java.util.Locale defaultLocale) {
672                    _dlFileEntryType.setName(name, locale, defaultLocale);
673            }
674    
675            @Override
676            public void setNameCurrentLanguageId(java.lang.String languageId) {
677                    _dlFileEntryType.setNameCurrentLanguageId(languageId);
678            }
679    
680            /**
681            * Sets the localized names of this document library file entry type from the map of locales and localized names.
682            *
683            * @param nameMap the locales and localized names of this document library file entry type
684            */
685            @Override
686            public void setNameMap(
687                    java.util.Map<java.util.Locale, java.lang.String> nameMap) {
688                    _dlFileEntryType.setNameMap(nameMap);
689            }
690    
691            /**
692            * Sets the localized names of this document library file entry type from the map of locales and localized names, and sets the default locale.
693            *
694            * @param nameMap the locales and localized names of this document library file entry type
695            * @param defaultLocale the default locale
696            */
697            @Override
698            public void setNameMap(
699                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
700                    java.util.Locale defaultLocale) {
701                    _dlFileEntryType.setNameMap(nameMap, defaultLocale);
702            }
703    
704            @Override
705            public void setNew(boolean n) {
706                    _dlFileEntryType.setNew(n);
707            }
708    
709            /**
710            * Sets the primary key of this document library file entry type.
711            *
712            * @param primaryKey the primary key of this document library file entry type
713            */
714            @Override
715            public void setPrimaryKey(long primaryKey) {
716                    _dlFileEntryType.setPrimaryKey(primaryKey);
717            }
718    
719            @Override
720            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
721                    _dlFileEntryType.setPrimaryKeyObj(primaryKeyObj);
722            }
723    
724            /**
725            * Sets the user ID of this document library file entry type.
726            *
727            * @param userId the user ID of this document library file entry type
728            */
729            @Override
730            public void setUserId(long userId) {
731                    _dlFileEntryType.setUserId(userId);
732            }
733    
734            /**
735            * Sets the user name of this document library file entry type.
736            *
737            * @param userName the user name of this document library file entry type
738            */
739            @Override
740            public void setUserName(java.lang.String userName) {
741                    _dlFileEntryType.setUserName(userName);
742            }
743    
744            /**
745            * Sets the user uuid of this document library file entry type.
746            *
747            * @param userUuid the user uuid of this document library file entry type
748            */
749            @Override
750            public void setUserUuid(java.lang.String userUuid) {
751                    _dlFileEntryType.setUserUuid(userUuid);
752            }
753    
754            /**
755            * Sets the uuid of this document library file entry type.
756            *
757            * @param uuid the uuid of this document library file entry type
758            */
759            @Override
760            public void setUuid(java.lang.String uuid) {
761                    _dlFileEntryType.setUuid(uuid);
762            }
763    
764            @Override
765            public com.liferay.portal.model.CacheModel<com.liferay.portlet.documentlibrary.model.DLFileEntryType> toCacheModel() {
766                    return _dlFileEntryType.toCacheModel();
767            }
768    
769            @Override
770            public com.liferay.portlet.documentlibrary.model.DLFileEntryType toEscapedModel() {
771                    return new DLFileEntryTypeWrapper(_dlFileEntryType.toEscapedModel());
772            }
773    
774            @Override
775            public java.lang.String toString() {
776                    return _dlFileEntryType.toString();
777            }
778    
779            @Override
780            public com.liferay.portlet.documentlibrary.model.DLFileEntryType toUnescapedModel() {
781                    return new DLFileEntryTypeWrapper(_dlFileEntryType.toUnescapedModel());
782            }
783    
784            @Override
785            public java.lang.String toXmlString() {
786                    return _dlFileEntryType.toXmlString();
787            }
788    
789            @Override
790            public boolean equals(Object obj) {
791                    if (this == obj) {
792                            return true;
793                    }
794    
795                    if (!(obj instanceof DLFileEntryTypeWrapper)) {
796                            return false;
797                    }
798    
799                    DLFileEntryTypeWrapper dlFileEntryTypeWrapper = (DLFileEntryTypeWrapper)obj;
800    
801                    if (Validator.equals(_dlFileEntryType,
802                                            dlFileEntryTypeWrapper._dlFileEntryType)) {
803                            return true;
804                    }
805    
806                    return false;
807            }
808    
809            @Override
810            public StagedModelType getStagedModelType() {
811                    return _dlFileEntryType.getStagedModelType();
812            }
813    
814            /**
815             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
816             */
817            @Deprecated
818            public DLFileEntryType getWrappedDLFileEntryType() {
819                    return _dlFileEntryType;
820            }
821    
822            @Override
823            public DLFileEntryType getWrappedModel() {
824                    return _dlFileEntryType;
825            }
826    
827            @Override
828            public boolean isEntityCacheEnabled() {
829                    return _dlFileEntryType.isEntityCacheEnabled();
830            }
831    
832            @Override
833            public boolean isFinderCacheEnabled() {
834                    return _dlFileEntryType.isFinderCacheEnabled();
835            }
836    
837            @Override
838            public void resetOriginalValues() {
839                    _dlFileEntryType.resetOriginalValues();
840            }
841    
842            private final DLFileEntryType _dlFileEntryType;
843    }