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.wiki.model;
016    
017    import com.liferay.portal.model.ModelWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link WikiNode}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       WikiNode
026     * @generated
027     */
028    public class WikiNodeWrapper implements WikiNode, ModelWrapper<WikiNode> {
029            public WikiNodeWrapper(WikiNode wikiNode) {
030                    _wikiNode = wikiNode;
031            }
032    
033            public Class<?> getModelClass() {
034                    return WikiNode.class;
035            }
036    
037            public String getModelClassName() {
038                    return WikiNode.class.getName();
039            }
040    
041            /**
042            * Returns the primary key of this wiki node.
043            *
044            * @return the primary key of this wiki node
045            */
046            public long getPrimaryKey() {
047                    return _wikiNode.getPrimaryKey();
048            }
049    
050            /**
051            * Sets the primary key of this wiki node.
052            *
053            * @param primaryKey the primary key of this wiki node
054            */
055            public void setPrimaryKey(long primaryKey) {
056                    _wikiNode.setPrimaryKey(primaryKey);
057            }
058    
059            /**
060            * Returns the uuid of this wiki node.
061            *
062            * @return the uuid of this wiki node
063            */
064            public java.lang.String getUuid() {
065                    return _wikiNode.getUuid();
066            }
067    
068            /**
069            * Sets the uuid of this wiki node.
070            *
071            * @param uuid the uuid of this wiki node
072            */
073            public void setUuid(java.lang.String uuid) {
074                    _wikiNode.setUuid(uuid);
075            }
076    
077            /**
078            * Returns the node ID of this wiki node.
079            *
080            * @return the node ID of this wiki node
081            */
082            public long getNodeId() {
083                    return _wikiNode.getNodeId();
084            }
085    
086            /**
087            * Sets the node ID of this wiki node.
088            *
089            * @param nodeId the node ID of this wiki node
090            */
091            public void setNodeId(long nodeId) {
092                    _wikiNode.setNodeId(nodeId);
093            }
094    
095            /**
096            * Returns the group ID of this wiki node.
097            *
098            * @return the group ID of this wiki node
099            */
100            public long getGroupId() {
101                    return _wikiNode.getGroupId();
102            }
103    
104            /**
105            * Sets the group ID of this wiki node.
106            *
107            * @param groupId the group ID of this wiki node
108            */
109            public void setGroupId(long groupId) {
110                    _wikiNode.setGroupId(groupId);
111            }
112    
113            /**
114            * Returns the company ID of this wiki node.
115            *
116            * @return the company ID of this wiki node
117            */
118            public long getCompanyId() {
119                    return _wikiNode.getCompanyId();
120            }
121    
122            /**
123            * Sets the company ID of this wiki node.
124            *
125            * @param companyId the company ID of this wiki node
126            */
127            public void setCompanyId(long companyId) {
128                    _wikiNode.setCompanyId(companyId);
129            }
130    
131            /**
132            * Returns the user ID of this wiki node.
133            *
134            * @return the user ID of this wiki node
135            */
136            public long getUserId() {
137                    return _wikiNode.getUserId();
138            }
139    
140            /**
141            * Sets the user ID of this wiki node.
142            *
143            * @param userId the user ID of this wiki node
144            */
145            public void setUserId(long userId) {
146                    _wikiNode.setUserId(userId);
147            }
148    
149            /**
150            * Returns the user uuid of this wiki node.
151            *
152            * @return the user uuid of this wiki node
153            * @throws SystemException if a system exception occurred
154            */
155            public java.lang.String getUserUuid()
156                    throws com.liferay.portal.kernel.exception.SystemException {
157                    return _wikiNode.getUserUuid();
158            }
159    
160            /**
161            * Sets the user uuid of this wiki node.
162            *
163            * @param userUuid the user uuid of this wiki node
164            */
165            public void setUserUuid(java.lang.String userUuid) {
166                    _wikiNode.setUserUuid(userUuid);
167            }
168    
169            /**
170            * Returns the user name of this wiki node.
171            *
172            * @return the user name of this wiki node
173            */
174            public java.lang.String getUserName() {
175                    return _wikiNode.getUserName();
176            }
177    
178            /**
179            * Sets the user name of this wiki node.
180            *
181            * @param userName the user name of this wiki node
182            */
183            public void setUserName(java.lang.String userName) {
184                    _wikiNode.setUserName(userName);
185            }
186    
187            /**
188            * Returns the create date of this wiki node.
189            *
190            * @return the create date of this wiki node
191            */
192            public java.util.Date getCreateDate() {
193                    return _wikiNode.getCreateDate();
194            }
195    
196            /**
197            * Sets the create date of this wiki node.
198            *
199            * @param createDate the create date of this wiki node
200            */
201            public void setCreateDate(java.util.Date createDate) {
202                    _wikiNode.setCreateDate(createDate);
203            }
204    
205            /**
206            * Returns the modified date of this wiki node.
207            *
208            * @return the modified date of this wiki node
209            */
210            public java.util.Date getModifiedDate() {
211                    return _wikiNode.getModifiedDate();
212            }
213    
214            /**
215            * Sets the modified date of this wiki node.
216            *
217            * @param modifiedDate the modified date of this wiki node
218            */
219            public void setModifiedDate(java.util.Date modifiedDate) {
220                    _wikiNode.setModifiedDate(modifiedDate);
221            }
222    
223            /**
224            * Returns the name of this wiki node.
225            *
226            * @return the name of this wiki node
227            */
228            public java.lang.String getName() {
229                    return _wikiNode.getName();
230            }
231    
232            /**
233            * Sets the name of this wiki node.
234            *
235            * @param name the name of this wiki node
236            */
237            public void setName(java.lang.String name) {
238                    _wikiNode.setName(name);
239            }
240    
241            /**
242            * Returns the description of this wiki node.
243            *
244            * @return the description of this wiki node
245            */
246            public java.lang.String getDescription() {
247                    return _wikiNode.getDescription();
248            }
249    
250            /**
251            * Sets the description of this wiki node.
252            *
253            * @param description the description of this wiki node
254            */
255            public void setDescription(java.lang.String description) {
256                    _wikiNode.setDescription(description);
257            }
258    
259            /**
260            * Returns the last post date of this wiki node.
261            *
262            * @return the last post date of this wiki node
263            */
264            public java.util.Date getLastPostDate() {
265                    return _wikiNode.getLastPostDate();
266            }
267    
268            /**
269            * Sets the last post date of this wiki node.
270            *
271            * @param lastPostDate the last post date of this wiki node
272            */
273            public void setLastPostDate(java.util.Date lastPostDate) {
274                    _wikiNode.setLastPostDate(lastPostDate);
275            }
276    
277            public boolean isNew() {
278                    return _wikiNode.isNew();
279            }
280    
281            public void setNew(boolean n) {
282                    _wikiNode.setNew(n);
283            }
284    
285            public boolean isCachedModel() {
286                    return _wikiNode.isCachedModel();
287            }
288    
289            public void setCachedModel(boolean cachedModel) {
290                    _wikiNode.setCachedModel(cachedModel);
291            }
292    
293            public boolean isEscapedModel() {
294                    return _wikiNode.isEscapedModel();
295            }
296    
297            public java.io.Serializable getPrimaryKeyObj() {
298                    return _wikiNode.getPrimaryKeyObj();
299            }
300    
301            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
302                    _wikiNode.setPrimaryKeyObj(primaryKeyObj);
303            }
304    
305            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
306                    return _wikiNode.getExpandoBridge();
307            }
308    
309            public void setExpandoBridgeAttributes(
310                    com.liferay.portal.service.ServiceContext serviceContext) {
311                    _wikiNode.setExpandoBridgeAttributes(serviceContext);
312            }
313    
314            @Override
315            public java.lang.Object clone() {
316                    return new WikiNodeWrapper((WikiNode)_wikiNode.clone());
317            }
318    
319            public int compareTo(com.liferay.portlet.wiki.model.WikiNode wikiNode) {
320                    return _wikiNode.compareTo(wikiNode);
321            }
322    
323            @Override
324            public int hashCode() {
325                    return _wikiNode.hashCode();
326            }
327    
328            public com.liferay.portal.model.CacheModel<com.liferay.portlet.wiki.model.WikiNode> toCacheModel() {
329                    return _wikiNode.toCacheModel();
330            }
331    
332            public com.liferay.portlet.wiki.model.WikiNode toEscapedModel() {
333                    return new WikiNodeWrapper(_wikiNode.toEscapedModel());
334            }
335    
336            @Override
337            public java.lang.String toString() {
338                    return _wikiNode.toString();
339            }
340    
341            public java.lang.String toXmlString() {
342                    return _wikiNode.toXmlString();
343            }
344    
345            public void persist()
346                    throws com.liferay.portal.kernel.exception.SystemException {
347                    _wikiNode.persist();
348            }
349    
350            /**
351             * @deprecated Renamed to {@link #getWrappedModel}
352             */
353            public WikiNode getWrappedWikiNode() {
354                    return _wikiNode;
355            }
356    
357            public WikiNode getWrappedModel() {
358                    return _wikiNode;
359            }
360    
361            public void resetOriginalValues() {
362                    _wikiNode.resetOriginalValues();
363            }
364    
365            private WikiNode _wikiNode;
366    }