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