001    /**
002     * Copyright (c) 2000-2012 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.model.ModelWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link BookmarksEntry}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       BookmarksEntry
026     * @generated
027     */
028    public class BookmarksEntryWrapper implements BookmarksEntry,
029            ModelWrapper<BookmarksEntry> {
030            public BookmarksEntryWrapper(BookmarksEntry bookmarksEntry) {
031                    _bookmarksEntry = bookmarksEntry;
032            }
033    
034            public Class<?> getModelClass() {
035                    return BookmarksEntry.class;
036            }
037    
038            public String getModelClassName() {
039                    return BookmarksEntry.class.getName();
040            }
041    
042            /**
043            * Returns the primary key of this bookmarks entry.
044            *
045            * @return the primary key of this bookmarks entry
046            */
047            public long getPrimaryKey() {
048                    return _bookmarksEntry.getPrimaryKey();
049            }
050    
051            /**
052            * Sets the primary key of this bookmarks entry.
053            *
054            * @param primaryKey the primary key of this bookmarks entry
055            */
056            public void setPrimaryKey(long primaryKey) {
057                    _bookmarksEntry.setPrimaryKey(primaryKey);
058            }
059    
060            /**
061            * Returns the uuid of this bookmarks entry.
062            *
063            * @return the uuid of this bookmarks entry
064            */
065            public java.lang.String getUuid() {
066                    return _bookmarksEntry.getUuid();
067            }
068    
069            /**
070            * Sets the uuid of this bookmarks entry.
071            *
072            * @param uuid the uuid of this bookmarks entry
073            */
074            public void setUuid(java.lang.String uuid) {
075                    _bookmarksEntry.setUuid(uuid);
076            }
077    
078            /**
079            * Returns the entry ID of this bookmarks entry.
080            *
081            * @return the entry ID of this bookmarks entry
082            */
083            public long getEntryId() {
084                    return _bookmarksEntry.getEntryId();
085            }
086    
087            /**
088            * Sets the entry ID of this bookmarks entry.
089            *
090            * @param entryId the entry ID of this bookmarks entry
091            */
092            public void setEntryId(long entryId) {
093                    _bookmarksEntry.setEntryId(entryId);
094            }
095    
096            /**
097            * Returns the group ID of this bookmarks entry.
098            *
099            * @return the group ID of this bookmarks entry
100            */
101            public long getGroupId() {
102                    return _bookmarksEntry.getGroupId();
103            }
104    
105            /**
106            * Sets the group ID of this bookmarks entry.
107            *
108            * @param groupId the group ID of this bookmarks entry
109            */
110            public void setGroupId(long groupId) {
111                    _bookmarksEntry.setGroupId(groupId);
112            }
113    
114            /**
115            * Returns the company ID of this bookmarks entry.
116            *
117            * @return the company ID of this bookmarks entry
118            */
119            public long getCompanyId() {
120                    return _bookmarksEntry.getCompanyId();
121            }
122    
123            /**
124            * Sets the company ID of this bookmarks entry.
125            *
126            * @param companyId the company ID of this bookmarks entry
127            */
128            public void setCompanyId(long companyId) {
129                    _bookmarksEntry.setCompanyId(companyId);
130            }
131    
132            /**
133            * Returns the user ID of this bookmarks entry.
134            *
135            * @return the user ID of this bookmarks entry
136            */
137            public long getUserId() {
138                    return _bookmarksEntry.getUserId();
139            }
140    
141            /**
142            * Sets the user ID of this bookmarks entry.
143            *
144            * @param userId the user ID of this bookmarks entry
145            */
146            public void setUserId(long userId) {
147                    _bookmarksEntry.setUserId(userId);
148            }
149    
150            /**
151            * Returns the user uuid of this bookmarks entry.
152            *
153            * @return the user uuid of this bookmarks entry
154            * @throws SystemException if a system exception occurred
155            */
156            public java.lang.String getUserUuid()
157                    throws com.liferay.portal.kernel.exception.SystemException {
158                    return _bookmarksEntry.getUserUuid();
159            }
160    
161            /**
162            * Sets the user uuid of this bookmarks entry.
163            *
164            * @param userUuid the user uuid of this bookmarks entry
165            */
166            public void setUserUuid(java.lang.String userUuid) {
167                    _bookmarksEntry.setUserUuid(userUuid);
168            }
169    
170            /**
171            * Returns the user name of this bookmarks entry.
172            *
173            * @return the user name of this bookmarks entry
174            */
175            public java.lang.String getUserName() {
176                    return _bookmarksEntry.getUserName();
177            }
178    
179            /**
180            * Sets the user name of this bookmarks entry.
181            *
182            * @param userName the user name of this bookmarks entry
183            */
184            public void setUserName(java.lang.String userName) {
185                    _bookmarksEntry.setUserName(userName);
186            }
187    
188            /**
189            * Returns the create date of this bookmarks entry.
190            *
191            * @return the create date of this bookmarks entry
192            */
193            public java.util.Date getCreateDate() {
194                    return _bookmarksEntry.getCreateDate();
195            }
196    
197            /**
198            * Sets the create date of this bookmarks entry.
199            *
200            * @param createDate the create date of this bookmarks entry
201            */
202            public void setCreateDate(java.util.Date createDate) {
203                    _bookmarksEntry.setCreateDate(createDate);
204            }
205    
206            /**
207            * Returns the modified date of this bookmarks entry.
208            *
209            * @return the modified date of this bookmarks entry
210            */
211            public java.util.Date getModifiedDate() {
212                    return _bookmarksEntry.getModifiedDate();
213            }
214    
215            /**
216            * Sets the modified date of this bookmarks entry.
217            *
218            * @param modifiedDate the modified date of this bookmarks entry
219            */
220            public void setModifiedDate(java.util.Date modifiedDate) {
221                    _bookmarksEntry.setModifiedDate(modifiedDate);
222            }
223    
224            /**
225            * Returns the resource block ID of this bookmarks entry.
226            *
227            * @return the resource block ID of this bookmarks entry
228            */
229            public long getResourceBlockId() {
230                    return _bookmarksEntry.getResourceBlockId();
231            }
232    
233            /**
234            * Sets the resource block ID of this bookmarks entry.
235            *
236            * @param resourceBlockId the resource block ID of this bookmarks entry
237            */
238            public void setResourceBlockId(long resourceBlockId) {
239                    _bookmarksEntry.setResourceBlockId(resourceBlockId);
240            }
241    
242            /**
243            * Returns the folder ID of this bookmarks entry.
244            *
245            * @return the folder ID of this bookmarks entry
246            */
247            public long getFolderId() {
248                    return _bookmarksEntry.getFolderId();
249            }
250    
251            /**
252            * Sets the folder ID of this bookmarks entry.
253            *
254            * @param folderId the folder ID of this bookmarks entry
255            */
256            public void setFolderId(long folderId) {
257                    _bookmarksEntry.setFolderId(folderId);
258            }
259    
260            /**
261            * Returns the name of this bookmarks entry.
262            *
263            * @return the name of this bookmarks entry
264            */
265            public java.lang.String getName() {
266                    return _bookmarksEntry.getName();
267            }
268    
269            /**
270            * Sets the name of this bookmarks entry.
271            *
272            * @param name the name of this bookmarks entry
273            */
274            public void setName(java.lang.String name) {
275                    _bookmarksEntry.setName(name);
276            }
277    
278            /**
279            * Returns the url of this bookmarks entry.
280            *
281            * @return the url of this bookmarks entry
282            */
283            public java.lang.String getUrl() {
284                    return _bookmarksEntry.getUrl();
285            }
286    
287            /**
288            * Sets the url of this bookmarks entry.
289            *
290            * @param url the url of this bookmarks entry
291            */
292            public void setUrl(java.lang.String url) {
293                    _bookmarksEntry.setUrl(url);
294            }
295    
296            /**
297            * Returns the description of this bookmarks entry.
298            *
299            * @return the description of this bookmarks entry
300            */
301            public java.lang.String getDescription() {
302                    return _bookmarksEntry.getDescription();
303            }
304    
305            /**
306            * Sets the description of this bookmarks entry.
307            *
308            * @param description the description of this bookmarks entry
309            */
310            public void setDescription(java.lang.String description) {
311                    _bookmarksEntry.setDescription(description);
312            }
313    
314            /**
315            * Returns the visits of this bookmarks entry.
316            *
317            * @return the visits of this bookmarks entry
318            */
319            public int getVisits() {
320                    return _bookmarksEntry.getVisits();
321            }
322    
323            /**
324            * Sets the visits of this bookmarks entry.
325            *
326            * @param visits the visits of this bookmarks entry
327            */
328            public void setVisits(int visits) {
329                    _bookmarksEntry.setVisits(visits);
330            }
331    
332            /**
333            * Returns the priority of this bookmarks entry.
334            *
335            * @return the priority of this bookmarks entry
336            */
337            public int getPriority() {
338                    return _bookmarksEntry.getPriority();
339            }
340    
341            /**
342            * Sets the priority of this bookmarks entry.
343            *
344            * @param priority the priority of this bookmarks entry
345            */
346            public void setPriority(int priority) {
347                    _bookmarksEntry.setPriority(priority);
348            }
349    
350            public boolean isNew() {
351                    return _bookmarksEntry.isNew();
352            }
353    
354            public void setNew(boolean n) {
355                    _bookmarksEntry.setNew(n);
356            }
357    
358            public boolean isCachedModel() {
359                    return _bookmarksEntry.isCachedModel();
360            }
361    
362            public void setCachedModel(boolean cachedModel) {
363                    _bookmarksEntry.setCachedModel(cachedModel);
364            }
365    
366            public boolean isEscapedModel() {
367                    return _bookmarksEntry.isEscapedModel();
368            }
369    
370            public java.io.Serializable getPrimaryKeyObj() {
371                    return _bookmarksEntry.getPrimaryKeyObj();
372            }
373    
374            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
375                    _bookmarksEntry.setPrimaryKeyObj(primaryKeyObj);
376            }
377    
378            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
379                    return _bookmarksEntry.getExpandoBridge();
380            }
381    
382            public void setExpandoBridgeAttributes(
383                    com.liferay.portal.service.ServiceContext serviceContext) {
384                    _bookmarksEntry.setExpandoBridgeAttributes(serviceContext);
385            }
386    
387            @Override
388            public java.lang.Object clone() {
389                    return new BookmarksEntryWrapper((BookmarksEntry)_bookmarksEntry.clone());
390            }
391    
392            public int compareTo(
393                    com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry) {
394                    return _bookmarksEntry.compareTo(bookmarksEntry);
395            }
396    
397            @Override
398            public int hashCode() {
399                    return _bookmarksEntry.hashCode();
400            }
401    
402            public com.liferay.portal.model.CacheModel<com.liferay.portlet.bookmarks.model.BookmarksEntry> toCacheModel() {
403                    return _bookmarksEntry.toCacheModel();
404            }
405    
406            public com.liferay.portlet.bookmarks.model.BookmarksEntry toEscapedModel() {
407                    return new BookmarksEntryWrapper(_bookmarksEntry.toEscapedModel());
408            }
409    
410            @Override
411            public java.lang.String toString() {
412                    return _bookmarksEntry.toString();
413            }
414    
415            public java.lang.String toXmlString() {
416                    return _bookmarksEntry.toXmlString();
417            }
418    
419            public void persist()
420                    throws com.liferay.portal.kernel.exception.SystemException {
421                    _bookmarksEntry.persist();
422            }
423    
424            public com.liferay.portlet.bookmarks.model.BookmarksFolder getFolder() {
425                    return _bookmarksEntry.getFolder();
426            }
427    
428            /**
429             * @deprecated Renamed to {@link #getWrappedModel}
430             */
431            public BookmarksEntry getWrappedBookmarksEntry() {
432                    return _bookmarksEntry;
433            }
434    
435            public BookmarksEntry getWrappedModel() {
436                    return _bookmarksEntry;
437            }
438    
439            public void resetOriginalValues() {
440                    _bookmarksEntry.resetOriginalValues();
441            }
442    
443            private BookmarksEntry _bookmarksEntry;
444    }