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