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