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