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