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