001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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 void setEscapedModel(boolean escapedModel) {
150                    _wikiPageResource.setEscapedModel(escapedModel);
151            }
152    
153            public java.io.Serializable getPrimaryKeyObj() {
154                    return _wikiPageResource.getPrimaryKeyObj();
155            }
156    
157            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
158                    _wikiPageResource.setPrimaryKeyObj(primaryKeyObj);
159            }
160    
161            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
162                    return _wikiPageResource.getExpandoBridge();
163            }
164    
165            public void setExpandoBridgeAttributes(
166                    com.liferay.portal.service.ServiceContext serviceContext) {
167                    _wikiPageResource.setExpandoBridgeAttributes(serviceContext);
168            }
169    
170            @Override
171            public java.lang.Object clone() {
172                    return new WikiPageResourceWrapper((WikiPageResource)_wikiPageResource.clone());
173            }
174    
175            public int compareTo(
176                    com.liferay.portlet.wiki.model.WikiPageResource wikiPageResource) {
177                    return _wikiPageResource.compareTo(wikiPageResource);
178            }
179    
180            @Override
181            public int hashCode() {
182                    return _wikiPageResource.hashCode();
183            }
184    
185            public com.liferay.portal.model.CacheModel<com.liferay.portlet.wiki.model.WikiPageResource> toCacheModel() {
186                    return _wikiPageResource.toCacheModel();
187            }
188    
189            public com.liferay.portlet.wiki.model.WikiPageResource toEscapedModel() {
190                    return new WikiPageResourceWrapper(_wikiPageResource.toEscapedModel());
191            }
192    
193            @Override
194            public java.lang.String toString() {
195                    return _wikiPageResource.toString();
196            }
197    
198            public java.lang.String toXmlString() {
199                    return _wikiPageResource.toXmlString();
200            }
201    
202            public void persist()
203                    throws com.liferay.portal.kernel.exception.SystemException {
204                    _wikiPageResource.persist();
205            }
206    
207            public WikiPageResource getWrappedWikiPageResource() {
208                    return _wikiPageResource;
209            }
210    
211            public void resetOriginalValues() {
212                    _wikiPageResource.resetOriginalValues();
213            }
214    
215            private WikiPageResource _wikiPageResource;
216    }