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