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