001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.bookmarks.model;
016    
017    import com.liferay.portal.kernel.lar.StagedModelType;
018    import com.liferay.portal.kernel.util.Validator;
019    import com.liferay.portal.model.ModelWrapper;
020    
021    import java.util.Date;
022    import java.util.HashMap;
023    import java.util.Map;
024    
025    /**
026     * <p>
027     * This class is a wrapper for {@link BookmarksEntry}.
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see BookmarksEntry
032     * @generated
033     */
034    public class BookmarksEntryWrapper implements BookmarksEntry,
035            ModelWrapper<BookmarksEntry> {
036            public BookmarksEntryWrapper(BookmarksEntry bookmarksEntry) {
037                    _bookmarksEntry = bookmarksEntry;
038            }
039    
040            @Override
041            public Class<?> getModelClass() {
042                    return BookmarksEntry.class;
043            }
044    
045            @Override
046            public String getModelClassName() {
047                    return BookmarksEntry.class.getName();
048            }
049    
050            @Override
051            public Map<String, Object> getModelAttributes() {
052                    Map<String, Object> attributes = new HashMap<String, Object>();
053    
054                    attributes.put("uuid", getUuid());
055                    attributes.put("entryId", getEntryId());
056                    attributes.put("groupId", getGroupId());
057                    attributes.put("companyId", getCompanyId());
058                    attributes.put("userId", getUserId());
059                    attributes.put("userName", getUserName());
060                    attributes.put("createDate", getCreateDate());
061                    attributes.put("modifiedDate", getModifiedDate());
062                    attributes.put("resourceBlockId", getResourceBlockId());
063                    attributes.put("folderId", getFolderId());
064                    attributes.put("name", getName());
065                    attributes.put("url", getUrl());
066                    attributes.put("description", getDescription());
067                    attributes.put("visits", getVisits());
068                    attributes.put("priority", getPriority());
069                    attributes.put("status", getStatus());
070                    attributes.put("statusByUserId", getStatusByUserId());
071                    attributes.put("statusByUserName", getStatusByUserName());
072                    attributes.put("statusDate", getStatusDate());
073    
074                    return attributes;
075            }
076    
077            @Override
078            public void setModelAttributes(Map<String, Object> attributes) {
079                    String uuid = (String)attributes.get("uuid");
080    
081                    if (uuid != null) {
082                            setUuid(uuid);
083                    }
084    
085                    Long entryId = (Long)attributes.get("entryId");
086    
087                    if (entryId != null) {
088                            setEntryId(entryId);
089                    }
090    
091                    Long groupId = (Long)attributes.get("groupId");
092    
093                    if (groupId != null) {
094                            setGroupId(groupId);
095                    }
096    
097                    Long companyId = (Long)attributes.get("companyId");
098    
099                    if (companyId != null) {
100                            setCompanyId(companyId);
101                    }
102    
103                    Long userId = (Long)attributes.get("userId");
104    
105                    if (userId != null) {
106                            setUserId(userId);
107                    }
108    
109                    String userName = (String)attributes.get("userName");
110    
111                    if (userName != null) {
112                            setUserName(userName);
113                    }
114    
115                    Date createDate = (Date)attributes.get("createDate");
116    
117                    if (createDate != null) {
118                            setCreateDate(createDate);
119                    }
120    
121                    Date modifiedDate = (Date)attributes.get("modifiedDate");
122    
123                    if (modifiedDate != null) {
124                            setModifiedDate(modifiedDate);
125                    }
126    
127                    Long resourceBlockId = (Long)attributes.get("resourceBlockId");
128    
129                    if (resourceBlockId != null) {
130                            setResourceBlockId(resourceBlockId);
131                    }
132    
133                    Long folderId = (Long)attributes.get("folderId");
134    
135                    if (folderId != null) {
136                            setFolderId(folderId);
137                    }
138    
139                    String name = (String)attributes.get("name");
140    
141                    if (name != null) {
142                            setName(name);
143                    }
144    
145                    String url = (String)attributes.get("url");
146    
147                    if (url != null) {
148                            setUrl(url);
149                    }
150    
151                    String description = (String)attributes.get("description");
152    
153                    if (description != null) {
154                            setDescription(description);
155                    }
156    
157                    Integer visits = (Integer)attributes.get("visits");
158    
159                    if (visits != null) {
160                            setVisits(visits);
161                    }
162    
163                    Integer priority = (Integer)attributes.get("priority");
164    
165                    if (priority != null) {
166                            setPriority(priority);
167                    }
168    
169                    Integer status = (Integer)attributes.get("status");
170    
171                    if (status != null) {
172                            setStatus(status);
173                    }
174    
175                    Long statusByUserId = (Long)attributes.get("statusByUserId");
176    
177                    if (statusByUserId != null) {
178                            setStatusByUserId(statusByUserId);
179                    }
180    
181                    String statusByUserName = (String)attributes.get("statusByUserName");
182    
183                    if (statusByUserName != null) {
184                            setStatusByUserName(statusByUserName);
185                    }
186    
187                    Date statusDate = (Date)attributes.get("statusDate");
188    
189                    if (statusDate != null) {
190                            setStatusDate(statusDate);
191                    }
192            }
193    
194            /**
195            * Returns the primary key of this bookmarks entry.
196            *
197            * @return the primary key of this bookmarks entry
198            */
199            @Override
200            public long getPrimaryKey() {
201                    return _bookmarksEntry.getPrimaryKey();
202            }
203    
204            /**
205            * Sets the primary key of this bookmarks entry.
206            *
207            * @param primaryKey the primary key of this bookmarks entry
208            */
209            @Override
210            public void setPrimaryKey(long primaryKey) {
211                    _bookmarksEntry.setPrimaryKey(primaryKey);
212            }
213    
214            /**
215            * Returns the uuid of this bookmarks entry.
216            *
217            * @return the uuid of this bookmarks entry
218            */
219            @Override
220            public java.lang.String getUuid() {
221                    return _bookmarksEntry.getUuid();
222            }
223    
224            /**
225            * Sets the uuid of this bookmarks entry.
226            *
227            * @param uuid the uuid of this bookmarks entry
228            */
229            @Override
230            public void setUuid(java.lang.String uuid) {
231                    _bookmarksEntry.setUuid(uuid);
232            }
233    
234            /**
235            * Returns the entry ID of this bookmarks entry.
236            *
237            * @return the entry ID of this bookmarks entry
238            */
239            @Override
240            public long getEntryId() {
241                    return _bookmarksEntry.getEntryId();
242            }
243    
244            /**
245            * Sets the entry ID of this bookmarks entry.
246            *
247            * @param entryId the entry ID of this bookmarks entry
248            */
249            @Override
250            public void setEntryId(long entryId) {
251                    _bookmarksEntry.setEntryId(entryId);
252            }
253    
254            /**
255            * Returns the group ID of this bookmarks entry.
256            *
257            * @return the group ID of this bookmarks entry
258            */
259            @Override
260            public long getGroupId() {
261                    return _bookmarksEntry.getGroupId();
262            }
263    
264            /**
265            * Sets the group ID of this bookmarks entry.
266            *
267            * @param groupId the group ID of this bookmarks entry
268            */
269            @Override
270            public void setGroupId(long groupId) {
271                    _bookmarksEntry.setGroupId(groupId);
272            }
273    
274            /**
275            * Returns the company ID of this bookmarks entry.
276            *
277            * @return the company ID of this bookmarks entry
278            */
279            @Override
280            public long getCompanyId() {
281                    return _bookmarksEntry.getCompanyId();
282            }
283    
284            /**
285            * Sets the company ID of this bookmarks entry.
286            *
287            * @param companyId the company ID of this bookmarks entry
288            */
289            @Override
290            public void setCompanyId(long companyId) {
291                    _bookmarksEntry.setCompanyId(companyId);
292            }
293    
294            /**
295            * Returns the user ID of this bookmarks entry.
296            *
297            * @return the user ID of this bookmarks entry
298            */
299            @Override
300            public long getUserId() {
301                    return _bookmarksEntry.getUserId();
302            }
303    
304            /**
305            * Sets the user ID of this bookmarks entry.
306            *
307            * @param userId the user ID of this bookmarks entry
308            */
309            @Override
310            public void setUserId(long userId) {
311                    _bookmarksEntry.setUserId(userId);
312            }
313    
314            /**
315            * Returns the user uuid of this bookmarks entry.
316            *
317            * @return the user uuid of this bookmarks entry
318            * @throws SystemException if a system exception occurred
319            */
320            @Override
321            public java.lang.String getUserUuid()
322                    throws com.liferay.portal.kernel.exception.SystemException {
323                    return _bookmarksEntry.getUserUuid();
324            }
325    
326            /**
327            * Sets the user uuid of this bookmarks entry.
328            *
329            * @param userUuid the user uuid of this bookmarks entry
330            */
331            @Override
332            public void setUserUuid(java.lang.String userUuid) {
333                    _bookmarksEntry.setUserUuid(userUuid);
334            }
335    
336            /**
337            * Returns the user name of this bookmarks entry.
338            *
339            * @return the user name of this bookmarks entry
340            */
341            @Override
342            public java.lang.String getUserName() {
343                    return _bookmarksEntry.getUserName();
344            }
345    
346            /**
347            * Sets the user name of this bookmarks entry.
348            *
349            * @param userName the user name of this bookmarks entry
350            */
351            @Override
352            public void setUserName(java.lang.String userName) {
353                    _bookmarksEntry.setUserName(userName);
354            }
355    
356            /**
357            * Returns the create date of this bookmarks entry.
358            *
359            * @return the create date of this bookmarks entry
360            */
361            @Override
362            public java.util.Date getCreateDate() {
363                    return _bookmarksEntry.getCreateDate();
364            }
365    
366            /**
367            * Sets the create date of this bookmarks entry.
368            *
369            * @param createDate the create date of this bookmarks entry
370            */
371            @Override
372            public void setCreateDate(java.util.Date createDate) {
373                    _bookmarksEntry.setCreateDate(createDate);
374            }
375    
376            /**
377            * Returns the modified date of this bookmarks entry.
378            *
379            * @return the modified date of this bookmarks entry
380            */
381            @Override
382            public java.util.Date getModifiedDate() {
383                    return _bookmarksEntry.getModifiedDate();
384            }
385    
386            /**
387            * Sets the modified date of this bookmarks entry.
388            *
389            * @param modifiedDate the modified date of this bookmarks entry
390            */
391            @Override
392            public void setModifiedDate(java.util.Date modifiedDate) {
393                    _bookmarksEntry.setModifiedDate(modifiedDate);
394            }
395    
396            /**
397            * Returns the resource block ID of this bookmarks entry.
398            *
399            * @return the resource block ID of this bookmarks entry
400            */
401            @Override
402            public long getResourceBlockId() {
403                    return _bookmarksEntry.getResourceBlockId();
404            }
405    
406            /**
407            * Sets the resource block ID of this bookmarks entry.
408            *
409            * @param resourceBlockId the resource block ID of this bookmarks entry
410            */
411            @Override
412            public void setResourceBlockId(long resourceBlockId) {
413                    _bookmarksEntry.setResourceBlockId(resourceBlockId);
414            }
415    
416            /**
417            * Returns the folder ID of this bookmarks entry.
418            *
419            * @return the folder ID of this bookmarks entry
420            */
421            @Override
422            public long getFolderId() {
423                    return _bookmarksEntry.getFolderId();
424            }
425    
426            /**
427            * Sets the folder ID of this bookmarks entry.
428            *
429            * @param folderId the folder ID of this bookmarks entry
430            */
431            @Override
432            public void setFolderId(long folderId) {
433                    _bookmarksEntry.setFolderId(folderId);
434            }
435    
436            /**
437            * Returns the name of this bookmarks entry.
438            *
439            * @return the name of this bookmarks entry
440            */
441            @Override
442            public java.lang.String getName() {
443                    return _bookmarksEntry.getName();
444            }
445    
446            /**
447            * Sets the name of this bookmarks entry.
448            *
449            * @param name the name of this bookmarks entry
450            */
451            @Override
452            public void setName(java.lang.String name) {
453                    _bookmarksEntry.setName(name);
454            }
455    
456            /**
457            * Returns the url of this bookmarks entry.
458            *
459            * @return the url of this bookmarks entry
460            */
461            @Override
462            public java.lang.String getUrl() {
463                    return _bookmarksEntry.getUrl();
464            }
465    
466            /**
467            * Sets the url of this bookmarks entry.
468            *
469            * @param url the url of this bookmarks entry
470            */
471            @Override
472            public void setUrl(java.lang.String url) {
473                    _bookmarksEntry.setUrl(url);
474            }
475    
476            /**
477            * Returns the description of this bookmarks entry.
478            *
479            * @return the description of this bookmarks entry
480            */
481            @Override
482            public java.lang.String getDescription() {
483                    return _bookmarksEntry.getDescription();
484            }
485    
486            /**
487            * Sets the description of this bookmarks entry.
488            *
489            * @param description the description of this bookmarks entry
490            */
491            @Override
492            public void setDescription(java.lang.String description) {
493                    _bookmarksEntry.setDescription(description);
494            }
495    
496            /**
497            * Returns the visits of this bookmarks entry.
498            *
499            * @return the visits of this bookmarks entry
500            */
501            @Override
502            public int getVisits() {
503                    return _bookmarksEntry.getVisits();
504            }
505    
506            /**
507            * Sets the visits of this bookmarks entry.
508            *
509            * @param visits the visits of this bookmarks entry
510            */
511            @Override
512            public void setVisits(int visits) {
513                    _bookmarksEntry.setVisits(visits);
514            }
515    
516            /**
517            * Returns the priority of this bookmarks entry.
518            *
519            * @return the priority of this bookmarks entry
520            */
521            @Override
522            public int getPriority() {
523                    return _bookmarksEntry.getPriority();
524            }
525    
526            /**
527            * Sets the priority of this bookmarks entry.
528            *
529            * @param priority the priority of this bookmarks entry
530            */
531            @Override
532            public void setPriority(int priority) {
533                    _bookmarksEntry.setPriority(priority);
534            }
535    
536            /**
537            * Returns the status of this bookmarks entry.
538            *
539            * @return the status of this bookmarks entry
540            */
541            @Override
542            public int getStatus() {
543                    return _bookmarksEntry.getStatus();
544            }
545    
546            /**
547            * Sets the status of this bookmarks entry.
548            *
549            * @param status the status of this bookmarks entry
550            */
551            @Override
552            public void setStatus(int status) {
553                    _bookmarksEntry.setStatus(status);
554            }
555    
556            /**
557            * Returns the status by user ID of this bookmarks entry.
558            *
559            * @return the status by user ID of this bookmarks entry
560            */
561            @Override
562            public long getStatusByUserId() {
563                    return _bookmarksEntry.getStatusByUserId();
564            }
565    
566            /**
567            * Sets the status by user ID of this bookmarks entry.
568            *
569            * @param statusByUserId the status by user ID of this bookmarks entry
570            */
571            @Override
572            public void setStatusByUserId(long statusByUserId) {
573                    _bookmarksEntry.setStatusByUserId(statusByUserId);
574            }
575    
576            /**
577            * Returns the status by user uuid of this bookmarks entry.
578            *
579            * @return the status by user uuid of this bookmarks entry
580            * @throws SystemException if a system exception occurred
581            */
582            @Override
583            public java.lang.String getStatusByUserUuid()
584                    throws com.liferay.portal.kernel.exception.SystemException {
585                    return _bookmarksEntry.getStatusByUserUuid();
586            }
587    
588            /**
589            * Sets the status by user uuid of this bookmarks entry.
590            *
591            * @param statusByUserUuid the status by user uuid of this bookmarks entry
592            */
593            @Override
594            public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
595                    _bookmarksEntry.setStatusByUserUuid(statusByUserUuid);
596            }
597    
598            /**
599            * Returns the status by user name of this bookmarks entry.
600            *
601            * @return the status by user name of this bookmarks entry
602            */
603            @Override
604            public java.lang.String getStatusByUserName() {
605                    return _bookmarksEntry.getStatusByUserName();
606            }
607    
608            /**
609            * Sets the status by user name of this bookmarks entry.
610            *
611            * @param statusByUserName the status by user name of this bookmarks entry
612            */
613            @Override
614            public void setStatusByUserName(java.lang.String statusByUserName) {
615                    _bookmarksEntry.setStatusByUserName(statusByUserName);
616            }
617    
618            /**
619            * Returns the status date of this bookmarks entry.
620            *
621            * @return the status date of this bookmarks entry
622            */
623            @Override
624            public java.util.Date getStatusDate() {
625                    return _bookmarksEntry.getStatusDate();
626            }
627    
628            /**
629            * Sets the status date of this bookmarks entry.
630            *
631            * @param statusDate the status date of this bookmarks entry
632            */
633            @Override
634            public void setStatusDate(java.util.Date statusDate) {
635                    _bookmarksEntry.setStatusDate(statusDate);
636            }
637    
638            /**
639            * @deprecated As of 6.1.0, replaced by {@link #isApproved()}
640            */
641            @Override
642            public boolean getApproved() {
643                    return _bookmarksEntry.getApproved();
644            }
645    
646            /**
647            * Returns <code>true</code> if this bookmarks entry is approved.
648            *
649            * @return <code>true</code> if this bookmarks entry is approved; <code>false</code> otherwise
650            */
651            @Override
652            public boolean isApproved() {
653                    return _bookmarksEntry.isApproved();
654            }
655    
656            /**
657            * Returns <code>true</code> if this bookmarks entry is denied.
658            *
659            * @return <code>true</code> if this bookmarks entry is denied; <code>false</code> otherwise
660            */
661            @Override
662            public boolean isDenied() {
663                    return _bookmarksEntry.isDenied();
664            }
665    
666            /**
667            * Returns <code>true</code> if this bookmarks entry is a draft.
668            *
669            * @return <code>true</code> if this bookmarks entry is a draft; <code>false</code> otherwise
670            */
671            @Override
672            public boolean isDraft() {
673                    return _bookmarksEntry.isDraft();
674            }
675    
676            /**
677            * Returns <code>true</code> if this bookmarks entry is expired.
678            *
679            * @return <code>true</code> if this bookmarks entry is expired; <code>false</code> otherwise
680            */
681            @Override
682            public boolean isExpired() {
683                    return _bookmarksEntry.isExpired();
684            }
685    
686            /**
687            * Returns <code>true</code> if this bookmarks entry is inactive.
688            *
689            * @return <code>true</code> if this bookmarks entry is inactive; <code>false</code> otherwise
690            */
691            @Override
692            public boolean isInactive() {
693                    return _bookmarksEntry.isInactive();
694            }
695    
696            /**
697            * Returns <code>true</code> if this bookmarks entry is incomplete.
698            *
699            * @return <code>true</code> if this bookmarks entry is incomplete; <code>false</code> otherwise
700            */
701            @Override
702            public boolean isIncomplete() {
703                    return _bookmarksEntry.isIncomplete();
704            }
705    
706            /**
707            * Returns <code>true</code> if this bookmarks entry is in the Recycle Bin.
708            *
709            * @return <code>true</code> if this bookmarks entry is in the Recycle Bin; <code>false</code> otherwise
710            */
711            @Override
712            public boolean isInTrash() {
713                    return _bookmarksEntry.isInTrash();
714            }
715    
716            /**
717            * Returns <code>true</code> if this bookmarks entry is pending.
718            *
719            * @return <code>true</code> if this bookmarks entry is pending; <code>false</code> otherwise
720            */
721            @Override
722            public boolean isPending() {
723                    return _bookmarksEntry.isPending();
724            }
725    
726            /**
727            * Returns <code>true</code> if this bookmarks entry is scheduled.
728            *
729            * @return <code>true</code> if this bookmarks entry is scheduled; <code>false</code> otherwise
730            */
731            @Override
732            public boolean isScheduled() {
733                    return _bookmarksEntry.isScheduled();
734            }
735    
736            @Override
737            public boolean isNew() {
738                    return _bookmarksEntry.isNew();
739            }
740    
741            @Override
742            public void setNew(boolean n) {
743                    _bookmarksEntry.setNew(n);
744            }
745    
746            @Override
747            public boolean isCachedModel() {
748                    return _bookmarksEntry.isCachedModel();
749            }
750    
751            @Override
752            public void setCachedModel(boolean cachedModel) {
753                    _bookmarksEntry.setCachedModel(cachedModel);
754            }
755    
756            @Override
757            public boolean isEscapedModel() {
758                    return _bookmarksEntry.isEscapedModel();
759            }
760    
761            @Override
762            public java.io.Serializable getPrimaryKeyObj() {
763                    return _bookmarksEntry.getPrimaryKeyObj();
764            }
765    
766            @Override
767            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
768                    _bookmarksEntry.setPrimaryKeyObj(primaryKeyObj);
769            }
770    
771            @Override
772            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
773                    return _bookmarksEntry.getExpandoBridge();
774            }
775    
776            @Override
777            public void setExpandoBridgeAttributes(
778                    com.liferay.portal.model.BaseModel<?> baseModel) {
779                    _bookmarksEntry.setExpandoBridgeAttributes(baseModel);
780            }
781    
782            @Override
783            public void setExpandoBridgeAttributes(
784                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
785                    _bookmarksEntry.setExpandoBridgeAttributes(expandoBridge);
786            }
787    
788            @Override
789            public void setExpandoBridgeAttributes(
790                    com.liferay.portal.service.ServiceContext serviceContext) {
791                    _bookmarksEntry.setExpandoBridgeAttributes(serviceContext);
792            }
793    
794            @Override
795            public java.lang.Object clone() {
796                    return new BookmarksEntryWrapper((BookmarksEntry)_bookmarksEntry.clone());
797            }
798    
799            @Override
800            public int compareTo(
801                    com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry) {
802                    return _bookmarksEntry.compareTo(bookmarksEntry);
803            }
804    
805            @Override
806            public int hashCode() {
807                    return _bookmarksEntry.hashCode();
808            }
809    
810            @Override
811            public com.liferay.portal.model.CacheModel<com.liferay.portlet.bookmarks.model.BookmarksEntry> toCacheModel() {
812                    return _bookmarksEntry.toCacheModel();
813            }
814    
815            @Override
816            public com.liferay.portlet.bookmarks.model.BookmarksEntry toEscapedModel() {
817                    return new BookmarksEntryWrapper(_bookmarksEntry.toEscapedModel());
818            }
819    
820            @Override
821            public com.liferay.portlet.bookmarks.model.BookmarksEntry toUnescapedModel() {
822                    return new BookmarksEntryWrapper(_bookmarksEntry.toUnescapedModel());
823            }
824    
825            @Override
826            public java.lang.String toString() {
827                    return _bookmarksEntry.toString();
828            }
829    
830            @Override
831            public java.lang.String toXmlString() {
832                    return _bookmarksEntry.toXmlString();
833            }
834    
835            @Override
836            public void persist()
837                    throws com.liferay.portal.kernel.exception.SystemException {
838                    _bookmarksEntry.persist();
839            }
840    
841            @Override
842            public com.liferay.portlet.bookmarks.model.BookmarksFolder getFolder()
843                    throws com.liferay.portal.kernel.exception.PortalException,
844                            com.liferay.portal.kernel.exception.SystemException {
845                    return _bookmarksEntry.getFolder();
846            }
847    
848            @Override
849            public com.liferay.portlet.bookmarks.model.BookmarksFolder getTrashContainer()
850                    throws com.liferay.portal.kernel.exception.PortalException,
851                            com.liferay.portal.kernel.exception.SystemException {
852                    return _bookmarksEntry.getTrashContainer();
853            }
854    
855            @Override
856            public boolean isInTrashContainer()
857                    throws com.liferay.portal.kernel.exception.PortalException,
858                            com.liferay.portal.kernel.exception.SystemException {
859                    return _bookmarksEntry.isInTrashContainer();
860            }
861    
862            @Override
863            public boolean equals(Object obj) {
864                    if (this == obj) {
865                            return true;
866                    }
867    
868                    if (!(obj instanceof BookmarksEntryWrapper)) {
869                            return false;
870                    }
871    
872                    BookmarksEntryWrapper bookmarksEntryWrapper = (BookmarksEntryWrapper)obj;
873    
874                    if (Validator.equals(_bookmarksEntry,
875                                            bookmarksEntryWrapper._bookmarksEntry)) {
876                            return true;
877                    }
878    
879                    return false;
880            }
881    
882            @Override
883            public StagedModelType getStagedModelType() {
884                    return _bookmarksEntry.getStagedModelType();
885            }
886    
887            /**
888             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
889             */
890            public BookmarksEntry getWrappedBookmarksEntry() {
891                    return _bookmarksEntry;
892            }
893    
894            @Override
895            public BookmarksEntry getWrappedModel() {
896                    return _bookmarksEntry;
897            }
898    
899            @Override
900            public void resetOriginalValues() {
901                    _bookmarksEntry.resetOriginalValues();
902            }
903    
904            private BookmarksEntry _bookmarksEntry;
905    }