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