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 WikiPageResource}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       WikiPageResource
024     * @generated
025     */
026    public class WikiPageResourceWrapper implements WikiPageResource {
027            public WikiPageResourceWrapper(WikiPageResource wikiPageResource) {
028                    _wikiPageResource = wikiPageResource;
029            }
030    
031            public Class<?> getModelClass() {
032                    return WikiPageResource.class;
033            }
034    
035            public String getModelClassName() {
036                    return WikiPageResource.class.getName();
037            }
038    
039            /**
040            * Returns the primary key of this wiki page resource.
041            *
042            * @return the primary key of this wiki page resource
043            */
044            public long getPrimaryKey() {
045                    return _wikiPageResource.getPrimaryKey();
046            }
047    
048            /**
049            * Sets the primary key of this wiki page resource.
050            *
051            * @param primaryKey the primary key of this wiki page resource
052            */
053            public void setPrimaryKey(long primaryKey) {
054                    _wikiPageResource.setPrimaryKey(primaryKey);
055            }
056    
057            /**
058            * Returns the uuid of this wiki page resource.
059            *
060            * @return the uuid of this wiki page resource
061            */
062            public java.lang.String getUuid() {
063                    return _wikiPageResource.getUuid();
064            }
065    
066            /**
067            * Sets the uuid of this wiki page resource.
068            *
069            * @param uuid the uuid of this wiki page resource
070            */
071            public void setUuid(java.lang.String uuid) {
072                    _wikiPageResource.setUuid(uuid);
073            }
074    
075            /**
076            * Returns the resource prim key of this wiki page resource.
077            *
078            * @return the resource prim key of this wiki page resource
079            */
080            public long getResourcePrimKey() {
081                    return _wikiPageResource.getResourcePrimKey();
082            }
083    
084            /**
085            * Sets the resource prim key of this wiki page resource.
086            *
087            * @param resourcePrimKey the resource prim key of this wiki page resource
088            */
089            public void setResourcePrimKey(long resourcePrimKey) {
090                    _wikiPageResource.setResourcePrimKey(resourcePrimKey);
091            }
092    
093            /**
094            * Returns the node ID of this wiki page resource.
095            *
096            * @return the node ID of this wiki page resource
097            */
098            public long getNodeId() {
099                    return _wikiPageResource.getNodeId();
100            }
101    
102            /**
103            * Sets the node ID of this wiki page resource.
104            *
105            * @param nodeId the node ID of this wiki page resource
106            */
107            public void setNodeId(long nodeId) {
108                    _wikiPageResource.setNodeId(nodeId);
109            }
110    
111            /**
112            * Returns the title of this wiki page resource.
113            *
114            * @return the title of this wiki page resource
115            */
116            public java.lang.String getTitle() {
117                    return _wikiPageResource.getTitle();
118            }
119    
120            /**
121            * Sets the title of this wiki page resource.
122            *
123            * @param title the title of this wiki page resource
124            */
125            public void setTitle(java.lang.String title) {
126                    _wikiPageResource.setTitle(title);
127            }
128    
129            public boolean isNew() {
130                    return _wikiPageResource.isNew();
131            }
132    
133            public void setNew(boolean n) {
134                    _wikiPageResource.setNew(n);
135            }
136    
137            public boolean isCachedModel() {
138                    return _wikiPageResource.isCachedModel();
139            }
140    
141            public void setCachedModel(boolean cachedModel) {
142                    _wikiPageResource.setCachedModel(cachedModel);
143            }
144    
145            public boolean isEscapedModel() {
146                    return _wikiPageResource.isEscapedModel();
147            }
148    
149            public java.io.Serializable getPrimaryKeyObj() {
150                    return _wikiPageResource.getPrimaryKeyObj();
151            }
152    
153            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
154                    _wikiPageResource.setPrimaryKeyObj(primaryKeyObj);
155            }
156    
157            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
158                    return _wikiPageResource.getExpandoBridge();
159            }
160    
161            public void setExpandoBridgeAttributes(
162                    com.liferay.portal.service.ServiceContext serviceContext) {
163                    _wikiPageResource.setExpandoBridgeAttributes(serviceContext);
164            }
165    
166            @Override
167            public java.lang.Object clone() {
168                    return new WikiPageResourceWrapper((WikiPageResource)_wikiPageResource.clone());
169            }
170    
171            public int compareTo(
172                    com.liferay.portlet.wiki.model.WikiPageResource wikiPageResource) {
173                    return _wikiPageResource.compareTo(wikiPageResource);
174            }
175    
176            @Override
177            public int hashCode() {
178                    return _wikiPageResource.hashCode();
179            }
180    
181            public com.liferay.portal.model.CacheModel<com.liferay.portlet.wiki.model.WikiPageResource> toCacheModel() {
182                    return _wikiPageResource.toCacheModel();
183            }
184    
185            public com.liferay.portlet.wiki.model.WikiPageResource toEscapedModel() {
186                    return new WikiPageResourceWrapper(_wikiPageResource.toEscapedModel());
187            }
188    
189            @Override
190            public java.lang.String toString() {
191                    return _wikiPageResource.toString();
192            }
193    
194            public java.lang.String toXmlString() {
195                    return _wikiPageResource.toXmlString();
196            }
197    
198            public void persist()
199                    throws com.liferay.portal.kernel.exception.SystemException {
200                    _wikiPageResource.persist();
201            }
202    
203            public WikiPageResource getWrappedWikiPageResource() {
204                    return _wikiPageResource;
205            }
206    
207            public void resetOriginalValues() {
208                    _wikiPageResource.resetOriginalValues();
209            }
210    
211            private WikiPageResource _wikiPageResource;
212    }