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