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("treePath", getTreePath());
065                    attributes.put("name", getName());
066                    attributes.put("url", getUrl());
067                    attributes.put("description", getDescription());
068                    attributes.put("visits", getVisits());
069                    attributes.put("priority", getPriority());
070                    attributes.put("status", getStatus());
071                    attributes.put("statusByUserId", getStatusByUserId());
072                    attributes.put("statusByUserName", getStatusByUserName());
073                    attributes.put("statusDate", getStatusDate());
074    
075                    return attributes;
076            }
077    
078            @Override
079            public void setModelAttributes(Map<String, Object> attributes) {
080                    String uuid = (String)attributes.get("uuid");
081    
082                    if (uuid != null) {
083                            setUuid(uuid);
084                    }
085    
086                    Long entryId = (Long)attributes.get("entryId");
087    
088                    if (entryId != null) {
089                            setEntryId(entryId);
090                    }
091    
092                    Long groupId = (Long)attributes.get("groupId");
093    
094                    if (groupId != null) {
095                            setGroupId(groupId);
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                    Long resourceBlockId = (Long)attributes.get("resourceBlockId");
129    
130                    if (resourceBlockId != null) {
131                            setResourceBlockId(resourceBlockId);
132                    }
133    
134                    Long folderId = (Long)attributes.get("folderId");
135    
136                    if (folderId != null) {
137                            setFolderId(folderId);
138                    }
139    
140                    String treePath = (String)attributes.get("treePath");
141    
142                    if (treePath != null) {
143                            setTreePath(treePath);
144                    }
145    
146                    String name = (String)attributes.get("name");
147    
148                    if (name != null) {
149                            setName(name);
150                    }
151    
152                    String url = (String)attributes.get("url");
153    
154                    if (url != null) {
155                            setUrl(url);
156                    }
157    
158                    String description = (String)attributes.get("description");
159    
160                    if (description != null) {
161                            setDescription(description);
162                    }
163    
164                    Integer visits = (Integer)attributes.get("visits");
165    
166                    if (visits != null) {
167                            setVisits(visits);
168                    }
169    
170                    Integer priority = (Integer)attributes.get("priority");
171    
172                    if (priority != null) {
173                            setPriority(priority);
174                    }
175    
176                    Integer status = (Integer)attributes.get("status");
177    
178                    if (status != null) {
179                            setStatus(status);
180                    }
181    
182                    Long statusByUserId = (Long)attributes.get("statusByUserId");
183    
184                    if (statusByUserId != null) {
185                            setStatusByUserId(statusByUserId);
186                    }
187    
188                    String statusByUserName = (String)attributes.get("statusByUserName");
189    
190                    if (statusByUserName != null) {
191                            setStatusByUserName(statusByUserName);
192                    }
193    
194                    Date statusDate = (Date)attributes.get("statusDate");
195    
196                    if (statusDate != null) {
197                            setStatusDate(statusDate);
198                    }
199            }
200    
201            /**
202            * Returns the primary key of this bookmarks entry.
203            *
204            * @return the primary key of this bookmarks entry
205            */
206            @Override
207            public long getPrimaryKey() {
208                    return _bookmarksEntry.getPrimaryKey();
209            }
210    
211            /**
212            * Sets the primary key of this bookmarks entry.
213            *
214            * @param primaryKey the primary key of this bookmarks entry
215            */
216            @Override
217            public void setPrimaryKey(long primaryKey) {
218                    _bookmarksEntry.setPrimaryKey(primaryKey);
219            }
220    
221            /**
222            * Returns the uuid of this bookmarks entry.
223            *
224            * @return the uuid of this bookmarks entry
225            */
226            @Override
227            public java.lang.String getUuid() {
228                    return _bookmarksEntry.getUuid();
229            }
230    
231            /**
232            * Sets the uuid of this bookmarks entry.
233            *
234            * @param uuid the uuid of this bookmarks entry
235            */
236            @Override
237            public void setUuid(java.lang.String uuid) {
238                    _bookmarksEntry.setUuid(uuid);
239            }
240    
241            /**
242            * Returns the entry ID of this bookmarks entry.
243            *
244            * @return the entry ID of this bookmarks entry
245            */
246            @Override
247            public long getEntryId() {
248                    return _bookmarksEntry.getEntryId();
249            }
250    
251            /**
252            * Sets the entry ID of this bookmarks entry.
253            *
254            * @param entryId the entry ID of this bookmarks entry
255            */
256            @Override
257            public void setEntryId(long entryId) {
258                    _bookmarksEntry.setEntryId(entryId);
259            }
260    
261            /**
262            * Returns the group ID of this bookmarks entry.
263            *
264            * @return the group ID of this bookmarks entry
265            */
266            @Override
267            public long getGroupId() {
268                    return _bookmarksEntry.getGroupId();
269            }
270    
271            /**
272            * Sets the group ID of this bookmarks entry.
273            *
274            * @param groupId the group ID of this bookmarks entry
275            */
276            @Override
277            public void setGroupId(long groupId) {
278                    _bookmarksEntry.setGroupId(groupId);
279            }
280    
281            /**
282            * Returns the company ID of this bookmarks entry.
283            *
284            * @return the company ID of this bookmarks entry
285            */
286            @Override
287            public long getCompanyId() {
288                    return _bookmarksEntry.getCompanyId();
289            }
290    
291            /**
292            * Sets the company ID of this bookmarks entry.
293            *
294            * @param companyId the company ID of this bookmarks entry
295            */
296            @Override
297            public void setCompanyId(long companyId) {
298                    _bookmarksEntry.setCompanyId(companyId);
299            }
300    
301            /**
302            * Returns the user ID of this bookmarks entry.
303            *
304            * @return the user ID of this bookmarks entry
305            */
306            @Override
307            public long getUserId() {
308                    return _bookmarksEntry.getUserId();
309            }
310    
311            /**
312            * Sets the user ID of this bookmarks entry.
313            *
314            * @param userId the user ID of this bookmarks entry
315            */
316            @Override
317            public void setUserId(long userId) {
318                    _bookmarksEntry.setUserId(userId);
319            }
320    
321            /**
322            * Returns the user uuid of this bookmarks entry.
323            *
324            * @return the user uuid of this bookmarks entry
325            * @throws SystemException if a system exception occurred
326            */
327            @Override
328            public java.lang.String getUserUuid()
329                    throws com.liferay.portal.kernel.exception.SystemException {
330                    return _bookmarksEntry.getUserUuid();
331            }
332    
333            /**
334            * Sets the user uuid of this bookmarks entry.
335            *
336            * @param userUuid the user uuid of this bookmarks entry
337            */
338            @Override
339            public void setUserUuid(java.lang.String userUuid) {
340                    _bookmarksEntry.setUserUuid(userUuid);
341            }
342    
343            /**
344            * Returns the user name of this bookmarks entry.
345            *
346            * @return the user name of this bookmarks entry
347            */
348            @Override
349            public java.lang.String getUserName() {
350                    return _bookmarksEntry.getUserName();
351            }
352    
353            /**
354            * Sets the user name of this bookmarks entry.
355            *
356            * @param userName the user name of this bookmarks entry
357            */
358            @Override
359            public void setUserName(java.lang.String userName) {
360                    _bookmarksEntry.setUserName(userName);
361            }
362    
363            /**
364            * Returns the create date of this bookmarks entry.
365            *
366            * @return the create date of this bookmarks entry
367            */
368            @Override
369            public java.util.Date getCreateDate() {
370                    return _bookmarksEntry.getCreateDate();
371            }
372    
373            /**
374            * Sets the create date of this bookmarks entry.
375            *
376            * @param createDate the create date of this bookmarks entry
377            */
378            @Override
379            public void setCreateDate(java.util.Date createDate) {
380                    _bookmarksEntry.setCreateDate(createDate);
381            }
382    
383            /**
384            * Returns the modified date of this bookmarks entry.
385            *
386            * @return the modified date of this bookmarks entry
387            */
388            @Override
389            public java.util.Date getModifiedDate() {
390                    return _bookmarksEntry.getModifiedDate();
391            }
392    
393            /**
394            * Sets the modified date of this bookmarks entry.
395            *
396            * @param modifiedDate the modified date of this bookmarks entry
397            */
398            @Override
399            public void setModifiedDate(java.util.Date modifiedDate) {
400                    _bookmarksEntry.setModifiedDate(modifiedDate);
401            }
402    
403            /**
404            * Returns the resource block ID of this bookmarks entry.
405            *
406            * @return the resource block ID of this bookmarks entry
407            */
408            @Override
409            public long getResourceBlockId() {
410                    return _bookmarksEntry.getResourceBlockId();
411            }
412    
413            /**
414            * Sets the resource block ID of this bookmarks entry.
415            *
416            * @param resourceBlockId the resource block ID of this bookmarks entry
417            */
418            @Override
419            public void setResourceBlockId(long resourceBlockId) {
420                    _bookmarksEntry.setResourceBlockId(resourceBlockId);
421            }
422    
423            /**
424            * Returns the folder ID of this bookmarks entry.
425            *
426            * @return the folder ID of this bookmarks entry
427            */
428            @Override
429            public long getFolderId() {
430                    return _bookmarksEntry.getFolderId();
431            }
432    
433            /**
434            * Sets the folder ID of this bookmarks entry.
435            *
436            * @param folderId the folder ID of this bookmarks entry
437            */
438            @Override
439            public void setFolderId(long folderId) {
440                    _bookmarksEntry.setFolderId(folderId);
441            }
442    
443            /**
444            * Returns the tree path of this bookmarks entry.
445            *
446            * @return the tree path of this bookmarks entry
447            */
448            @Override
449            public java.lang.String getTreePath() {
450                    return _bookmarksEntry.getTreePath();
451            }
452    
453            /**
454            * Sets the tree path of this bookmarks entry.
455            *
456            * @param treePath the tree path of this bookmarks entry
457            */
458            @Override
459            public void setTreePath(java.lang.String treePath) {
460                    _bookmarksEntry.setTreePath(treePath);
461            }
462    
463            /**
464            * Returns the name of this bookmarks entry.
465            *
466            * @return the name of this bookmarks entry
467            */
468            @Override
469            public java.lang.String getName() {
470                    return _bookmarksEntry.getName();
471            }
472    
473            /**
474            * Sets the name of this bookmarks entry.
475            *
476            * @param name the name of this bookmarks entry
477            */
478            @Override
479            public void setName(java.lang.String name) {
480                    _bookmarksEntry.setName(name);
481            }
482    
483            /**
484            * Returns the url of this bookmarks entry.
485            *
486            * @return the url of this bookmarks entry
487            */
488            @Override
489            public java.lang.String getUrl() {
490                    return _bookmarksEntry.getUrl();
491            }
492    
493            /**
494            * Sets the url of this bookmarks entry.
495            *
496            * @param url the url of this bookmarks entry
497            */
498            @Override
499            public void setUrl(java.lang.String url) {
500                    _bookmarksEntry.setUrl(url);
501            }
502    
503            /**
504            * Returns the description of this bookmarks entry.
505            *
506            * @return the description of this bookmarks entry
507            */
508            @Override
509            public java.lang.String getDescription() {
510                    return _bookmarksEntry.getDescription();
511            }
512    
513            /**
514            * Sets the description of this bookmarks entry.
515            *
516            * @param description the description of this bookmarks entry
517            */
518            @Override
519            public void setDescription(java.lang.String description) {
520                    _bookmarksEntry.setDescription(description);
521            }
522    
523            /**
524            * Returns the visits of this bookmarks entry.
525            *
526            * @return the visits of this bookmarks entry
527            */
528            @Override
529            public int getVisits() {
530                    return _bookmarksEntry.getVisits();
531            }
532    
533            /**
534            * Sets the visits of this bookmarks entry.
535            *
536            * @param visits the visits of this bookmarks entry
537            */
538            @Override
539            public void setVisits(int visits) {
540                    _bookmarksEntry.setVisits(visits);
541            }
542    
543            /**
544            * Returns the priority of this bookmarks entry.
545            *
546            * @return the priority of this bookmarks entry
547            */
548            @Override
549            public int getPriority() {
550                    return _bookmarksEntry.getPriority();
551            }
552    
553            /**
554            * Sets the priority of this bookmarks entry.
555            *
556            * @param priority the priority of this bookmarks entry
557            */
558            @Override
559            public void setPriority(int priority) {
560                    _bookmarksEntry.setPriority(priority);
561            }
562    
563            /**
564            * Returns the status of this bookmarks entry.
565            *
566            * @return the status of this bookmarks entry
567            */
568            @Override
569            public int getStatus() {
570                    return _bookmarksEntry.getStatus();
571            }
572    
573            /**
574            * Sets the status of this bookmarks entry.
575            *
576            * @param status the status of this bookmarks entry
577            */
578            @Override
579            public void setStatus(int status) {
580                    _bookmarksEntry.setStatus(status);
581            }
582    
583            /**
584            * Returns the status by user ID of this bookmarks entry.
585            *
586            * @return the status by user ID of this bookmarks entry
587            */
588            @Override
589            public long getStatusByUserId() {
590                    return _bookmarksEntry.getStatusByUserId();
591            }
592    
593            /**
594            * Sets the status by user ID of this bookmarks entry.
595            *
596            * @param statusByUserId the status by user ID of this bookmarks entry
597            */
598            @Override
599            public void setStatusByUserId(long statusByUserId) {
600                    _bookmarksEntry.setStatusByUserId(statusByUserId);
601            }
602    
603            /**
604            * Returns the status by user uuid of this bookmarks entry.
605            *
606            * @return the status by user uuid of this bookmarks entry
607            * @throws SystemException if a system exception occurred
608            */
609            @Override
610            public java.lang.String getStatusByUserUuid()
611                    throws com.liferay.portal.kernel.exception.SystemException {
612                    return _bookmarksEntry.getStatusByUserUuid();
613            }
614    
615            /**
616            * Sets the status by user uuid of this bookmarks entry.
617            *
618            * @param statusByUserUuid the status by user uuid of this bookmarks entry
619            */
620            @Override
621            public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
622                    _bookmarksEntry.setStatusByUserUuid(statusByUserUuid);
623            }
624    
625            /**
626            * Returns the status by user name of this bookmarks entry.
627            *
628            * @return the status by user name of this bookmarks entry
629            */
630            @Override
631            public java.lang.String getStatusByUserName() {
632                    return _bookmarksEntry.getStatusByUserName();
633            }
634    
635            /**
636            * Sets the status by user name of this bookmarks entry.
637            *
638            * @param statusByUserName the status by user name of this bookmarks entry
639            */
640            @Override
641            public void setStatusByUserName(java.lang.String statusByUserName) {
642                    _bookmarksEntry.setStatusByUserName(statusByUserName);
643            }
644    
645            /**
646            * Returns the status date of this bookmarks entry.
647            *
648            * @return the status date of this bookmarks entry
649            */
650            @Override
651            public java.util.Date getStatusDate() {
652                    return _bookmarksEntry.getStatusDate();
653            }
654    
655            /**
656            * Sets the status date of this bookmarks entry.
657            *
658            * @param statusDate the status date of this bookmarks entry
659            */
660            @Override
661            public void setStatusDate(java.util.Date statusDate) {
662                    _bookmarksEntry.setStatusDate(statusDate);
663            }
664    
665            /**
666            * Returns the trash entry created when this bookmarks entry was moved to the Recycle Bin. The trash entry may belong to one of the ancestors of this bookmarks entry.
667            *
668            * @return the trash entry created when this bookmarks entry was moved to the Recycle Bin
669            * @throws SystemException if a system exception occurred
670            */
671            @Override
672            public com.liferay.portlet.trash.model.TrashEntry getTrashEntry()
673                    throws com.liferay.portal.kernel.exception.PortalException,
674                            com.liferay.portal.kernel.exception.SystemException {
675                    return _bookmarksEntry.getTrashEntry();
676            }
677    
678            /**
679            * Returns the class primary key of the trash entry for this bookmarks entry.
680            *
681            * @return the class primary key of the trash entry for this bookmarks entry
682            */
683            @Override
684            public long getTrashEntryClassPK() {
685                    return _bookmarksEntry.getTrashEntryClassPK();
686            }
687    
688            /**
689            * Returns the trash handler for this bookmarks entry.
690            *
691            * @return the trash handler for this bookmarks entry
692            */
693            @Override
694            public com.liferay.portal.kernel.trash.TrashHandler getTrashHandler() {
695                    return _bookmarksEntry.getTrashHandler();
696            }
697    
698            /**
699            * Returns <code>true</code> if this bookmarks entry is in the Recycle Bin.
700            *
701            * @return <code>true</code> if this bookmarks entry is in the Recycle Bin; <code>false</code> otherwise
702            */
703            @Override
704            public boolean isInTrash() {
705                    return _bookmarksEntry.isInTrash();
706            }
707    
708            /**
709            * Returns <code>true</code> if the parent of this bookmarks entry is in the Recycle Bin.
710            *
711            * @return <code>true</code> if the parent of this bookmarks entry is in the Recycle Bin; <code>false</code> otherwise
712            * @throws SystemException if a system exception occurred
713            */
714            @Override
715            public boolean isInTrashContainer() {
716                    return _bookmarksEntry.isInTrashContainer();
717            }
718    
719            /**
720            * @deprecated As of 6.1.0, replaced by {@link #isApproved()}
721            */
722            @Override
723            public boolean getApproved() {
724                    return _bookmarksEntry.getApproved();
725            }
726    
727            /**
728            * Returns <code>true</code> if this bookmarks entry is approved.
729            *
730            * @return <code>true</code> if this bookmarks entry is approved; <code>false</code> otherwise
731            */
732            @Override
733            public boolean isApproved() {
734                    return _bookmarksEntry.isApproved();
735            }
736    
737            /**
738            * Returns <code>true</code> if this bookmarks entry is denied.
739            *
740            * @return <code>true</code> if this bookmarks entry is denied; <code>false</code> otherwise
741            */
742            @Override
743            public boolean isDenied() {
744                    return _bookmarksEntry.isDenied();
745            }
746    
747            /**
748            * Returns <code>true</code> if this bookmarks entry is a draft.
749            *
750            * @return <code>true</code> if this bookmarks entry is a draft; <code>false</code> otherwise
751            */
752            @Override
753            public boolean isDraft() {
754                    return _bookmarksEntry.isDraft();
755            }
756    
757            /**
758            * Returns <code>true</code> if this bookmarks entry is expired.
759            *
760            * @return <code>true</code> if this bookmarks entry is expired; <code>false</code> otherwise
761            */
762            @Override
763            public boolean isExpired() {
764                    return _bookmarksEntry.isExpired();
765            }
766    
767            /**
768            * Returns <code>true</code> if this bookmarks entry is inactive.
769            *
770            * @return <code>true</code> if this bookmarks entry is inactive; <code>false</code> otherwise
771            */
772            @Override
773            public boolean isInactive() {
774                    return _bookmarksEntry.isInactive();
775            }
776    
777            /**
778            * Returns <code>true</code> if this bookmarks entry is incomplete.
779            *
780            * @return <code>true</code> if this bookmarks entry is incomplete; <code>false</code> otherwise
781            */
782            @Override
783            public boolean isIncomplete() {
784                    return _bookmarksEntry.isIncomplete();
785            }
786    
787            /**
788            * Returns <code>true</code> if this bookmarks entry is pending.
789            *
790            * @return <code>true</code> if this bookmarks entry is pending; <code>false</code> otherwise
791            */
792            @Override
793            public boolean isPending() {
794                    return _bookmarksEntry.isPending();
795            }
796    
797            /**
798            * Returns <code>true</code> if this bookmarks entry is scheduled.
799            *
800            * @return <code>true</code> if this bookmarks entry is scheduled; <code>false</code> otherwise
801            */
802            @Override
803            public boolean isScheduled() {
804                    return _bookmarksEntry.isScheduled();
805            }
806    
807            @Override
808            public boolean isNew() {
809                    return _bookmarksEntry.isNew();
810            }
811    
812            @Override
813            public void setNew(boolean n) {
814                    _bookmarksEntry.setNew(n);
815            }
816    
817            @Override
818            public boolean isCachedModel() {
819                    return _bookmarksEntry.isCachedModel();
820            }
821    
822            @Override
823            public void setCachedModel(boolean cachedModel) {
824                    _bookmarksEntry.setCachedModel(cachedModel);
825            }
826    
827            @Override
828            public boolean isEscapedModel() {
829                    return _bookmarksEntry.isEscapedModel();
830            }
831    
832            @Override
833            public java.io.Serializable getPrimaryKeyObj() {
834                    return _bookmarksEntry.getPrimaryKeyObj();
835            }
836    
837            @Override
838            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
839                    _bookmarksEntry.setPrimaryKeyObj(primaryKeyObj);
840            }
841    
842            @Override
843            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
844                    return _bookmarksEntry.getExpandoBridge();
845            }
846    
847            @Override
848            public void setExpandoBridgeAttributes(
849                    com.liferay.portal.model.BaseModel<?> baseModel) {
850                    _bookmarksEntry.setExpandoBridgeAttributes(baseModel);
851            }
852    
853            @Override
854            public void setExpandoBridgeAttributes(
855                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
856                    _bookmarksEntry.setExpandoBridgeAttributes(expandoBridge);
857            }
858    
859            @Override
860            public void setExpandoBridgeAttributes(
861                    com.liferay.portal.service.ServiceContext serviceContext) {
862                    _bookmarksEntry.setExpandoBridgeAttributes(serviceContext);
863            }
864    
865            @Override
866            public java.lang.Object clone() {
867                    return new BookmarksEntryWrapper((BookmarksEntry)_bookmarksEntry.clone());
868            }
869    
870            @Override
871            public int compareTo(
872                    com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry) {
873                    return _bookmarksEntry.compareTo(bookmarksEntry);
874            }
875    
876            @Override
877            public int hashCode() {
878                    return _bookmarksEntry.hashCode();
879            }
880    
881            @Override
882            public com.liferay.portal.model.CacheModel<com.liferay.portlet.bookmarks.model.BookmarksEntry> toCacheModel() {
883                    return _bookmarksEntry.toCacheModel();
884            }
885    
886            @Override
887            public com.liferay.portlet.bookmarks.model.BookmarksEntry toEscapedModel() {
888                    return new BookmarksEntryWrapper(_bookmarksEntry.toEscapedModel());
889            }
890    
891            @Override
892            public com.liferay.portlet.bookmarks.model.BookmarksEntry toUnescapedModel() {
893                    return new BookmarksEntryWrapper(_bookmarksEntry.toUnescapedModel());
894            }
895    
896            @Override
897            public java.lang.String toString() {
898                    return _bookmarksEntry.toString();
899            }
900    
901            @Override
902            public java.lang.String toXmlString() {
903                    return _bookmarksEntry.toXmlString();
904            }
905    
906            @Override
907            public void persist()
908                    throws com.liferay.portal.kernel.exception.SystemException {
909                    _bookmarksEntry.persist();
910            }
911    
912            @Override
913            public java.lang.String buildTreePath()
914                    throws com.liferay.portal.kernel.exception.PortalException,
915                            com.liferay.portal.kernel.exception.SystemException {
916                    return _bookmarksEntry.buildTreePath();
917            }
918    
919            @Override
920            public com.liferay.portlet.bookmarks.model.BookmarksFolder getFolder()
921                    throws com.liferay.portal.kernel.exception.PortalException,
922                            com.liferay.portal.kernel.exception.SystemException {
923                    return _bookmarksEntry.getFolder();
924            }
925    
926            @Override
927            public boolean equals(Object obj) {
928                    if (this == obj) {
929                            return true;
930                    }
931    
932                    if (!(obj instanceof BookmarksEntryWrapper)) {
933                            return false;
934                    }
935    
936                    BookmarksEntryWrapper bookmarksEntryWrapper = (BookmarksEntryWrapper)obj;
937    
938                    if (Validator.equals(_bookmarksEntry,
939                                            bookmarksEntryWrapper._bookmarksEntry)) {
940                            return true;
941                    }
942    
943                    return false;
944            }
945    
946            @Override
947            public StagedModelType getStagedModelType() {
948                    return _bookmarksEntry.getStagedModelType();
949            }
950    
951            /**
952             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
953             */
954            public BookmarksEntry getWrappedBookmarksEntry() {
955                    return _bookmarksEntry;
956            }
957    
958            @Override
959            public BookmarksEntry getWrappedModel() {
960                    return _bookmarksEntry;
961            }
962    
963            @Override
964            public void resetOriginalValues() {
965                    _bookmarksEntry.resetOriginalValues();
966            }
967    
968            private BookmarksEntry _bookmarksEntry;
969    }